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": {
        "_typeName": "string",
        "name": "string",
        "datacenter": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        }
    },
    "computeResource": {
        "_typeName": "string",
        "name": "string",
        "computeResource": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        }
    },
    "host": {
        "_typeName": "string",
        "name": "string",
        "host": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        }
    },
    "vm": {
        "_typeName": "string",
        "name": "string",
        "vm": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        }
    },
    "ds": {
        "_typeName": "string",
        "name": "string",
        "datastore": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        }
    },
    "net": {
        "_typeName": "string",
        "name": "string",
        "network": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        }
    },
    "dvs": {
        "_typeName": "string",
        "name": "string",
        "dvs": {
            "_typeName": "string",
            "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