novaclient.v2.aggregates Module¶Aggregate interface.
novaclient.v2.aggregates.Aggregate(manager, info, loaded=False, resp=None)¶Bases: novaclient.base.Resource
An aggregates is a collection of compute hosts.
Populate and bind to a manager.
| Parameters: |
|
|---|
add_host(host)¶delete()¶Delete the own aggregate.
| Returns: | An instance of novaclient.base.TupleWithMeta |
|---|
remove_host(host)¶set_metadata(metadata)¶update(values)¶Update the name and/or availability zone.
novaclient.v2.aggregates.AggregateManager(api)¶Bases: novaclient.base.ManagerWithFind
add_host(aggregate, host)¶Add a host into the Host Aggregate.
create(name, availability_zone)¶Create a new aggregate.
delete(aggregate)¶Delete the specified aggregate.
| Parameters: | aggregate – The aggregate to delete |
|---|---|
| Returns: | An instance of novaclient.base.TupleWithMeta |
get(aggregate)¶Get details of the specified aggregate.
get_details(aggregate)¶Get details of the specified aggregate.
list()¶Get a list of os-aggregates.
remove_host(aggregate, host)¶Remove a host from the Host Aggregate.
set_metadata(aggregate, metadata)¶Set aggregate metadata, replacing the existing metadata.
update(aggregate, values)¶Update the name and/or availability zone.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.