The cinder.volume.drivers.coprhd.helpers.project Module

class Project(ipaddr, port)

Bases: cinder.volume.drivers.coprhd.helpers.commoncoprhdapi.CoprHDResource

URI_PROJECT = '/projects/{0}'
URI_PROJECT_LIST = '/tenants/{0}/projects'
project_list(tenant_name)

Makes REST API call and retrieves projects based on tenant UUID.

Parameters:tenant_name – Name of the tenant
Returns:List of project UUIDs in JSON response payload
project_query(name)

Retrieves UUID of project based on its name.

Parameters:name – name of project
Returns:UUID of project
Raises:CoprHdError - when project name is not found
project_show_by_uri(uri)

Makes REST API call and retrieves project derails based on UUID.

Parameters:uri – UUID of project
Returns:Project details in JSON response payload

Previous topic

The cinder.volume.drivers.coprhd.helpers.host Module

Next topic

The cinder.volume.drivers.coprhd.helpers.snapshot Module

This Page