HP OneView REST API Reference

audit-logs
audit-logs.html[10/17/2013 10:35:12 AM]
current release, this must be set to "X-API-Version:3"
Request Body Attributes Description
AuditLogRecordDetail Required Contains all the information related to
auditing
Response Description
void
Response Codes
REST API Response Codes
Examples
Below example is to create multiple audit-logs at once with parameters
specified
POST https://{appl}/rest/audit-logs?multiResource=true
[
{
"componentId":"MyComponent",
"domain":"domain",
"organizationId":"",
"taskId":"",
"sourceIp":"",
"action":"LOGIN",
"result":"SUCCESS",
"severity":"INFO",
"objectType":"CREDENTIAL",
"objectTypeDescriptor":"",
"msg":"Message 1"
},
{
"componentId":"MyComponent",
"domain":"domain",
"organizationId":"",
"taskId":"",
"sourceIp":"",
"action":"LOGIN",
"result":"SUCCESS",
"severity":"INFO",
"objectType":"CREDENTIAL",
"objectTypeDescriptor":"",
"msg":"Message 2"
}
]
URI: /rest/audit-logs/download
Method API
GET Creates a zipped file containing all the audit logs that are present in the appliance. Sends the
zipped file back to the caller as an attachment.
Request
Header
Attributes Description