Files
doc-exports/docs/cce/api-ref/ShowUserChartsQuotas.html
qiujiandong1 ebc8247e23 CCE API update 20250114 version
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2025-03-05 16:51:16 +00:00

183 lines
13 KiB
HTML

<a name="ShowUserChartsQuotas"></a><a name="ShowUserChartsQuotas"></a>
<h1 class="topictitle1">Obtaining the Quota of a User Chart</h1>
<div id="body32001227"><div class="section" id="ShowUserChartsQuotas__section20342323195918"><h4 class="sectiontitle">Function</h4><p id="ShowUserChartsQuotas__p7342192315912">This API is used to obtain the quota of a user chart.</p>
</div>
<div class="section" id="ShowUserChartsQuotas__en-us_topic_0000001850048626_atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="ShowUserChartsQuotas__p7343132320598">GET /v2/charts/{project_id}/quotas</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowUserChartsQuotas__table0344923165917" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="ShowUserChartsQuotas__row13343132312594"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="ShowUserChartsQuotas__p1434414234593">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="ShowUserChartsQuotas__p7344192305912">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="ShowUserChartsQuotas__p133441423155915">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="ShowUserChartsQuotas__p734562335914">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowUserChartsQuotas__row9343162315595"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ShowUserChartsQuotas__p143458233597">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ShowUserChartsQuotas__p163451323165910">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ShowUserChartsQuotas__p234511235593">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ShowUserChartsQuotas__p43471123115912">Project ID. For details about how to obtain the value, see <a href="cce_02_0271.html">How to Obtain Parameters in the API URI</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowUserChartsQuotas__section18347152395913"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowUserChartsQuotas__en-us_topic_0000001850048626_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="ShowUserChartsQuotas__row53471123135910"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="ShowUserChartsQuotas__p15348152317598">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="ShowUserChartsQuotas__p334872318597">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="ShowUserChartsQuotas__p1634910233596">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="ShowUserChartsQuotas__p173498234592">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowUserChartsQuotas__row10348423145917"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ShowUserChartsQuotas__p33491623115911">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ShowUserChartsQuotas__p23499235593">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ShowUserChartsQuotas__p435072310594">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ShowUserChartsQuotas__p175132048141618">Details:</p>
<p id="ShowUserChartsQuotas__p1513184851611">Request body type or format.</p>
<p id="ShowUserChartsQuotas__p363312163118">Constraints:</p>
<p id="ShowUserChartsQuotas__p86331116121112">The GET method is not verified.</p>
<p id="ShowUserChartsQuotas__p36336166115">Options:</p>
<ul id="ShowUserChartsQuotas__ul166331116111111"><li id="ShowUserChartsQuotas__li6633516101110">application/json</li><li id="ShowUserChartsQuotas__li1363351614116">application/json;charset=utf-8</li><li id="ShowUserChartsQuotas__li0633191617110">application/x-pem-file</li><li id="ShowUserChartsQuotas__li192591549143012">multipart/form-data (It can be used when the <strong id="ShowUserChartsQuotas__uploadchart_b1058912225107">FormData</strong> parameter exists.)</li></ul>
<p id="ShowUserChartsQuotas__p363331671112">Default value:</p>
<p id="ShowUserChartsQuotas__p5633151617112">N/A</p>
</td>
</tr>
<tr id="ShowUserChartsQuotas__row193481523145919"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ShowUserChartsQuotas__p143501823195919">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ShowUserChartsQuotas__p33501232592">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ShowUserChartsQuotas__p14350122311596">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ShowUserChartsQuotas__p835182305910">Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details, see <a href="cce_02_0004.html">API Usage Guidelines</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowUserChartsQuotas__section11351132316594"><h4 class="sectiontitle">Response Parameters</h4><p id="ShowUserChartsQuotas__p33511123115912"><strong id="ShowUserChartsQuotas__b183514237597">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowUserChartsQuotas__en-us_topic_0000001850048626_response_QuotaResp" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="ShowUserChartsQuotas__row535132365919"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="ShowUserChartsQuotas__p153524235590">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="ShowUserChartsQuotas__p2352142345919">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="ShowUserChartsQuotas__p73521423145912">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowUserChartsQuotas__row9352112312597"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ShowUserChartsQuotas__p535332365915">quotas</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ShowUserChartsQuotas__p1835362312593"><a href="#ShowUserChartsQuotas__en-us_topic_0000001850048626_response_quotas">quotas</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ShowUserChartsQuotas__p20353182385917">Chart quota</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ShowUserChartsQuotas__en-us_topic_0000001850048626_response_quotas"></a><a name="en-us_topic_0000001850048626_response_quotas"></a><table cellpadding="4" cellspacing="0" summary="" id="ShowUserChartsQuotas__en-us_topic_0000001850048626_response_quotas" frame="border" border="1" rules="all"><caption><b>Table 4 </b>quotas</caption><thead align="left"><tr id="ShowUserChartsQuotas__row18354112355913"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="ShowUserChartsQuotas__p135422318593">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="ShowUserChartsQuotas__p935492325911">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="ShowUserChartsQuotas__p11355223125916">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowUserChartsQuotas__row1435411230597"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowUserChartsQuotas__p13551523185917">resources</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowUserChartsQuotas__p20355112335911">Array of <a href="#ShowUserChartsQuotas__en-us_topic_0000001850048626_response_resources">resources</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowUserChartsQuotas__p335514233592">Resources</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ShowUserChartsQuotas__en-us_topic_0000001850048626_response_resources"></a><a name="en-us_topic_0000001850048626_response_resources"></a><table cellpadding="4" cellspacing="0" summary="" id="ShowUserChartsQuotas__en-us_topic_0000001850048626_response_resources" frame="border" border="1" rules="all"><caption><b>Table 5 </b>resources</caption><thead align="left"><tr id="ShowUserChartsQuotas__row13356823105912"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="ShowUserChartsQuotas__p1235612315919">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="ShowUserChartsQuotas__p9357192319595">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="ShowUserChartsQuotas__p2357152311597">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowUserChartsQuotas__row143566233596"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="ShowUserChartsQuotas__p103571923115910">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="ShowUserChartsQuotas__p163571923125918">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="ShowUserChartsQuotas__p163572023155916">Resource type</p>
</td>
</tr>
<tr id="ShowUserChartsQuotas__row63561123125918"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="ShowUserChartsQuotas__p193581423165914">quota</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="ShowUserChartsQuotas__p14358162365915">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="ShowUserChartsQuotas__p135862375911">Resource quota</p>
</td>
</tr>
<tr id="ShowUserChartsQuotas__row035662325919"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="ShowUserChartsQuotas__p11358152311599">used</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="ShowUserChartsQuotas__p173581323165918">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="ShowUserChartsQuotas__p7359223205911">Used resources</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowUserChartsQuotas__section19359923145917"><h4 class="sectiontitle">Example Requests</h4><p id="ShowUserChartsQuotas__p1335932315919">None</p>
</div>
<div class="section" id="ShowUserChartsQuotas__section12359423125912"><h4 class="sectiontitle">Example Responses</h4><p id="ShowUserChartsQuotas__p12359123175910"><strong id="ShowUserChartsQuotas__b1335918232599">Status code: 200</strong></p>
<p id="ShowUserChartsQuotas__p435922320597">OK</p>
<pre class="screen" id="ShowUserChartsQuotas__screen1836082317596">{
"quotas" : {
"resources" : [ {
"type" : "Charts",
"quota" : 200,
"used" : 2
} ]
}
}</pre>
</div>
<div class="section" id="ShowUserChartsQuotas__section236114236592"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowUserChartsQuotas__en-us_topic_0000001850048626_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="ShowUserChartsQuotas__row14361823135914"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="ShowUserChartsQuotas__p2362102375920">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="ShowUserChartsQuotas__p836252345910">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowUserChartsQuotas__row0361122317595"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ShowUserChartsQuotas__p3363182317595">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ShowUserChartsQuotas__p1236312385918">OK</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowUserChartsQuotas__section20363132314590"><h4 class="sectiontitle">Error Codes</h4><p id="ShowUserChartsQuotas__p63631823195914">See <a href="cce_02_0250.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="chart_lifecycle_management.html">Chart Management</a></div>
</div>
</div>