POST /virtual_machines/:virtual_machine_id/stop

Stops specified virtual server

Sections:

Response Parameters

An HTTP 201 response is returned on a successful reboot along with a virtual_machine object. 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).

JSON Request example

 curl -i -X POST -u user:userpass --url <api_url>/virtual_machines/:virtual_machine_id/stop.json

XML Request example

 curl -i -X POST -u user:userpass --url <api_url>/virtual_machines/:virtual_machine_id/stop.xml