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, flavorid=None, swap=None, rxtx_factor=None, is_public=True)

Creates instance types.

destroy(name)

Marks instance types as deleted.

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

Previous topic

The nova.compute.api Module

Next topic

The nova.compute.manager Module

This Page