AggregatesΒΆ

Aggregate interface.

class novaclient.v2.aggregates.Aggregate(manager, info, loaded=False)

Bases: novaclient.openstack.common.apiclient.base.Resource

An aggregates is a collection of compute hosts.

Populate and bind to a manager.

Parameters:
  • manager – BaseManager object
  • info – dictionary representing resource attributes
  • loaded – prevent lazy-loading if set to True
add_host(host)
delete()
remove_host(host)
set_metadata(metadata)
update(values)

Update the name and/or availability zone.

class 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.

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 Aggregate

set_metadata(aggregate, metadata)

Set aggregate metadata, replacing the existing metadata.

update(aggregate, values)

Update the name and/or availability zone.

Previous topic

Agents

Next topic

Availability_zones

Project Source

This Page