VM In Powered Off State After Creation via REST API
The REST API for creating vm clone is working fine but after vm cloned. It was in powered off state.
Is there any way to set power on state via API 3 (in API 2 it was there, but its old and deprecated not work)
OR
Any other way to create VM or clone so that it will be in power on state after vm creation.
Page 1 / 1
hey @Balram I don’t think there is any REST API v3 operation specifically related to the VM to power it on, but you can do so using PUT /vms/UUID v3 opeartion
To update a VM's specs, we need to send an HTTP PUT request to the Prism Central IP. The request body should contain all current specs of the VM. The easiest way to get a VM's specs is to send a GET request to /vms/uuid
Now in the below output of GET operation, Scroll down to the Response Body text box. Find the spec key and copy starting from "spec" down to the last closing curly brace "}". Paste it to a text editor.