Stop server

Method URI Description
POST /v2/{tenant_id}/servers/{server_id}/action Stops the specified running server and changes its status to STOPPED.

Normal response codes: 202

CAUTION:
A virtual server that is terminated from the service portal/API will be stopped forcibly, which is equivalent to a forced power shutdown. To shut down a virtual server normally, log in to the virtual server and carry out a shutdown operation.
CAUTION:
When an instance created using a Linux image is started, the sshd settings are initialized, and it may no longer be possible to log in to the instance. Refer to "Reboot server" and perform the task before stopping the instance, if necessary.

Request

This table shows the URI parameters for the stop server request:

Name Type Description
{tenant_id} String Project ID
{server_id} UUID The UUID for the server of interest to you.

Example. Stop server: JSON request


       {
       "os-stop": null
       }  
     

Response

This operation does not return a response body.