Excerpt | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
To perform a power action (except for reset) on a VM using the API:
The VM state link is a link in the VM object with the "rel" attribute set to state. The "title" attribute contains the current state. You can send a PUT request of a virtualmachine state object to the link (in the "href" attribute) to change the power state of the VM.
Here are some examples of virtualmachinestate objects and notes about changing VM states
To reset a VM using the API, use a POST request to the reset action link. If you are using a test environment, you may wish to add the --insecure option. cURL:
Success status code: 202 Request payload: --none-- Response payload:
|
Page Comparison
General
Content
Integrations