Event Manager Get Latest Event

Event Manager Get Latest Event

The latest event that happened on the VirtualCenter server.

Required privileges: System.View

Request
URI
GET
https://{api_host}/sdk/vim25/{release}/EventManager/{moId}/latestEvent
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the property attaches; the serialized managed object reference for a request has the form moType/moId, in this case EventManager/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns Event of type(s) application/json
"Event Object"
integer As int32 As int32
key
Required

The event ID.

integer As int32 As int32
chainId
Required

The parent or group ID.

string As date-time As date-time
createdTime
Required

The time the event was created.

string
userName
Required

The user who caused the event.

object
datacenter
Optional

The event argument is a Datacenter object.

object
computeResource
Optional

The event argument is a ComputeResource object.

object
host
Optional

The event argument is a Host object.

object
vm
Optional

The event argument is a VirtualMachine object.

object
ds
Optional

The event argument is a Datastore object.

object
net
Optional

The event argument is a Network object.

object
dvs
Optional

The event argument is a Host object.

string
fullFormattedMessage
Optional

A formatted text message describing the event.

The message may be localized.

string
changeTag
Optional

The user entered tag to identify the operations and their side effects


Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/sdk/vim25/{release}/EventManager/{moId}/latestEvent