Volume_typesΒΆ

Volume Type interface.

class novaclient.v2.volume_types.VolumeType(manager, info, loaded=False)

Bases: novaclient.openstack.common.apiclient.base.Resource

A Volume Type is the type of volume to be created

Populate and bind to a manager.

Parameters:
  • manager – BaseManager object
  • info – dictionary representing resource attributes
  • loaded – prevent lazy-loading if set to True
class novaclient.v2.volume_types.VolumeTypeManager(api)

Bases: novaclient.base.ManagerWithFind

Manage VolumeType resources.

create(name)

Create a volume type.

Parameters:name – Descriptive name of the volume type
Return type:VolumeType
delete(volume_type)

Delete a specific volume_type.

Parameters:volume_type – The ID of the VolumeType to get.
get(volume_type)

Get a specific volume type.

Parameters:volume_type – The ID of the VolumeType to get.
Return type:VolumeType
list()

Get a list of all volume types.

Return type:list of VolumeType.
resource_class

alias of VolumeType

Previous topic

Volumes

This Page