You can power on, power off, suspend, pause, unpause, or retrieve the state of an encrypted virtual machine using the REST API service.
Note: To view the
Workstation Player API online, search
VMware API Explorer for the appropriate version of the
Workstation Player API.
Prerequisites
- Connect to the IP address from which you can access the HTTP/HTTPS services of Workstation Player REST API. The default IP address is 127.0.0.1:8697.
- Authenticate using the credentials you configured for the API service.
For more information on how to set the credentials for the Workstation Player REST API service, see
Procedure
- After you log in to the Workstation Player API service page, click VM Power Management from the list of API services.
- To retrieve the power state of the encrypted virtual machine, click the GET operation, and then perform the following steps:
- Under the Parameters section, enter the ID and the encryption password of the virtual machine.
- Click Try it Out!
The Workstation Player REST API service returns the power state of the encrypted virtual machine.
- To manage the power options of the encrypted virtual machine, click the PUT operation, and then perform the following steps:
- Under the Parameters section, enter the ID and the encryption password of the virtual machine.
- Enter one of the following options in the operation field:
- on
- off
- shutdown
- suspend
- pause
- unpause
- Click Try it Out!
The Workstation Player REST API service performs the operation you choose for the encrypted virtual machine.