Previous topic

The nova.compute.api Module

Next topic

The nova.compute.manager Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.compute.instance_types Module

Built-in instance properties.

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

Creates instance types.

destroy(name)

Marks instance types as deleted.

get_all_flavors(inactive=0, filters=None)

Get all non-deleted instance_types.

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

get_all_types(inactive=0, 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)

Retrieves single instance type by id.

get_instance_type_by_flavor_id(flavorid, read_deleted='yes')

Retrieve instance type by flavorid.

Raises :FlavorNotFound
get_instance_type_by_name(name)

Retrieves single instance type by name.