osc compute server stop
Stops a running server and changes its status to SHUTOFF
.
Specify the os-stop
action in the request body.
Preconditions
The server status must be ACTIVE
or ERROR
.
If the server is locked, you must have administrator privileges to stop the server.
Asynchronous Postconditions
After you successfully stop a server, its status changes to SHUTOFF
. This API operation does not delete the server instance data and the data will be available again after os-start
action.
Normal response codes: 202
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)
Usage: osc compute server stop --os-stop <JSON> <ID>
Arguments:
<ID>
— id parameter for /v2.1/servers/{id}/action API
Options:
--os-stop <JSON>