HP OneView REST API Reference

events
events.html[10/17/2013 10:35:13 AM]
Response Codes
REST API Response Codes
Examples
GET https://{appl}/rest/events
example:
GET https://{appl}/rest/events?start=-1&count=25&filter=
"eventTypeID EQ 'Trap.cpqHe4FltTolPowerSupplyFailed'"
&filter="healthCategory EQ 'POWER'"
The above example retrieves the first filtered 25
events of type power supply failure and the health
category of POWER. The above example uses eventTypeID to
filter on an SNMP Trap, where the eventTypeID is of the
format Trap.<Name of the trap> and the name of the trap
is
provided in the appropriate SNMP MIB.
GET
https://{appl}/rest/events?filter="severity EQ
'Critical'"
The above example retrieves all the events having a
severity of critical.
Fields that can be filtered on include:
description, eventTypeID, severity, healthCategory, id,
rxTime, urgency, created, modified and processed.
POST Creates a new event. The request body is an event resource and on a successful completion the
response body is the event resource that was created with the URI set. New events can be
POSTed to show new issues for a related resource. The EventResourceV2 must have at least
one attribute populated in the eventDetails attribute list. Common attributes are defined in the
Event Resource class and include ipv4Address, ipv6Address, and resourceURI. After posting an
event, an alert is generated. At that time, the processed flag is set to true. A life cycle event is a
result of some activity on a resource, such as powering on or off a server or inserting a blade
server in an enclosure. The severity of a life cycle event must be set to OK.
Parameter Attributes Description
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
EventResourceV2 Required Information about the event to be posted
Response Description
EventResourceV2 An object in JSON format of the event that was
posted
Response Codes
REST API Response Codes
Examples