forked from docs/doc-exports
459 lines
31 KiB
HTML
459 lines
31 KiB
HTML
<a name="CreateAppQuota"></a><a name="CreateAppQuota"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Credential Quota</h1>
|
|
<div id="body55521934797"><div class="section" id="CreateAppQuota__section45538349918"><h4 class="sectiontitle">Function</h4><p id="CreateAppQuota__p2055318342914">Creating a Credential Quota</p>
|
|
</div>
|
|
<div class="section" id="CreateAppQuota__atuogenerate_1"><h4 class="sectiontitle">Calling Method</h4><p id="CreateAppQuota__p4553143416916">For details, see <a href="apig-api-180713003.html">Calling APIs</a>.</p>
|
|
</div>
|
|
<div class="section" id="CreateAppQuota__atuogenerate_2"><h4 class="sectiontitle">URI</h4><p id="CreateAppQuota__p955317341197">POST /v2/{project_id}/apigw/instances/{instance_id}/app-quotas</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__table05542348912" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="CreateAppQuota__row9553153419919"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreateAppQuota__p15554103416917">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreateAppQuota__p855418341918">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreateAppQuota__p1655443418915">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreateAppQuota__p12555133418910">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row1355433411915"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateAppQuota__p8555134699">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateAppQuota__p16555103416911">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateAppQuota__p45559346910">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateAppQuota__p115551434993">Project ID. For details about how to obtain it, see <a href="apig-api-180713009.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row125543344916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateAppQuota__p19555034595">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateAppQuota__p555520341890">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateAppQuota__p1755518340920">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateAppQuota__p55560341994">Gateway ID, which can be obtained from the gateway information on the APIG console.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateAppQuota__section1155614341692"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="CreateAppQuota__row195561134198"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="CreateAppQuota__p175561234799">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="CreateAppQuota__p25571344913">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="CreateAppQuota__p1055712349911">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="CreateAppQuota__p75575342916">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row25561234999"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="CreateAppQuota__p115578341911">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="CreateAppQuota__p1355713418915">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="CreateAppQuota__p2557934397">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="CreateAppQuota__p755716341692">User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__request_AppQuotaCreate" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="CreateAppQuota__row1655863417913"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="CreateAppQuota__p9559334196">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="CreateAppQuota__p9559734894">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="CreateAppQuota__p65591734895">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="CreateAppQuota__p135599341397">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row055812347912"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="CreateAppQuota__p11559183411914">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="CreateAppQuota__p10559334699">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="CreateAppQuota__p455915343915">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="CreateAppQuota__p205591234593">Quota name. Start with a letter. Use letters, digits, or underscores (_).</p>
|
|
<p id="CreateAppQuota__p456016341919">Minimum: <strong id="CreateAppQuota__b1456083419911">3</strong></p>
|
|
<p id="CreateAppQuota__p1356013348914">Maximum: <strong id="CreateAppQuota__b75601234594">255</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row655818347916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="CreateAppQuota__p05609344913">call_limits</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="CreateAppQuota__p2560163414912">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="CreateAppQuota__p135607344920">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="CreateAppQuota__p056011341898">Maximum number of times a credential quota can be called.</p>
|
|
<p id="CreateAppQuota__p65603341697">Minimum: <strong id="CreateAppQuota__b4560173417913">1</strong></p>
|
|
<p id="CreateAppQuota__p05600346918">Maximum: <strong id="CreateAppQuota__b125606344916">2147483647</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row1055843414920"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="CreateAppQuota__p155606341791">time_unit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="CreateAppQuota__p256113341598">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="CreateAppQuota__p1456133414917">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="CreateAppQuota__p05613341197">Time unit. The options are SECOND, MINUTE, HOUR, and DAY.</p>
|
|
<p id="CreateAppQuota__p1856133412911">Enumeration values:</p>
|
|
<ul id="CreateAppQuota__ul15612343910"><li id="CreateAppQuota__li115619347911"><strong id="CreateAppQuota__b1356183419911">SECOND</strong></li><li id="CreateAppQuota__li45614343912"><strong id="CreateAppQuota__b156273414912">MINUTE</strong></li><li id="CreateAppQuota__li20562934891"><strong id="CreateAppQuota__b456219346917">HOUR</strong></li><li id="CreateAppQuota__li12562143415913"><strong id="CreateAppQuota__b1856215345919">DAY</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row755820345917"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="CreateAppQuota__p1256219349918">time_interval</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="CreateAppQuota__p456218341095">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="CreateAppQuota__p165621341090">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="CreateAppQuota__p756217342910">Time interval for throttling.</p>
|
|
<p id="CreateAppQuota__p125631734994">Minimum: <strong id="CreateAppQuota__b17563143410918">1</strong></p>
|
|
<p id="CreateAppQuota__p1756313417917">Maximum: <strong id="CreateAppQuota__b1756315349920">2147483647</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row1655813342914"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="CreateAppQuota__p756363417914">reset_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="CreateAppQuota__p056313341299">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="CreateAppQuota__p1556313341398">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="CreateAppQuota__p75636346913">Time when the quota is reset for the first time. If this parameter is not specified, the time is calculated based on the first calling time by default.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row05585348910"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="CreateAppQuota__p45638341798">remark</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="CreateAppQuota__p1456318341299">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="CreateAppQuota__p1056453415919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="CreateAppQuota__p1656413415913">Parameter description.</p>
|
|
<p id="CreateAppQuota__p95644341395">Brackets (<>) are not supported.</p>
|
|
<p id="CreateAppQuota__p25644341992">Maximum: <strong id="CreateAppQuota__b15641834695">255</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateAppQuota__section1756418341698"><h4 class="sectiontitle">Response Parameters</h4><p id="CreateAppQuota__p956433411918"><strong id="CreateAppQuota__b19564123415912">Status code: 201</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__response_AppQuotaInfo" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="CreateAppQuota__row165651034591"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="CreateAppQuota__p12565634494">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="CreateAppQuota__p756611349916">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="CreateAppQuota__p4566334996">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row15651341791"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateAppQuota__p165669342915">app_quota_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateAppQuota__p556615341895">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateAppQuota__p135661534494">Credential quota ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row95653341595"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateAppQuota__p3566133410910">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateAppQuota__p856618341695">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateAppQuota__p9567834691">Quota name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row18565334791"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateAppQuota__p125671634892">call_limits</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateAppQuota__p1956715341393">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateAppQuota__p956720341591">Maximum number of times a credential quota can be called.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row25654341092"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateAppQuota__p1756710343914">time_unit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateAppQuota__p45679341496">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateAppQuota__p1056717341396">Time unit. The options are SECOND, MINUTE, HOUR, and DAY.</p>
|
|
<p id="CreateAppQuota__p156813341393">Enumeration values:</p>
|
|
<ul id="CreateAppQuota__ul2568123417914"><li id="CreateAppQuota__li756819341393"><strong id="CreateAppQuota__b185685340919">SECOND</strong></li><li id="CreateAppQuota__li6568163414914"><strong id="CreateAppQuota__b8568123411914">MINUTE</strong></li><li id="CreateAppQuota__li115683341913"><strong id="CreateAppQuota__b85681934890">HOUR</strong></li><li id="CreateAppQuota__li20568534296"><strong id="CreateAppQuota__b1856818342919">DAY</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row1456515341196"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateAppQuota__p156803413915">time_interval</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateAppQuota__p3568334994">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateAppQuota__p156817349918">Time limit of a quota.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row115651634996"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateAppQuota__p756993418920">remark</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateAppQuota__p1256912341198">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateAppQuota__p15691134991">Parameter description.</p>
|
|
<p id="CreateAppQuota__p165697343918">Maximum: <strong id="CreateAppQuota__b11569134695">255</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row16565034692"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateAppQuota__p105695341899">reset_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateAppQuota__p1756913345919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateAppQuota__p115691340911">Time when the quota is reset for the first time. If this parameter is not specified, the time is calculated based on the first calling time by default.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row2565734590"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateAppQuota__p75695342916">create_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateAppQuota__p19570334291">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateAppQuota__p857016340915">Creation time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row3565113411911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="CreateAppQuota__p1157073415914">bound_app_num</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="CreateAppQuota__p185701034996">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="CreateAppQuota__p557073413910">Number of applications bound to the quota policy.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateAppQuota__p19570183411913"><strong id="CreateAppQuota__b1957011341798">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__response_ResponseModel" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="CreateAppQuota__row1657115341198"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="CreateAppQuota__p115716341911">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.2"><p id="CreateAppQuota__p45711334290">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.5.2.4.1.3"><p id="CreateAppQuota__p2571934899">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row95716342912"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateAppQuota__p1572153412917">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateAppQuota__p175722344914">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateAppQuota__p1957219345920">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row85711634494"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="CreateAppQuota__p1857214341593">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="CreateAppQuota__p7572334593">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="CreateAppQuota__p75725341915">Error description.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateAppQuota__p757217349912"><strong id="CreateAppQuota__b1057215341690">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__response_ResponseModel_1" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="CreateAppQuota__row85731934892"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.1"><p id="CreateAppQuota__p205738341198">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.2"><p id="CreateAppQuota__p15731634896">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.7.2.4.1.3"><p id="CreateAppQuota__p1457353414912">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row13573163410911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="CreateAppQuota__p115741334191">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="CreateAppQuota__p1757473413914">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="CreateAppQuota__p19574183418916">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row1257314341911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="CreateAppQuota__p457420345919">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="CreateAppQuota__p657453410920">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="CreateAppQuota__p15748341999">Error description.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateAppQuota__p557413411910"><strong id="CreateAppQuota__b35751341295">Status code: 403</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__response_ResponseModel_2" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="CreateAppQuota__row135759341294"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.1"><p id="CreateAppQuota__p657573414914">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.2"><p id="CreateAppQuota__p115752034491">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.9.2.4.1.3"><p id="CreateAppQuota__p757603419919">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row957515341099"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="CreateAppQuota__p17576334498">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="CreateAppQuota__p18576034693">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="CreateAppQuota__p1357614342095">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row05751934594"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="CreateAppQuota__p75761134296">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="CreateAppQuota__p857615343917">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="CreateAppQuota__p16576193420916">Error description.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateAppQuota__p1157619348915"><strong id="CreateAppQuota__b8576113413914">Status code: 404</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__response_ResponseModel_3" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="CreateAppQuota__row14577103412910"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.1"><p id="CreateAppQuota__p557713413913">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.2"><p id="CreateAppQuota__p145781234799">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.11.2.4.1.3"><p id="CreateAppQuota__p1257863420914">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row4577934593"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="CreateAppQuota__p257819341099">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="CreateAppQuota__p11578173411919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="CreateAppQuota__p657811345912">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row95771034794"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="CreateAppQuota__p7578534995">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="CreateAppQuota__p1357912347912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="CreateAppQuota__p1857913343917">Error description.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="CreateAppQuota__p757915344911"><strong id="CreateAppQuota__b12579153411919">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__response_ResponseModel_4" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="CreateAppQuota__row557913341897"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.13.2.4.1.1"><p id="CreateAppQuota__p135805341396">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.13.2.4.1.2"><p id="CreateAppQuota__p105801034896">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.13.2.4.1.3"><p id="CreateAppQuota__p1458018341914">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row1357910342915"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.1 "><p id="CreateAppQuota__p158016341394">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.2 "><p id="CreateAppQuota__p95801634592">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.13.2.4.1.3 "><p id="CreateAppQuota__p95813342917">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row15793341897"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.1 "><p id="CreateAppQuota__p65815346913">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.13.2.4.1.2 "><p id="CreateAppQuota__p45813348911">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.13.2.4.1.3 "><p id="CreateAppQuota__p458143416913">Error description.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateAppQuota__section1358118341996"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="CreateAppQuota__screen12581934790">{
|
|
"call_limits" : 1000,
|
|
"name" : "ClientQuota_demo",
|
|
"reset_time" : "2020-09-20 00:00:00",
|
|
"time_interval" : 1,
|
|
"time_unit" : "DAY"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="CreateAppQuota__section75827341292"><h4 class="sectiontitle">Example Responses</h4><p id="CreateAppQuota__p125827341495"><strong id="CreateAppQuota__b175821340919">Status code: 201</strong></p>
|
|
<p id="CreateAppQuota__p20582634596">OK</p>
|
|
<pre class="screen" id="CreateAppQuota__screen1458363410910">{
|
|
"app_quota_id" : "c900c5612dbe451bb43cbcc49cfaf2f3",
|
|
"call_limits" : 1000,
|
|
"create_time" : "2020-09-19T15:27:47.60571141+08:00",
|
|
"name" : "ClientQuota_demo",
|
|
"reset_time" : "2020-09-20 00:00:00",
|
|
"time_interval" : 1,
|
|
"time_unit" : "DAY"
|
|
}</pre>
|
|
<p id="CreateAppQuota__p10583173420918"><strong id="CreateAppQuota__b3584634293">Status code: 400</strong></p>
|
|
<p id="CreateAppQuota__p058420341692">Bad Request</p>
|
|
<pre class="screen" id="CreateAppQuota__screen958417342916">{
|
|
"error_code" : "APIG.3325",
|
|
"error_msg" : "The API quota name already exists"
|
|
}</pre>
|
|
<p id="CreateAppQuota__p383119349915"><strong id="CreateAppQuota__b1483163419917">Status code: 401</strong></p>
|
|
<p id="CreateAppQuota__p178318341096">Unauthorized</p>
|
|
<pre class="screen" id="CreateAppQuota__screen178312342917">{
|
|
"error_code" : "APIG.1002",
|
|
"error_msg" : "Incorrect token or token resolution failed"
|
|
}</pre>
|
|
<p id="CreateAppQuota__p148311341398"><strong id="CreateAppQuota__b1883115341911">Status code: 403</strong></p>
|
|
<p id="CreateAppQuota__p8832113414918">Forbidden</p>
|
|
<pre class="screen" id="CreateAppQuota__screen1083210340917">{
|
|
"error_code" : "APIG.1005",
|
|
"error_msg" : "No permissions to request this method"
|
|
}</pre>
|
|
<p id="CreateAppQuota__p13832143417910"><strong id="CreateAppQuota__b12832163410911">Status code: 404</strong></p>
|
|
<p id="CreateAppQuota__p38326341892">Not Found</p>
|
|
<pre class="screen" id="CreateAppQuota__screen383210341199">{
|
|
"error_code" : "APIG.3030",
|
|
"error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
|
|
}</pre>
|
|
<p id="CreateAppQuota__p7832193419916"><strong id="CreateAppQuota__b483233418910">Status code: 500</strong></p>
|
|
<p id="CreateAppQuota__p12832334195">Internal Server Error</p>
|
|
<pre class="screen" id="CreateAppQuota__screen483212341092">{
|
|
"error_code" : "APIG.9999",
|
|
"error_msg" : "System error"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="CreateAppQuota__section3832934595"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateAppQuota__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="CreateAppQuota__row16587134492"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="CreateAppQuota__p4832134296">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="CreateAppQuota__p1383243414916">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CreateAppQuota__row85871534995"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="CreateAppQuota__p583213411915">201</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="CreateAppQuota__p18832934291">OK</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row358712341099"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="CreateAppQuota__p1883214341796">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="CreateAppQuota__p18321734197">Bad Request</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row0587834293"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="CreateAppQuota__p7832163410915">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="CreateAppQuota__p783217341599">Unauthorized</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row85876346918"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="CreateAppQuota__p198322034194">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="CreateAppQuota__p7833834495">Forbidden</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row75876341793"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="CreateAppQuota__p188332034895">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="CreateAppQuota__p4833234998">Not Found</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CreateAppQuota__row15881348919"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="CreateAppQuota__p14833163410912">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="CreateAppQuota__p1683310341594">Internal Server Error</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="CreateAppQuota__section883353413911"><h4 class="sectiontitle">Error Codes</h4><p id="CreateAppQuota__p10833143416911">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="CredentialQuotaPoliciesManagement.html">Credential Quota Management</a></div>
|
|
</div>
|
|
</div>
|
|
|