Power On Virtual Servers on Xen/KVM Compute Resource

To power on all virtual servers that run on the compute resource, use the following request: 

POST /hypervisors/:hypervisor_id/virtual_machines/startup.xml
POST /hypervisors/:hypervisor_id/virtual_machines/startup.json

XML Request Example

curl -i -X POST -u account_email:API_key -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<virtual_machines><virtual_machine>virtual_server_identifier_one</virtual_machine><virtual_machine>virtual_server_identifier_two</virtual_machine></virtual_machines>' --url http://onapp.test/hypervisors/13/virtual_machines/startup.xml

JSON Request Example

curl -i -X POST -u account_email:API_key -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"virtual_machines":["virtual_server_identifier_one","virtual_server_identifier_two"]}' --url http://onapp.test/hypervisors/13/virtual_machines/startup.json


virtual_machines - the array of virtual_machine parameters that include identifiers of VSs to be powered on

virtual_machine - the identifier of the VS to be powered on

Returns the 200 OK response if the request was completed successfully.

  • Only the powered-off virtual will be powered on, while the already powered-on VSs will be skipped.
  • The bulk power-on action is available only to virtual servers that are run on Xen and KVM compute resources.