Get Guest Power
Returns information about the guest operating system power state.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the virtual machine. The parameter must be an identifier for the resource type: VirtualMachine.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
Guest OS powerstate information.
{
"operations_ready": false,
"state": "RUNNING"
}
Flag indicating if the virtual machine is ready to process soft power operations.
Possible guest power states.
RUNNING : The guest OS is running.
SHUTTING_DOWN : The guest OS is shutting down
RESETTING : The guest OS is resetting
STANDBY : The guest OS is in standby.
NOT_RUNNING : The guest OS is not running.
UNAVAILABLE : The guest OS power state is unknown.
Possible values are: RUNNING , SHUTTING_DOWN , RESETTING , STANDBY , NOT_RUNNING
Errors
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: get
x-vmw-doc-deprecated-path: /rest/vcenter/vm/{vm}/guest/power
x-vmw-doc-operation: get