forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
136 lines
11 KiB
HTML
136 lines
11 KiB
HTML
<a name="en-us_topic_0121230886"></a><a name="en-us_topic_0121230886"></a>
|
|
|
|
<h1 class="topictitle1">Querying Enterprise Project Quota</h1>
|
|
<div id="body10561254"><div class="section" id="en-us_topic_0121230886__section53057107"><h4 class="sectiontitle">Function</h4><p class="msonormal" id="en-us_topic_0121230886__p50155273">This API is used to query the enterprise project quota.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230886__en-us_topic_0076468636"><h4 class="sectiontitle">URI</h4><p id="en-us_topic_0121230886__p33987511">GET /v1.0/enterprise-projects/quotas</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230886__section2658439"><h4 class="sectiontitle">Request</h4><ul id="en-us_topic_0121230886__ul1477620129517"><li id="en-us_topic_0121230886__li187761812195115">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0121230886__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the request header</caption><thead align="left"><tr id="en-us_topic_0121230886__row57822620526"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="en-us_topic_0121230886__p1783126125213">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="en-us_topic_0121230886__p178326155214">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="en-us_topic_0121230886__p378318613521">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="en-us_topic_0121230886__p378356205210">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0121230886__row1782461522"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="en-us_topic_0121230886__p107831665525">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="en-us_topic_0121230886__p147842612527">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="en-us_topic_0121230886__p1078414612529">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="en-us_topic_0121230886__p197841665522">Specifies the user token. EPS is a global service. When calling the IAM API to obtain a user token, set <strong id="en-us_topic_0121230886__b15121257123415">scope</strong> to <strong id="en-us_topic_0121230886__b1121135733420">domain</strong>. The value of <strong id="en-us_topic_0121230886__b20435135812344">X-Subject-Token</strong> in the response header is the user token.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0121230886__ul11835203011507"><li id="en-us_topic_0121230886__li1283516303502">Example request<pre class="codeblock" id="en-us_topic_0121230886__codeblock192747444198">GET https://{EPS endpoint}/v1.0/enterprise-projects/quotas</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230886__section23925955"><h4 class="sectiontitle">Response</h4><p id="en-us_topic_0121230886__p165182016166"><strong id="en-us_topic_0121230886__b12669446163220">Status code: 200</strong></p>
|
|
<ul id="en-us_topic_0121230886__ul5027562"><li id="en-us_topic_0121230886__li45248063">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0121230886__table4579384" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the response body</caption><thead align="left"><tr id="en-us_topic_0121230886__row65396352"><th align="left" class="cellrowborder" valign="top" width="26.51%" id="mcps1.3.4.3.1.1.2.4.1.1"><p id="en-us_topic_0121230886__p62613188"><strong id="en-us_topic_0121230886__b253314398912">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.12%" id="mcps1.3.4.3.1.1.2.4.1.2"><p id="en-us_topic_0121230886__p38503468">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.37%" id="mcps1.3.4.3.1.1.2.4.1.3"><p id="en-us_topic_0121230886__p23493770"><strong id="en-us_topic_0121230886__b12723121423519">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0121230886__row23947216"><td class="cellrowborder" valign="top" width="26.51%" headers="mcps1.3.4.3.1.1.2.4.1.1 "><p id="en-us_topic_0121230886__p60676314">quotas</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.12%" headers="mcps1.3.4.3.1.1.2.4.1.2 "><p id="en-us_topic_0121230886__p15834384">Dict<quotas></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.37%" headers="mcps1.3.4.3.1.1.2.4.1.3 "><p id="en-us_topic_0121230886__p4878115">Enterprise project quotas.</p>
|
|
<p id="en-us_topic_0121230886__p1891019118121">For details, see <a href="#en-us_topic_0121230886__table61498184">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0121230886__ul59583055"><li id="en-us_topic_0121230886__li66485455"><strong id="en-us_topic_0121230886__b17338113131016">quotas</strong> field data structure
|
|
<div class="tablenoborder"><a name="en-us_topic_0121230886__table61498184"></a><a name="table61498184"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0121230886__table61498184" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="en-us_topic_0121230886__b34232807">quotas</strong> field data structure description</caption><thead align="left"><tr id="en-us_topic_0121230886__row55162617"><th align="left" class="cellrowborder" valign="top" width="26.51%" id="mcps1.3.4.4.1.2.2.4.1.1"><p id="en-us_topic_0121230886__p38987017"><strong id="en-us_topic_0121230886__b1285112023718">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.12%" id="mcps1.3.4.4.1.2.2.4.1.2"><p id="en-us_topic_0121230886__p3831826">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.37%" id="mcps1.3.4.4.1.2.2.4.1.3"><p id="en-us_topic_0121230886__p41895980"><strong id="en-us_topic_0121230886__b1672481413350">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0121230886__row38131214"><td class="cellrowborder" valign="top" width="26.51%" headers="mcps1.3.4.4.1.2.2.4.1.1 "><p id="en-us_topic_0121230886__p1620616">resources</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.12%" headers="mcps1.3.4.4.1.2.2.4.1.2 "><p id="en-us_topic_0121230886__p64161091">List<resource></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.37%" headers="mcps1.3.4.4.1.2.2.4.1.3 "><p id="en-us_topic_0121230886__p54127258">Specifies the resource quota of EPS.</p>
|
|
<p id="en-us_topic_0121230886__p32621939191219">For details, see <a href="#en-us_topic_0121230886__table55946580">Table 4</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0121230886__ul22231815"><li id="en-us_topic_0121230886__li65868610"><strong id="en-us_topic_0121230886__b65621041694442">resource</strong> field data structure
|
|
<div class="tablenoborder"><a name="en-us_topic_0121230886__table55946580"></a><a name="table55946580"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0121230886__table55946580" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="en-us_topic_0121230886__b1318879547">resource</strong> field data structure description</caption><thead align="left"><tr id="en-us_topic_0121230886__row2347005"><th align="left" class="cellrowborder" valign="top" width="26.51%" id="mcps1.3.4.5.1.2.2.4.1.1"><p id="en-us_topic_0121230886__p55889748"><strong id="en-us_topic_0121230886__b985311016374">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.12%" id="mcps1.3.4.5.1.2.2.4.1.2"><p id="en-us_topic_0121230886__p30775702">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.37%" id="mcps1.3.4.5.1.2.2.4.1.3"><p id="en-us_topic_0121230886__p55922433"><strong id="en-us_topic_0121230886__b6725171417359">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0121230886__row33423225"><td class="cellrowborder" valign="top" width="26.51%" headers="mcps1.3.4.5.1.2.2.4.1.1 "><p id="en-us_topic_0121230886__p22926718">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.12%" headers="mcps1.3.4.5.1.2.2.4.1.2 "><p id="en-us_topic_0121230886__p45124855">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.37%" headers="mcps1.3.4.5.1.2.2.4.1.3 "><p id="en-us_topic_0121230886__p46977639">Specifies the resource type. Currently, it refers to <strong id="en-us_topic_0121230886__b123181917165911">enterprise_project</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0121230886__row20145569"><td class="cellrowborder" valign="top" width="26.51%" headers="mcps1.3.4.5.1.2.2.4.1.1 "><p id="en-us_topic_0121230886__p21178397">used</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.12%" headers="mcps1.3.4.5.1.2.2.4.1.2 "><p id="en-us_topic_0121230886__p37728593">int</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.37%" headers="mcps1.3.4.5.1.2.2.4.1.3 "><p id="en-us_topic_0121230886__p39813892">Specifies the number of used quotas.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0121230886__row22780709"><td class="cellrowborder" valign="top" width="26.51%" headers="mcps1.3.4.5.1.2.2.4.1.1 "><p id="en-us_topic_0121230886__p33298146">quota</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.12%" headers="mcps1.3.4.5.1.2.2.4.1.2 "><p id="en-us_topic_0121230886__p12795324">int</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.37%" headers="mcps1.3.4.5.1.2.2.4.1.3 "><p id="en-us_topic_0121230886__p64043237">Specifies the total amount of the quota.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="en-us_topic_0121230886__li39518222">Example response<div class="p" id="en-us_topic_0121230886__p6648161315162"><a name="en-us_topic_0121230886__li39518222"></a><a name="li39518222"></a><strong id="en-us_topic_0121230886__b16561185612325">Status code: 200</strong><pre class="screen" id="en-us_topic_0121230886__screen15202321155317">{
|
|
"quotas": {
|
|
"resources": [
|
|
{
|
|
"type": "enterprise_project",
|
|
"used": 3,
|
|
"quota": 100
|
|
}
|
|
]
|
|
}
|
|
}</pre>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230886__section4531164315292"><h4 class="sectiontitle">Status Codes</h4><p id="en-us_topic_0121230886__p145228330242">For details, see <a href="en-us_topic_0171146972.html">Status Code</a>.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230886__section0396144719295"><h4 class="sectiontitle">Error Codes</h4><p id="en-us_topic_0121230886__p177044331253">For details, see <a href="en-us_topic_0121230887.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0133321992.html">Enterprise Project Management</a></div>
|
|
</div>
|
|
</div>
|
|
|