Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display
alltrue
styleh3
pageSuperb Cloud API

POST /virtual_machines/:virtual_machine_id/stop

Stops specified virtual server

Sections:

Table of Contents
maxLevel4
minLevel2
includeResponse.*|JSON.*|XML.*|Explanation.*

Response Parameters

Info

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

Code Block
languagebash
themeRDark
 curl -i -X POST -u user:userpass --url httphttps://mycp.superb.net/api/virtual_machines/:virtual_machine_id/stop.json

XML Request example

Code Block
languagebash
themeRDark
 curl -i -X POST -u user:userpass --url httphttps://mycp.superb.net/api/virtual_machines/:virtual_machine_id/stop.xml