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

class Tenant(ipaddr, port)

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

URI_SERVICES_BASE = ''
URI_TENANT = '/tenant'
URI_TENANTS = '/tenants/{0}'
URI_TENANTS_SUBTENANT = '/tenants/{0}/subtenants'
get_tenant_by_name(tenant)
tenant_getid()
tenant_list(uri=None)

Returns all the tenants under a parent tenant.

Parameters:uri – The parent tenant name
Returns:JSON payload of tenant list
tenant_query(label)

Returns the UID of the tenant specified by the hierarchical name.

(ex tenant1/tenant2/tenant3)

tenant_show(label)

Returns the details of the tenant based on its name.

tenant_show_by_uri(uri)

Makes REST API call to retrieve tenant details based on UUID.

Previous topic

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

Next topic

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

This Page