Shuts down specified Virtual Server
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).
curl -i -X POST -u user:userpass --url <api_url>/virtual_machines/:virtual_machine_id/shutdown.json
curl -i -X POST -u user:userpass --url <api_url>/virtual_machines/:virtual_machine_id/shutdown.xml