Virtual machines

Run VM power action

Changed on

Performs a power action on a given virtual machine:

  • power_on - Starts the virtual machine
  • power_off - Stops the virtual machine
  • reboot - Restarts the virtual machine

power_on is never blocked. A power_off or reboot returns 409 Conflict when a backup is in progress for the virtual machine.

post/virtual_machines/{virtual_machine_id}/actions

Request

  • Base URL: https://api.latitude.sh
  • URL: https://api.latitude.sh/virtual_machines/{virtual_machine_id}/actions
  • Auth: API key in header Authorization

Path parameters

virtual_machine_idstring required

Request body

idstring required
type'virtual_machines' required

Response

Created

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status