Managing VMs
Once a VM exists, you can list and inspect your VMs and control a VM's runtime state by sending it commands.
Listing VMs
List VMs in your Cloud:
GET /v3/flexVM/clouds/{cloudUuid}/vmsOptionally filter by status with the
statusquery parameter (e.g.?status=running).Supports the
RANGED-DATAheader for pagination.
Get a specific VM:
GET /v3/flexVM/clouds/{cloudUuid}/vms/{vmUuid}Returns the details of the specified VM, including its current status.
Executing commands
Use the POST /v3/flexVM/clouds/{cloudUuid}/vms/{vmUuid}/commands endpoint to change a VM's runtime state. The request body takes a single command field.
start
Power on a stopped VM (stopped → starting → running).
stop
Immediately power off a running VM, like pulling the power cord. The guest OS gets no warning, so unsaved data can be lost (running → stopping → stopped).
shutdown
Ask the guest OS to shut down cleanly (running → stopping → stopped). If the VM is still running after 60 seconds, it is powered off like stop.
reboot
Gracefully restart a running VM.
reset
Forcefully power-cycle the VM. Use this when the VM is unresponsive and reboot does not work.
Example request:
For creating and deleting VMs, see Creating and Deleting a VM.
Last updated
Was this helpful?