ServerMania logo

Reboot VS

To reboot a VS, 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

JSON Request Example

curl -i -X POST -u user:userpass --url http://test/virtual_machines/12/reboot.json


An HTTP 201 response is returned on a successful reboot. Unsuccessful reboot responses include HTTP 404 (resource not found – e.g. if the VS isn't online) and HTTP 422 (request cannot be processed – for example, if parameters were incorrect).