Task Update Progress
Sets percentage done for this task and recalculates overall percentage done.
If a percentDone value of less than zero or greater than 100 is specified, a value of zero or 100 respectively is used.
Required privileges: Task.Update
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 Task/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"UpdateProgressRequestType Object"
Percentage to set for this task
No Content
InvalidState: If task is not running
OutOfBounds: VirtualCenter 2.x servers throw this fault if percentDone is less than 0 or greater than 100. Newer versions behave as described above, and never throw this fault.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/Task/{moId}/UpdateProgress