EMC ViPR REST API

Search (SHIFT+S)

API Reference


Get Quota

GET /tenants/{id}/quota

Show quota and available capacity before quota is exhausted

idthe URN of a ViPR Tenant.

Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN
  • TENANT_ADMIN
  • SYSTEM_MONITOR
  • SECURITY_ADMIN

Response Body

QuotaInfo Quota metrics.

Field Description Type Notes
<quota_info>
<enabled> Indicates whether setting quotas is enabled for this resource. Boolean
<quota_gb> The quota set (in Gb) for this resource. Long
<current_capacity> The provisioned quota (in Gb) allocated for this resource. Long
<limited_resource>    
<name> The name of the resource String
<id> ViPR ID of the related object URI
<link> A hyperlink to the related object
</limited_resource>      
</quota_info>

Examples

Request
GET https://192.168.0.0:4443/tenants/urn:storageos:TenantOrg:4e39adf3-4b93-4c64-bfe8-b3e5f7ea4f74:/quota HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK 
Content-Type: application/xml 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<quota_info>
  <current_capacity>1</current_capacity>
  <enabled>false</enabled>
  <quota_gb>0</quota_gb>
  <limited_resource>
    <id>urn:storageos:TenantOrg:4e39adf3-4b93-4c64-bfe8-b3e5f7ea4f74:</id>
    <link href="/tenants/urn:storageos:TenantOrg:4e39adf3-4b93-4c64-bfe8-b3e5f7ea4f74:" rel="self"/>
    <name>lglap135</name>
  </limited_resource>
</quota_info>