Virtual Machine Suspend VM Task
Suspends execution in this virtual machine.
Required privileges: VirtualMachine.Interact.Suspend
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 VirtualMachine/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
This method returns a Task object with which to monitor the operation.
"MoRefTask Object"
InvalidPowerState: if the power state is not poweredOn.
TaskInProgress: if the virtual machine is busy.
NotSupported: if the virtual machine is marked as a template.
InvalidState: if the operation cannot be performed because of the virtual machine's current state. For example, if the virtual machine configuration information is not available.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' https://{api_host}/sdk/vim25/{release}/VirtualMachine/{moId}/SuspendVM_Task