This Page

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

The nova.compute.instance_types Module

Built-in instance properties.

nova.compute.instance_types.create(name, memory, vcpus, local_gb, flavorid, swap=0, rxtx_quota=0, rxtx_cap=0)

Creates instance types.

nova.compute.instance_types.destroy(name)

Marks instance types as deleted.

nova.compute.instance_types.get_all_flavors(inactive=0)

Get all non-deleted instance_types.

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

nova.compute.instance_types.get_all_types(inactive=0)

Get all non-deleted instance_types.

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

nova.compute.instance_types.get_default_instance_type()

Get the default instance type.

nova.compute.instance_types.get_instance_type(id)

Retrieves single instance type by id.

nova.compute.instance_types.get_instance_type_by_flavor_id(flavor_id)

Retrieve instance type by flavor_id.

nova.compute.instance_types.get_instance_type_by_name(name)

Retrieves single instance type by name.

nova.compute.instance_types.purge(name)

Removes instance types from database.