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://{vcenter-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
This response body class contains all of the following: DataObject
{
    "_typeName": "string",
    "key": 0,
    "chainId": 0,
    "createdTime": "string",
    "userName": "string",
    "datacenter": {
        "datacenter": {
            "type": "string",
            "value": "string"
        }
    },
    "computeResource": {
        "computeResource": {
            "type": "string",
            "value": "string"
        }
    },
    "host": {
        "host": {
            "type": "string",
            "value": "string"
        }
    },
    "vm": {
        "vm": {
            "type": "string",
            "value": "string"
        }
    },
    "ds": {
        "datastore": {
            "type": "string",
            "value": "string"
        }
    },
    "net": {
        "network": {
            "type": "string",
            "value": "string"
        }
    },
    "dvs": {
        "dvs": {
            "type": "string",
            "value": "string"
        }
    },
    "fullFormattedMessage": "string",
    "changeTag": "string"
}
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.

datacenter
Optional

The event argument is a Datacenter object.

computeResource
Optional

The event argument is a ComputeResource object.

host
Optional

The event argument is a Host object.

vm
Optional

The event argument is a VirtualMachine object.

ds
Optional

The event argument is a Datastore object.

net
Optional

The event argument is a Network 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