HP OneView REST API Reference

audit-logs
audit-logs.html[10/17/2013 10:35:12 AM]
Response Description
AuditLogCollection Contains AuditLogRecordDetail objects and
pagination information
Response Codes
REST API Response Codes
Examples
Below examples are to fetch the audit-logs as per specified parameters
GET https://{appl}/rest/audit-logs?
start=0&count=150&filter="result='success'"
GET https://{appl}/rest/audit-logs?
start=0&count=150&filter="date>='2012-05-30'"
POST Creates a log entry in the audit log file. As input, it takes AuditLogRecordDetail, which should
contain all information related to auditing.
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
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 an audit-log entry with parameters mentioned
POST https://{appl}/rest/audit-logs
{
"componentId":"MyComponent",
"domain":"MyDomain",
"organizationId":"",
"taskId":"",
"sourceIp":"",
"action":"CREATE",
"result":"SUCCESS",
"severity":"INFO",
"objectType":"SERVER",
"objectTypeDescriptor":"",
"msg":"Server Created successfully"
}
POST Creates log entries in the audit log file. As input, it takes list of AuditLogRecordDetail objects
(AuditLogRecordDetail[]) which should contain all information related to auditing.
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the