HP OneView REST API Reference

events
events.html[10/17/2013 10:35:13 AM]
POST https://{appl}/rest/events"
with a request body of
{
"type":"EventResourceV2",
"description":"This is a very simple test event",
"severity":"OK",
"healthCategory":"PROCESSOR",
"eventTypeID":"hp.justATest",
"rxTime":"2012-05-14T20:23:56.688Z",
"urgency":"None",
"eventDetails":
[{"eventItemName":"ipv4Address",
"eventItemValue":"127.0.0.1",
"isThisVarbindData":false,
"varBindOrderIndex":-1}]
}
The above example posts a simple event for a resource
whose IPv4 address is 127.0.0.1.
URI: /rest/events/schema
Method API
GET Retrieves the JSON formatted schema for an event
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"
Response Description
JsonSchema An object in JSON format of the requested event
Response Codes
REST API Response Codes
Examples
GET https://{appl}/rest/events/schema
The above example retrieves the JSON formatted schema
for
an event.
URI: /rest/events/{id}
Method API
GET Retrieves a particular event using its ID. The response body is the requested event resource.
Parameter Attributes Description
view Optional The only supported option for view parameter is viewDescription. If