Boot VS from ISO

To boot virtual servers that are powered off from an ISO, use the following request:

POST /virtual_machines/:virtual_machine_id/startup.xml
POST /virtual_machines/:virtual_machine_id/startup.json

XML Request Example

curl -i -X POST -u user:userpass --url http://onapp.test/virtual_machines/12/startup.xml -d '<iso_id>11</iso_id>' -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

curl -i -X POST -u user:userpass --url http://onapp.test/virtual_machines/12/startup.json -d '{"iso_id": "11" }' -H 'Accept: application/json' -H 'Content-type: application/json'

Where:

virtual_machine_id - the ID of the VS you want to boot

iso_id - the ID of the ISO you want to boot from