forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
196 lines
14 KiB
HTML
196 lines
14 KiB
HTML
<a name="topic_300000019"></a><a name="topic_300000019"></a>
|
|
|
|
<h1 class="topictitle1">Modifying Enterprise Project Quotas</h1>
|
|
<div id="body0000001436941681"><div class="section" id="topic_300000019__section387812374211"><h4 class="sectiontitle">Function</h4><p id="topic_300000019__p1814718381825">This API is used to modify enterprise project quotas.</p>
|
|
</div>
|
|
<div class="section" id="topic_300000019__section1987811371625"><h4 class="sectiontitle">URI</h4><p id="topic_300000019__p1014715381722">PUT https://{Endpoint}/v3/{project_id}/enterprise-projects/quotas</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="topic_300000019__table887919377211" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameter</caption><thead align="left"><tr id="topic_300000019__row0147183819211"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="topic_300000019__p19147938828">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="topic_300000019__p1147153816214">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="topic_300000019__p1314715387212">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="topic_300000019__p1147103810218">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="topic_300000019__row121478381215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="topic_300000019__p1514763810216">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="topic_300000019__p2147638223">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="topic_300000019__p18147113815211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="topic_300000019__p11471383214">Project ID of a tenant in a region. To obtain this value, see <a href="nosql_projectid.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="topic_300000019__section158988371227"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="topic_300000019__table190113378218" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="topic_300000019__nosql_06_0005_row297143315291"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="topic_300000019__nosql_06_0005_p17971633152910">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="topic_300000019__nosql_06_0005_p15971173312295">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="topic_300000019__nosql_06_0005_p1497113315294">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="topic_300000019__nosql_06_0005_p19711233132916">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="topic_300000019__nosql_06_0005_row12796421299"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="topic_300000019__nosql_06_0005_p182260435293">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="topic_300000019__nosql_06_0005_p422616439293">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="topic_300000019__nosql_06_0005_p102267431294">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="topic_300000019__nosql_06_0005_p822614372917">MIME type of the request body. <strong id="topic_300000019__nosql_06_0005_b17987151714249">application/json</strong> is recommended.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="topic_300000019__nosql_06_0005_row59728331292"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="topic_300000019__nosql_06_0005_p179727333296">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="topic_300000019__nosql_06_0005_p797273392915">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="topic_300000019__nosql_06_0005_p18972133192915">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="topic_300000019__nosql_06_0005_p1797243342916">User token</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="topic_300000019__table14915183711212" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="topic_300000019__row4148338828"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="topic_300000019__p11148103812217">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="topic_300000019__p0148173814212">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="topic_300000019__p1114816381527">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="topic_300000019__p01485381321">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="topic_300000019__row1614817381428"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="topic_300000019__p101489381621">quotas</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="topic_300000019__p91488381424">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="topic_300000019__p131482383210">objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="topic_300000019__p8148738825">Enterprise quotas to be modified. For details, see <a href="#topic_300000019__table16925173713216">Table 4</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="topic_300000019__table16925173713216"></a><a name="table16925173713216"></a><table cellpadding="4" cellspacing="0" summary="" id="topic_300000019__table16925173713216" frame="border" border="1" rules="all"><caption><b>Table 4 </b>NoSqlRequestEpsQuota</caption><thead align="left"><tr id="topic_300000019__row1314923815211"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="topic_300000019__p1714914382212">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="topic_300000019__p191499389217">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="topic_300000019__p314973811219">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="topic_300000019__p12149143812218">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="topic_300000019__row1114914381028"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="topic_300000019__p61491638726">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="topic_300000019__p8149138623">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="topic_300000019__p1814914382218">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="topic_300000019__p81491381725">Enterprise project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="topic_300000019__row141499381122"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="topic_300000019__p01498384215">quota</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="topic_300000019__p914993818219">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="topic_300000019__p1014916388211">object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="topic_300000019__p111494388213">Enterprise quotas to be modified. For details, see <a href="#topic_300000019__table697933717216">Table 5</a>.</p>
|
|
<div class="note" id="topic_300000019__note13945193715210"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="topic_300000019__p41491381624">At least one of parameters <strong id="topic_300000019__b1632813399408">instance</strong>, <strong id="topic_300000019__b7736741104010">vcpus</strong>, and <strong id="topic_300000019__b109351344194018">ram</strong> must be transferred.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="topic_300000019__table697933717216"></a><a name="table697933717216"></a><table cellpadding="4" cellspacing="0" summary="" id="topic_300000019__table697933717216" frame="border" border="1" rules="all"><caption><b>Table 5 </b>NoSqlEpsQuotaRequestInfo</caption><thead align="left"><tr id="topic_300000019__row514914381329"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.1"><p id="topic_300000019__p7150173811218">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.2"><p id="topic_300000019__p1415017383217">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.3"><p id="topic_300000019__p1150138023">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.5.2.5.1.4"><p id="topic_300000019__p4150173816216">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="topic_300000019__row1915010383217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="topic_300000019__p171511385218">instance</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="topic_300000019__p111514381825">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="topic_300000019__p11516385218">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="topic_300000019__p715119381123">Instance quota</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="topic_300000019__row715118381328"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="topic_300000019__p71511038425">vcpus</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="topic_300000019__p14151238928">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="topic_300000019__p1715117381023">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="topic_300000019__p131511338429">vCPU quota</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="topic_300000019__row1315113814213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="topic_300000019__p141519384214">ram</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="topic_300000019__p71511438926">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="topic_300000019__p21511738926">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="topic_300000019__p1215212381323">RAM quota</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="topic_300000019__section299311375215"><h4 class="sectiontitle">Response Parameters</h4><p id="topic_300000019__p1220829102219"><strong id="topic_300000019__b178771110114120">Status code: 204</strong></p>
|
|
<p id="topic_300000019__p127881750102219">No response parameters</p>
|
|
</div>
|
|
<div class="section" id="topic_300000019__section159909452049"><h4 class="sectiontitle">Example Requests</h4><ul id="topic_300000019__ul1283134766"><li id="topic_300000019__li3283193419614">URI example<pre class="screen" id="topic_300000019__screen122513440710">PUT https://{Endpoint}/v3/054e292c9880d4992f02c0196d3ea468/enterprise-projects/quotas</pre>
|
|
</li><li id="topic_300000019__li4392988710">Modifying quotas of an enterprise project (Set <strong id="topic_300000019__b185281214183014">instance</strong> to <strong id="topic_300000019__b9538151613010">1000</strong>, <strong id="topic_300000019__b563012623018">vcpus</strong> to <strong id="topic_300000019__b373423118302">500</strong>, and <strong id="topic_300000019__b378312408303">ram</strong> to <strong id="topic_300000019__b8998347173015">1024</strong>.)<pre class="screen" id="topic_300000019__screen060321595315">{
|
|
"quotas" : [ {
|
|
"enterprise_project_id" : "4d05638e-d4c6-477c-9b51-9620fa257a11",
|
|
"quota" : {
|
|
"instance" : 1000,
|
|
"vcpus" : 500,
|
|
"ram" : 1024
|
|
}
|
|
}, {
|
|
"enterprise_project_id" : "92450d0e-8c4b-48e1-9909-4d9d2f086ce4",
|
|
"quota" : {
|
|
"ram" : 512
|
|
}
|
|
} ]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="topic_300000019__section11013381222"><h4 class="sectiontitle">Example Responses</h4><p id="topic_300000019__p2155193815217">None</p>
|
|
</div>
|
|
<div class="section" id="topic_300000019__section19107202213585"><h4 class="sectiontitle">Status Codes</h4><p id="topic_300000019__en-us_topic_0000001354223196_p201216122353">See <a href="nosql_status_code.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="topic_300000019__section21121922155813"><h4 class="sectiontitle">Error Codes</h4><p id="topic_300000019__en-us_topic_0000001354223196_p1265915205719">See <a href="nosql_error_code.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000017.html">Enterprise Projects</a></div>
|
|
</div>
|
|
</div>
|
|
|