Virtual Machine Shutdown Guest
Issues a command to the guest operating system asking it to perform a clean shutdown of all services.
Returns immediately and does not wait for the guest operating system to complete the operation.
Required privileges: VirtualMachine.Interact.PowerOff
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.
No Content
InvalidPowerState: if the power state is not powered on.
ToolsUnavailable: if VMware Tools is not running.
TaskInProgress: if the virtual machine is busy.
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}/ShutdownGuest