EMC ViPR REST API

Search (SHIFT+S)

API Reference


Get Quota

GET /file/vpools/{id}/quota

Show quota and available capacity before quota is exhausted

idthe URN of a ViPR VirtualPool.

Required Roles

Requires one of the following roles:

  • SYSTEM_MONITOR
  • SYSTEM_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/file/vpools/urn:storageos:VirtualPool:bb133037-1f22-4cc5-84bc-7b90049c9ad0:/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:VirtualPool:bb133037-1f22-4cc5-84bc-7b90049c9ad0:</id>
    <link href="/block/vpools/urn:storageos:VirtualPool:bb133037-1f22-4cc5-84bc-7b90049c9ad0:" rel="self"/>
    <name>cosisi</name>
  </limited_resource>
</quota_info>