ServerMania logo

Reboot VS from ISO

To boot a virtual server that is powered on from an ISO, use the following request:

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

XML Request Example

curl -i -X POST -u user:userpass --url http://test/virtual_machines/12/reboot.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://test/virtual_machines/12/reboot.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 reboot

iso_id - ID of the ISO you want to use