EMC ViPR REST API

Search (SHIFT+S)

API Reference


Update Quota

PUT /block/vpools/{id}/quota

Updates quota and available capacity before quota is exhausted

idthe URN of a ViPR VirtualPool.

Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN
  • RESTRICTED_SYSTEM_ADMIN

Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
<quota_update>
<quota_enabled> Enable setting quotas for this resource. Boolean
<quota_gb> Set this quota (in Gb) for this resource. Long
</quota_update>

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
PUT https://192.168.0.0:4443/block/vpools/urn:storageos:VirtualPool:bf7104ec-3db2-4dcb-9e0d-7232a4460aea:/quota HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN=BAAcakl1NzRJT0FuSHE3VWl5Y2psVldab29tbWlrPQMAUAQADTEzNzk2MjQ3OTEyOTcCAAEABQA5dXJuOnN0b3JhZ2VvczpUb2tlbjpkZDdmNDdhZi02ZjdkLTQ5YzUtYWM2ZC03MTI5MTU5MDRmNDI6AgAC0A8=

<quota_update>
     <quota_enabled>true</quota_enabled>
     <quota_gb>2</quota_gb>
</quota_update>
Response
HTTP/1.1 200 OK
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <quota_info>
       <current_capacity>0</current_capacity>
       <enabled>true</enabled>
       <quota_gb>2</quota_gb>
       <limited_resource>
       <id>urn:storageos:VirtualPool:bf7104ec-3db2-4dcb-9e0d-7232a4460aea:</id>
       <link href="//urn:storageos:VirtualPool:bf7104ec-3db2-4dcb-9e0d-7232a4460aea:" rel="self"/>
       <name>Protected Base Virtual Pool</name>
       </limited_resource>
</quota_info>