osc compute server reboot
Reboots a server.
Specify the reboot action in the request body.
Preconditions
The preconditions for rebooting a server depend on the type of reboot.
You can only SOFT reboot a server when its status is ACTIVE.
You can only HARD reboot a server when its status is one of:
If the server is locked, you must have administrator privileges to reboot the server.
Asynchronous Postconditions
After you successfully reboot a server, its status changes to ACTIVE.
Normal response codes: 202
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)
Usage: osc compute server reboot --type <TYPE> <ID>
Arguments:
<ID>— id parameter for /v2.1/servers/{id}/action API
Options:
- 
--type <TYPE>— The type of the reboot action. The valid values areHARDandSOFT. ASOFTreboot attempts a graceful shutdown and restart of the server. AHARDreboot attempts a forced shutdown and restart of the server. TheHARDreboot corresponds to the power cycles of the serverPossible values:
hard,soft