TaskEvent

TaskEvent
TaskEvent

This event records the creation of a Task.

Note that the embedded TaskInfo object is a snapshot of the Task state at the time of its creation, so its state will always be "queued". To find the current status of the task, query for the current state of the Task using the eventChainId in the embedded TaskInfo object.

AllOf
This class requires all of the following:
JSON Example
{
    "_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",
    "info": {
        "_typeName": "string",
        "key": "string",
        "task": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "description": {
            "_typeName": "string",
            "key": "string",
            "arg": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "message": "string"
        },
        "name": "string",
        "descriptionId": "string",
        "entity": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "entityName": "string",
        "locked": [
            {
                "_typeName": "string",
                "type": "string",
                "value": "string"
            }
        ],
        "state": "string",
        "cancelled": false,
        "cancelable": false,
        "error": {
            "_typeName": "string",
            "faultCause": "MethodFault Object",
            "faultMessage": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "arg": [
                        {
                            "_typeName": "string",
                            "key": "string",
                            "value": {
                                "_typeName": "string"
                            }
                        }
                    ],
                    "message": "string"
                }
            ]
        },
        "result": {
            "_typeName": "string"
        },
        "progress": 0,
        "progressDetails": [
            {
                "_typeName": "string",
                "key": "string",
                "value": {
                    "_typeName": "string"
                }
            }
        ],
        "reason": {
            "_typeName": "string"
        },
        "queueTime": "string",
        "startTime": "string",
        "completeTime": "string",
        "eventChainId": 0,
        "changeTag": "string",
        "parentTaskKey": "string",
        "rootTaskKey": "string",
        "activationId": "string"
    }
}
info
Required

This data object type contains all information about a task.

A task represents an operation performed by VirtualCenter or ESX.