Using VMware Fusion REST API Service to Manage Power Options of Encrypted Virtual Machines
VMware Fusion
REST API Service to Manage Power Options of Encrypted Virtual MachinesYou can power on, power off, suspend, pause, unpause, or retrieve the state of an encrypted virtual machine using the
VMware Fusion
REST API service.You must perform the following steps before using the
Fusion
REST API services:- Connect to the IP address from which you can access the HTTP/HTTPS services ofFusionREST 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
Fusion
REST API service, see GUID-DC0588AE-C8A5-4B59-949A-26687CFCA278-en.html- After you log in to theFusionAPI service page, clickVM Power Managementfrom the list of API services.
- To retrieve the power state of the encrypted virtual machine, click theGEToperation, and then perform the following steps:
- Under theParameterssection, enter the ID and the encryption password of the virtual machine.
- ClickTry it Out!TheFusionREST API service returns the power state of the encrypted virtual machine.
- To manage the power options of the encrypted virtual machine, click thePUToperation, and then perform the following steps:
- Under theParameterssection, enter the ID and the encryption password of the virtual machine.
- Enter one of the following options in theoperationfield:
- on
- off
- shutdown
- suspend
- pause
- unpause
- ClickTry it Out!TheFusionREST API service performs the operation you choose for the encrypted virtual machine.