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.
manager – BaseManager object
info – dictionary representing resource attributes
loaded – prevent lazy-loading if set to True
resp – Response or list of Response objects
add_host(host)¶cache_images(images)¶delete()¶Delete the own aggregate.
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.
cache_images(aggregate, images)¶Request images be cached on a given aggregate.
aggregate – The aggregate to target
images – A list of image IDs to request caching
An instance of novaclient.base.TupleWithMeta
create(name, availability_zone)¶Create a new aggregate.
delete(aggregate)¶Delete the specified aggregate.
aggregate – The aggregate to delete
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.
resource_class¶alias of novaclient.v2.aggregates.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.