The nova.virt.virtapi Module

class VirtAPI

Bases: object

agent_build_get_by_triple(context, hypervisor, os, architecture)

Get information about the available agent builds for a given hypervisor, os, and architecture :param context: security context :param hypervisor: agent hypervisor type :param os: agent operating system type :param architecture: agent architecture

aggregate_get_by_host(context, host, key=None)

Get a list of aggregates to which the specified host belongs :param context: security context :param host: the host for which aggregates should be returned :param key: optionally filter by hosts with the given metadata key

aggregate_metadata_add(context, aggregate, metadata, set_delete=False)

Add/update metadata for specified aggregate :param context: security context :param aggregate: aggregate on which to update metadata :param metadata: dict of metadata to add/update :param set_delete: if True, only add

aggregate_metadata_delete(context, aggregate, key)

Delete the given metadata key from specified aggregate :param context: security context :param aggregate: aggregate from which to delete metadata :param key: metadata key to delete

instance_get_all_by_host(context, host)

Find all instances on a given host :param context: security context :param host: host running instances to be returned

instance_get_by_uuid(context, instance_uuid)

Look up an instance by uuid :param context: security context :param instance_uuid: uuid of the instance to be fetched

instance_type_get(context, instance_type_id)

Get information about an instance type :param context: security context :param instance_type_id: the id of the instance type in question

instance_update(context, instance_uuid, updates)

Perform an instance update operation on behalf of a virt driver :param context: security context :param instance_uuid: uuid of the instance to be updated :param updates: dict of attribute=value pairs to change

Returns: orig_instance, new_instance

provider_fw_rule_get_all(context)

Get the provider firewall rules :param context: security context

security_group_get_by_instance(context, instance)

Get the security group for a specified instance :param context: security context :param instance: instance defining the security group we want

security_group_rule_get_by_security_group(context, security_group)

Get the rules associated with a specified security group :param context: security context :param security_group: the security group for which the rules

should be returned

Previous topic

The nova.virt.storage_users Module

Next topic

The nova.virt.vmwareapi.driver Module

This Page