cinder.volume.drivers.coprhd.helpers.volume Module¶Volume(ipaddr, port)¶Bases: cinder.volume.drivers.coprhd.helpers.commoncoprhdapi.CoprHDResource
BLOCK = ‘block’¶CG = ‘consistency-groups’¶SNAPSHOTS = ‘snapshots’¶URI_BULK_DELETE = ‘/block/volumes/deactivate’¶URI_CG_CLONE = ‘/block/consistency-groups/{0}/protection/full-copies’¶URI_CG_CLONE_DETACH = ‘/block/consistency-groups/{0}/protection/full-copies/{1}/detach’¶URI_DEACTIVATE = ‘/block/volumes/{0}/deactivate’¶URI_EXPAND = ‘/block/volumes/{0}/expand’¶URI_SEARCH_VOLUMES = ‘/block/volumes/search?project={0}’¶URI_SEARCH_VOLUMES_BY_TAG = ‘/block/volumes/search?tag={0}’¶URI_SNAPSHOT_PROTECTION_FULLCOPIES = ‘/block/snapshots/{0}/protection/full-copies’¶URI_TAG_VOLUME = ‘/block/volumes/{0}/tags’¶URI_VOLUME = ‘/block/volumes/{0}’¶URI_VOLUMES = ‘/block/volumes’¶URI_VOLUME_CHANGE_VPOOL = ‘/block/volumes/vpool-change’¶URI_VOLUME_CLONE_DETACH = ‘/block/full-copies/{0}/detach’¶URI_VOLUME_EXPORTS = ‘/block/volumes/{0}/exports’¶URI_VOLUME_PROTECTION_FULLCOPIES = ‘/block/volumes/{0}/protection/full-copies’¶VOLUMES = ‘volumes’¶check_for_sync(result, sync, synctimeout=0)¶clone(new_vol_name, resource_uri, sync, synctimeout=0)¶Makes REST API call to clone volume.
| Parameters: |
|
|---|---|
| Returns: | Created task details in JSON response payload |
create(project_name, label, size, varray, vpool, sync, consistencygroup, synctimeout=0)¶Makes REST API call to create volume under a project.
| Parameters: |
|
|---|---|
| Returns: | Created task details in JSON response payload |
delete(full_project_name, name, sync=False, force_delete=False, coprhdonly=False, synctimeout=0)¶Deletes a volume based on volume name.
| Parameters: |
|
|---|
delete_by_uri(uri, sync=False, force_delete=False, coprhdonly=False, synctimeout=0)¶Deletes a volume based on volume uri.
expand(full_project_name, volume_name, new_size, sync=False, synctimeout=0)¶get_exports_by_uri(uri)¶Makes REST API call to get exports info of a volume.
| Parameters: | uri – URI of the volume |
|---|---|
| Returns: | Exports details in JSON response payload |
get_storageAttributes(volume_name, cg_name, snapshot_name=None)¶is_volume_detachable(full_project_name, name)¶list_volumes(project)¶Makes REST API call to list volumes under a project.
| Parameters: | project – name of project |
|---|---|
| Returns: | List of volumes uuids in JSON response payload |
search_volumes(project_name)¶show(full_project_name, name)¶Retrieves volume details based on volume name.
| Parameters: |
|
|---|---|
| Returns: | Volume details in JSON response payload |
show_by_uri(uri)¶Makes REST API call and retrieves volume details based on UUID.
| Parameters: | uri – UUID of volume |
|---|---|
| Returns: | Volume details in JSON response payload |
storage_resource_query(storageres_type, volume_name, cg_name, snapshot_name, project, tenant)¶update(prefix_path, name, vpool)¶Makes REST API call to update a volume information.
| Parameters: |
|
|---|---|
| Returns: | Created task details in JSON response payload |
volume_clone_detach(resource_uri, full_project_name, name, sync, synctimeout=0)¶volume_query(full_project_name, volume_name)¶Makes REST API call to query the volume by name.
| Parameters: |
|
|---|---|
| Returns: | Volume details in JSON response payload |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.