osc compute server reset-state
Resets the state of a server.
Specify the os-resetState
action and the state
in the request body.
Policy defaults enable only users with the administrative role to perform this operation. Cloud providers can change these permissions through the policy.json
file.
Normal response codes: 202
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
Usage: osc compute server reset-state --state <STATE> <ID>
Arguments:
<ID>
— id parameter for /v2.1/servers/{id}/action API
Options:
-
--state <STATE>
— The state of the server to be set,active
orerror
are validPossible values:
active
,error