osc compute aggregate set21

Updates either or both the name and availability zone for an aggregate. If the aggregate to be updated has host that already in the given availability zone, the request will fail with 400 error.

Normal response codes: 200

Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)

Usage: osc compute aggregate set21 [OPTIONS] <ID>

Arguments:

  • <ID> — id parameter for /v2.1/os-aggregates/{id} API

Options:

  • --availability-zone <AVAILABILITY_ZONE> — The availability zone of the host aggregate. You should use a custom availability zone rather than the default returned by the os-availability-zone API. The availability zone must not include ‘:’ in its name.

    Warning

    You should not change or unset the availability zone of an aggregate when that aggregate has hosts which contain servers in it since that may impact the ability for those servers to move to another host.

  • --name <NAME> — The name of the host aggregate