Restart or terminate a cloud server

Either restart or terminate a cloud server. The operation responds asynchronously with 202. See Asynchronous operations for details.

Path Params
integer
required

Uniquely identifies each the cloud server.

Body Params

An action to take on a cloud server after it has started.

string
enum
required

Either restart or terminate a cloud object. Specify restart to reboot the server. You can terminate a cloud server to tear it down.

Allowed:
Headers
string
required

All calls to this API require that you pass in the token you get from the Generate a token operation as an X-Auth-Token request header. See Get started for help to initially call the API.

Responses

400

Bad request. The URL or JSON request object is invalid.

404

Not found. The requested object doesn't exist.

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json