Previous topic

The cinder.volume.utils Module

Next topic

The cinder.wsgi Module

This Page

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

The cinder.volume.volume_types Module

Built-in volume type properties.

create(context, name, extra_specs={})

Creates volume types.

destroy(context, id)

Marks volume types as deleted.

get_all_types(context, inactive=0, search_opts={})

Get all non-deleted volume_types.

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

get_default_volume_type()

Get the default volume type.

get_volume_type(ctxt, id)

Retrieves single volume type by id.

get_volume_type_by_name(context, name)

Retrieves single volume type by name.

get_volume_type_extra_specs(volume_type_id, key=False)
is_key_value_present(volume_type_id, key, value, volume_type=None)