osc compute service set20
Update a compute service to enable or disable scheduling, including recording a reason why a compute service was disabled from scheduling. Set or unset the forced_down
flag for the service. This operation is only allowed on services whose binary
is nova-compute
.
This API is available starting with microversion 2.53.
Normal response codes: 200
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
Usage: osc compute service set20 [OPTIONS] --binary <BINARY> --host <HOST> <ID>
Arguments:
<ID>
— id parameter for /v2.1/os-services/{id} API
Options:
--binary <BINARY>
--disabled-reason <DISABLED_REASON>
— The reason for disabling a service. The minimum length is 1 and the maximum length is 255. This may only be requested withstatus=disabled
--host <HOST>