Built-in volume type properties.
Add access to volume type for project_id.
Creates volume types.
Marks volume types as deleted.
There must exist at least one volume type (i.e. the default type) in the deployment. This method achieves that by ensuring: 1) the default_volume_type is set and is a valid one 2) the type requested to delete isn’t the default type
VolumeTypeDefaultDeletionError – when the type requested to delete is the default type
Get all non-deleted volume_types.
Pass true as argument if you want deleted volume types returned also.
Retrieves volume type by id or name
Get the default volume type.
VolumeTypeDefaultMisconfiguredError – when the configured default is not found
Retrieves single volume type by id.
Retrieves single volume type by name.
Get all qos specs for given volume type.
Return is_public boolean value of volume type
Notify about successful usage type-access-(add/remove) command.
context – security context
volume_type_id – volume type uuid
project_id – tenant uuid
event_suffix – name of called operation access-(add/remove)
host – hostname
This function filters volume provisioning requests on size limits.
If a volume type has provisioning size min/max set, this filter will ensure that the volume size requested is within the size limits specified in the volume type.
Remove access to volume type for project_id.
Update volume type by id.
Returns a ‘diff’ of two volume types and whether they are equal.
Returns a tuple of (diff, equal), where ‘equal’ is a boolean indicating whether there is any difference, and ‘diff’ is a dictionary with the following format:
{
'extra_specs': {'key1': (value_in_1st_vol_type,
value_in_2nd_vol_type),
'key2': (value_in_1st_vol_type,
value_in_2nd_vol_type),
{...}}
'qos_specs': {'key1': (value_in_1st_vol_type,
value_in_2nd_vol_type),
'key2': (value_in_1st_vol_type,
value_in_2nd_vol_type),
{...}}
'encryption': {'cipher': (value_in_1st_vol_type,
value_in_2nd_vol_type),
{'key_size': (value_in_1st_vol_type,
value_in_2nd_vol_type),
{...}}
}
Return whether encryptions of two volume types are same.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.