Passa al contenuto principale

Start, stop or reboot a server

POST 

/api/v3/servers/:server_id/power-actions

Required scopes: server:write

Starts a power action on the server, chosen with action; the operation goes on in the background as the returned Task. 403 for an action that the server does not have (physical servers only have reboot); 409 while the server is not ready, its service is not active or is under maintenance, or another operation does not allow the action. Before, each action had its own path (…/start, …/reboot, …/stop, …/hard-reboot, …/hard-stop)

Request​

Responses​

Accepted: the operation goes on in the background, as the returned Task

Response Headers
    Location

    URL of the Task: /api/v3/tasks/{task_id}. Reading it requires the purchases:read scope