The nova.compute.instance_types Module

Built-in instance properties.

add_instance_type_access(flavorid, projectid, ctxt=None)

Add instance type access for project.

create(name, memory, vcpus, root_gb, ephemeral_gb=None, flavorid=None, swap=None, rxtx_factor=None, is_public=True)

Creates instance types.

delete_instance_type_info(metadata, *prefixes)

Delete instance_type information from instance’s system_metadata by prefix.

destroy(name)

Marks instance types as deleted.

extract_instance_type(instance, prefix='')

Create an InstanceType-like object from instance’s system_metadata information.

get_all_flavors(ctxt=None, inactive=False, filters=None)

Get all non-deleted instance_types.

Pass true as argument if you want deleted instance types returned also.

get_all_types(ctxt=None, inactive=False, filters=None)

Get all non-deleted instance_types.

Pass true as argument if you want deleted instance types returned also.

get_default_instance_type()

Get the default instance type.

get_instance_type(instance_type_id, ctxt=None, inactive=False)

Retrieves single instance type by id.

get_instance_type_access_by_flavor_id(flavorid, ctxt=None)

Retrieve instance type access list by flavor id.

get_instance_type_by_flavor_id(flavorid, ctxt=None, read_deleted='yes')

Retrieve instance type by flavorid.

Raises :FlavorNotFound
get_instance_type_by_name(name, ctxt=None)

Retrieves single instance type by name.

remove_instance_type_access(flavorid, projectid, ctxt=None)

Remove instance type access for project.

save_instance_type_info(metadata, instance_type, prefix='')

Save properties from instance_type into instance’s system_metadata, in the format of:

[prefix]instance_type_[key]

This can be used to update system_metadata in place from a type, as well as stash information about another instance_type for later use (such as during resize).

Previous topic

The nova.compute.instance_actions Module

Next topic

The nova.compute.manager Module

This Page