ServerMania logo

Reboot VS in Recovery

To reboot a VS in recovery mode with a temporary login ("root") and password ("recovery"), 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 -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<mode>recovery</mode>' --url http://test/virtual_machines/12/reboot.xml

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"mode":"recovery"}' --url http://test/virtual_machines/12/reboot.json