doc-exports/docs/eip/api-ref/eip_apiquota_0001.html
Qin Ying, Fan 65b77b76d4 EIP API 20230106 version
Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com>
Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com>
Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
2023-08-01 06:58:15 +00:00

233 lines
23 KiB
HTML

<a name="eip_apiquota_0001"></a><a name="eip_apiquota_0001"></a>
<h1 class="topictitle1">Querying the Quota</h1>
<div id="body8662426"><div class="section" id="eip_apiquota_0001__en-us_topic_0201534147_section52301286"><h4 class="sectiontitle">Function</h4><p id="eip_apiquota_0001__en-us_topic_0201534147_p8936292">This API is used to query network resource quotas of a tenant. The network resources include VPCs, subnets, security groups, security group rules, EIPs, and VPNs.</p>
<div class="note" id="eip_apiquota_0001__note991510311211"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="eip_apiquota_0001__p15916143151216">This API can be used to query quotas of EIPs and VPCs.</p>
</div></div>
</div>
<div class="section" id="eip_apiquota_0001__en-us_topic_0201534147_section949529"><h4 class="sectiontitle">URI</h4><p id="eip_apiquota_0001__en-us_topic_0201534147_p97921941196">GET /v1/{project_id}/quotas</p>
<div class="p" id="eip_apiquota_0001__en-us_topic_0201534147_p51111276194">Example:<pre class="screen" id="eip_apiquota_0001__en-us_topic_0201534147_screen12303961144645">GET https://{Endpoint}/v1/{project_id}/quotas?type={type}</pre>
</div>
<div class="p" id="eip_apiquota_0001__en-us_topic_0201534147_p367301191914"><a href="#eip_apiquota_0001__en-us_topic_0201534147_table38014313">Table 1</a> describes the parameters.
<div class="tablenoborder"><a name="eip_apiquota_0001__en-us_topic_0201534147_table38014313"></a><a name="en-us_topic_0201534147_table38014313"></a><table cellpadding="4" cellspacing="0" summary="" id="eip_apiquota_0001__en-us_topic_0201534147_table38014313" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="eip_apiquota_0001__en-us_topic_0201534147_row46663997"><th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.2.4.2.2.5.1.1"><p id="eip_apiquota_0001__en-us_topic_0201534147_p21687383"><strong id="eip_apiquota_0001__b9454114443811">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.2.4.2.2.5.1.2"><p id="eip_apiquota_0001__en-us_topic_0201534147_p11847581"><strong id="eip_apiquota_0001__b3655164915717">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.2.4.2.2.5.1.3"><p id="eip_apiquota_0001__en-us_topic_0201534147_p18682156172640"><strong id="eip_apiquota_0001__b842352706145623">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="46%" id="mcps1.3.2.4.2.2.5.1.4"><p id="eip_apiquota_0001__en-us_topic_0201534147_p20130041"><strong id="eip_apiquota_0001__b8423527061645">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="eip_apiquota_0001__en-us_topic_0201534147_row19920592"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.2.4.2.2.5.1.1 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p2955276">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.4.2.2.5.1.2 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p38050837">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.2.4.2.2.5.1.3 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p36859696172640">String</p>
</td>
<td class="cellrowborder" valign="top" width="46%" headers="mcps1.3.2.4.2.2.5.1.4 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p10487112">Specifies the project ID. </p>
</td>
</tr>
<tr id="eip_apiquota_0001__en-us_topic_0201534147_row23099752"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.2.4.2.2.5.1.1 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p59140623">type</p>
</td>
<td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.4.2.2.5.1.2 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p25661150">No</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.2.4.2.2.5.1.3 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p32845400172640">String</p>
</td>
<td class="cellrowborder" valign="top" width="46%" headers="mcps1.3.2.4.2.2.5.1.4 "><ul id="eip_apiquota_0001__ul172072030141519"><li id="eip_apiquota_0001__en-us_topic_0201534147_li1767724712142">Specifies the resource type.</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li7625114921413">Values:<ul id="eip_apiquota_0001__en-us_topic_0201534147_ul9961151312919"><li id="eip_apiquota_0001__en-us_topic_0201534147_li99111844123411"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b14549171332919">vpc</strong>: VPC</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li2961113172920"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b18886233182919">subnet</strong>: Subnet</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li3961141342914"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b74529492296">securityGroup</strong>: Security group</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li396171322915"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b17924155813295">securityGroupRule</strong>: Security group rule</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li15961151313295"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b49801311133018">publicIp</strong>: <span id="eip_apiquota_0001__en-us_topic_0201534147_text1857544105311"></span><span id="eip_apiquota_0001__en-us_topic_0201534147_text5575154115319">EIP</span></li><li id="eip_apiquota_0001__en-us_topic_0201534147_li14961181382917"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b12131417103019">vpn</strong>: VPN</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li15961713112912"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b373014367304">vpcPeer</strong>: VPC peering connection</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li196114133292"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b19659765313">loadbalancer</strong>: Load balancer</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li1996171318294"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b7682105883510">listener</strong>: Listener</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li89611613172916"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b959714433515">physicalConnect</strong>: Direct Connect connection</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li7961151312910"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b19988164645318">virtualInterface</strong>: Virtual interface</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li1696111382920"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b16211487533">firewall</strong>: Firewall</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li29617137299"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b11145638145419">shareBandwidthIP</strong>: IP address added to a shared bandwidth</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li49613134298"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b13994435545">shareBandwidth</strong>: Shared bandwidth</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li7614113763211"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b1485105895518">flow_log</strong>: VPC fow log</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li10868104283219"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b580115451566">vpcContainRoutetable</strong>: Number of route tables associated with a VPC</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li11377435103319"><strong id="eip_apiquota_0001__en-us_topic_0201534147_b12681238195715">routetableContainRoutes</strong>: Number of routes in a route table</li></ul>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="eip_apiquota_0001__en-us_topic_0201534147_section8545767"><h4 class="sectiontitle">Request Parameters</h4><p id="eip_apiquota_0001__en-us_topic_0201534147_p830316592176">None</p>
</div>
<div class="section" id="eip_apiquota_0001__en-us_topic_0201534147_section9803039"><h4 class="sectiontitle">Response Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="eip_apiquota_0001__en-us_topic_0201534147_table66351430155536" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameter</caption><thead align="left"><tr id="eip_apiquota_0001__en-us_topic_0201534147_row25019730155536"><th align="left" class="cellrowborder" valign="top" width="18.34%" id="mcps1.3.4.2.2.4.1.1"><p id="eip_apiquota_0001__en-us_topic_0201534147_p13332267155536">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.509999999999998%" id="mcps1.3.4.2.2.4.1.2"><p id="eip_apiquota_0001__en-us_topic_0201534147_p30154725155536">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="56.15%" id="mcps1.3.4.2.2.4.1.3"><p id="eip_apiquota_0001__en-us_topic_0201534147_p26613655155536">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="eip_apiquota_0001__en-us_topic_0201534147_row8222433155536"><td class="cellrowborder" valign="top" width="18.34%" headers="mcps1.3.4.2.2.4.1.1 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p62037356155536">quotas</p>
</td>
<td class="cellrowborder" valign="top" width="25.509999999999998%" headers="mcps1.3.4.2.2.4.1.2 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p11836771155536"><a href="#eip_apiquota_0001__en-us_topic_0201534147_table11308015155544">quotas</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="56.15%" headers="mcps1.3.4.2.2.4.1.3 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p39072163155536">Specifies the quota object. For details, see <a href="#eip_apiquota_0001__en-us_topic_0201534147_table11308015155544">Table 3</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="eip_apiquota_0001__en-us_topic_0201534147_table11308015155544"></a><a name="en-us_topic_0201534147_table11308015155544"></a><table cellpadding="4" cellspacing="0" summary="" id="eip_apiquota_0001__en-us_topic_0201534147_table11308015155544" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Description of the <strong id="eip_apiquota_0001__en-us_topic_0201534147_b33165484217">quotas</strong> field</caption><thead align="left"><tr id="eip_apiquota_0001__en-us_topic_0201534147_row37694756155544"><th align="left" class="cellrowborder" valign="top" width="18.34%" id="mcps1.3.4.3.2.4.1.1"><p id="eip_apiquota_0001__en-us_topic_0201534147_p33376361155544">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.509999999999998%" id="mcps1.3.4.3.2.4.1.2"><p id="eip_apiquota_0001__en-us_topic_0201534147_p6082737155544">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="56.15%" id="mcps1.3.4.3.2.4.1.3"><p id="eip_apiquota_0001__en-us_topic_0201534147_p22939651155544">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="eip_apiquota_0001__en-us_topic_0201534147_row46172458155544"><td class="cellrowborder" valign="top" width="18.34%" headers="mcps1.3.4.3.2.4.1.1 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p48981646155544">resources</p>
</td>
<td class="cellrowborder" valign="top" width="25.509999999999998%" headers="mcps1.3.4.3.2.4.1.2 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p51341867155544">Array of <a href="#eip_apiquota_0001__en-us_topic_0201534147_table8208684">resource</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="56.15%" headers="mcps1.3.4.3.2.4.1.3 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p48584024155544">Specifies the resource objects. For details, see <a href="#eip_apiquota_0001__en-us_topic_0201534147_table8208684">Table 4</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="eip_apiquota_0001__en-us_topic_0201534147_table8208684"></a><a name="en-us_topic_0201534147_table8208684"></a><table cellpadding="4" cellspacing="0" summary="" id="eip_apiquota_0001__en-us_topic_0201534147_table8208684" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Description of the <strong id="eip_apiquota_0001__en-us_topic_0201534147_b1815662817312">resource</strong> field</caption><thead align="left"><tr id="eip_apiquota_0001__en-us_topic_0201534147_row19762867"><th align="left" class="cellrowborder" valign="top" width="15.959999999999999%" id="mcps1.3.4.4.2.4.1.1"><p id="eip_apiquota_0001__en-us_topic_0201534147_p57288388">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.1%" id="mcps1.3.4.4.2.4.1.2"><p id="eip_apiquota_0001__en-us_topic_0201534147_p3523125172732">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="64.94%" id="mcps1.3.4.4.2.4.1.3"><p id="eip_apiquota_0001__en-us_topic_0201534147_p59475690">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="eip_apiquota_0001__en-us_topic_0201534147_row52801617"><td class="cellrowborder" valign="top" width="15.959999999999999%" headers="mcps1.3.4.4.2.4.1.1 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p49072547">type</p>
</td>
<td class="cellrowborder" valign="top" width="19.1%" headers="mcps1.3.4.4.2.4.1.2 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p16937702172732">String</p>
</td>
<td class="cellrowborder" valign="top" width="64.94%" headers="mcps1.3.4.4.2.4.1.3 "><ul id="eip_apiquota_0001__en-us_topic_0201534147_ul15534105019216"><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li1767724712142">Specifies the resource type.</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li7625114921413">Values:<ul id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_ul9961151312919"><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li99111844123411"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b14549171332919">vpc</strong>: VPC</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li2961113172920"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b18886233182919">subnet</strong>: Subnet</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li3961141342914"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b74529492296">securityGroup</strong>: Security group</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li396171322915"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b17924155813295">securityGroupRule</strong>: Security group rule</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li15961151313295"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b49801311133018">publicIp</strong>: <span id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_text1857544105311"></span><span id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_text5575154115319">EIP</span></li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li14961181382917"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b12131417103019">vpn</strong>: VPN</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li15961713112912"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b373014367304">vpcPeer</strong>: VPC peering connection</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li196114133292"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b19659765313">loadbalancer</strong>: Load balancer</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li1996171318294"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b7682105883510">listener</strong>: Listener</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li89611613172916"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b959714433515">physicalConnect</strong>: Direct Connect connection</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li7961151312910"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b19988164645318">virtualInterface</strong>: Virtual interface</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li1696111382920"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b16211487533">firewall</strong>: Firewall</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li29617137299"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b11145638145419">shareBandwidthIP</strong>: IP address added to a shared bandwidth</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li49613134298"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b13994435545">shareBandwidth</strong>: Shared bandwidth</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li7614113763211"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b1485105895518">flow_log</strong>: VPC fow log</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li10868104283219"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b580115451566">vpcContainRoutetable</strong>: Number of route tables associated with a VPC</li><li id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_li11377435103319"><strong id="eip_apiquota_0001__en-us_topic_0201534147_en-us_topic_0201534147_b12681238195715">routetableContainRoutes</strong>: Number of routes in a route table</li></ul>
</li></ul>
</td>
</tr>
<tr id="eip_apiquota_0001__en-us_topic_0201534147_row49017803"><td class="cellrowborder" valign="top" width="15.959999999999999%" headers="mcps1.3.4.4.2.4.1.1 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p11019092">used</p>
</td>
<td class="cellrowborder" valign="top" width="19.1%" headers="mcps1.3.4.4.2.4.1.2 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p29776587172732">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="64.94%" headers="mcps1.3.4.4.2.4.1.3 "><ul id="eip_apiquota_0001__en-us_topic_0201534147_ul255215419218"><li id="eip_apiquota_0001__en-us_topic_0201534147_li125528548212">Specifies the number of created network resources.</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li85525540213">The value ranges from <strong id="eip_apiquota_0001__en-us_topic_0201534147_b1407708997192551">0</strong> to the value of <strong id="eip_apiquota_0001__en-us_topic_0201534147_b637466560192551">quota</strong>.</li></ul>
</td>
</tr>
<tr id="eip_apiquota_0001__en-us_topic_0201534147_row13742502"><td class="cellrowborder" valign="top" width="15.959999999999999%" headers="mcps1.3.4.4.2.4.1.1 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p39400845">quota</p>
</td>
<td class="cellrowborder" valign="top" width="19.1%" headers="mcps1.3.4.4.2.4.1.2 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p63093324172732">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="64.94%" headers="mcps1.3.4.4.2.4.1.3 "><ul id="eip_apiquota_0001__en-us_topic_0201534147_ul399282316224"><li id="eip_apiquota_0001__en-us_topic_0201534147_li139921923122213">Specifies the maximum quota values for the resources.</li><li id="eip_apiquota_0001__en-us_topic_0201534147_li5992162318221">The value ranges from the default quota value to the maximum quota value.</li></ul>
</td>
</tr>
<tr id="eip_apiquota_0001__en-us_topic_0201534147_row4925573392829"><td class="cellrowborder" valign="top" width="15.959999999999999%" headers="mcps1.3.4.4.2.4.1.1 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p576726292829">min</p>
</td>
<td class="cellrowborder" valign="top" width="19.1%" headers="mcps1.3.4.4.2.4.1.2 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p3758450892829">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="64.94%" headers="mcps1.3.4.4.2.4.1.3 "><p id="eip_apiquota_0001__en-us_topic_0201534147_p6018282892829">Specifies the minimum quota value allowed.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="eip_apiquota_0001__en-us_topic_0201534147_note795511430441"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="eip_apiquota_0001__en-us_topic_0201534147_p1795519432440">If value <strong id="eip_apiquota_0001__en-us_topic_0201534147_b118911831819">-1</strong> is returned when you use an API to query your VPC quota, this indicates that the VPC quota is not limited.</p>
</div></div>
</div>
<div class="section" id="eip_apiquota_0001__section473081118167"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="eip_apiquota_0001__en-us_topic_0201534147_screen49022339286">{
"quotas": {
"resources": [
{
"type": "vpc",
"used": 4,
"quota": 150,
"min": 0
},
{
"type": "subnet",
"used": 5,
"quota": 400,
"min": 0
},
{
"type": "securityGroup",
"used": 1,
"quota": 100,
"min": 0
},
{
"type": "securityGroupRule",
"used": 6,
"quota": 5000,
"min": 0
},
{
"type": "publicIp",
"used": 2,
"quota": 10,
"min": 0
},
{
"type": "vpn",
"used": 0,
"quota": 5,
"min": 0
},
{
"type": "vpcPeer",
"used": 0,
"quota": 50,
"min": 0
},
{
"type": "firewall",
"used": 0,
"quota": 200,
"min": 0
},
{
"type": "shareBandwidth",
"used": 0,
"quota": 5,
"min": 0
},
{
"type": "shareBandwidthIP",
"used": 0,
"quota": 20,
"min": 0
},
{
"type": "loadbalancer",
"used": 0,
"quota": 10,
"min": 0
},
{
"type": "listener",
"used": 0,
"quota": 10,
"min": 0
},
{
"type": "vpcContainRoutetable",
"used": 0,
"quota": 1,
"min": 0
},
{
"type": "routetableContainRoutes",
"used": 0,
"quota": 200,
"min": 0
}
]
}
}</pre>
</div>
<p id="eip_apiquota_0001__p4205152271416"></p>
<div class="section" id="eip_apiquota_0001__en-us_topic_0201534147_section31981619"><h4 class="sectiontitle">Status Code</h4><p id="eip_apiquota_0001__en-us_topic_0201534147_p18112112662914">See <a href="eip_api05_0001.html">Status Codes</a>.</p>
</div>
<div class="section" id="eip_apiquota_0001__en-us_topic_0201534147_section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="eip_apiquota_0001__en-us_topic_0201534147_p7233105282813">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="eip_apiquota_0000.html">Quota</a></div>
</div>
</div>