Reboot VS
Da Wiki Neen.
(Differenze fra le revisioni)
Riga 13: | Riga 13: | ||
<br>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). | <br>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). | ||
− | <br><br> | + | <br><br> |
+ | |||
+ | [[Category:Neencloud]] |
Versione attuale delle 17:10, 20 feb 2014
To reboot a VS:
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://cloud.neen.it/virtual_machines/:virtual_machine_id/reboot.xml
JSON Request example
curl -i -X POST -u user:userpass --url http://cloud.neen.it/virtual_machines/:virtual_machine_id/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).