Event Manager Query Events
Returns events based on the specified EventFilterSpec and EventManagerEventViewSpec parameters.
Returns an empty array when there are no events matching the filtering parameters.
Required privileges: System.View
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case EventManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"QueryEventsRequestType Object"
Defines a filtering criteria for the event query.
Defines the view parameters for the event query.
To retrieve the newest events in the system, use 2147480000 (or the value of "config.vpxd.event.maxEventId" advanced vCenter configuration option) as EventManagerViewByStartId.startEventId and set EventManagerViewByStartId.isForward to false. To retrieve subsequent pages of results with older events, use the smallest event ID from the previous response as the EventManagerViewByStartId.startEventId and setEventManagerViewByStartId.isForward to false in the next query. To retrieve subsequent pages of results with newer events, use the biggest event ID from the previous page as the EventManagerViewByStartId.startEventId and set EventManagerViewByStartId.isForward to true in the next query.
Since: vSphere API Release 9.0.0.0
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/EventManager/{moId}/QueryEvents