EMC ViPR REST API

Search (SHIFT+S)

API Reference


Get Quota

GET /projects/{id}/quota

Show quota and available capacity before quota is exhausted

idthe URN of a ViPR project.

Required Roles

Requires one of the following roles:

  • SYSTEM_MONITOR
  • TENANT_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/projects/urn:storageos:Project:e85daa85-5c04-4dfd-ad70-7509b2e8a183:/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:Project:e85daa85-5c04-4dfd-ad70-7509b2e8a183:</id>
    <link href="/projects/urn:storageos:Project:e85daa85-5c04-4dfd-ad70-7509b2e8a183:" rel="self"/>
    <name>sanity</name>
  </limited_resource>
</quota_info>