forked from docs/doc-exports
Reviewed-by: Ziuzko, Alevtina <alevtina.ziuzko@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
366 lines
34 KiB
HTML
366 lines
34 KiB
HTML
<a name="BatchCreateResources"></a><a name="BatchCreateResources"></a>
|
|
|
|
<h1 class="topictitle1">Batch Adding Associated Resources to a Custom Resource Group</h1>
|
|
<div id="body8662426"><div class="section" id="BatchCreateResources__en-us_topic_0000001646893092_section1979213716558"><h4 class="sectiontitle">Function</h4><p id="BatchCreateResources__en-us_topic_0000001646893092_p87925715519">This API is used to batch add associated resources to a custom resource group whose <strong id="BatchCreateResources__b135791655131211">type</strong> is <strong id="BatchCreateResources__b17531205717126">Manual</strong>.</p>
|
|
</div>
|
|
<div class="section" id="BatchCreateResources__en-us_topic_0000001646893092_section979310745512"><h4 class="sectiontitle">URI</h4><p id="BatchCreateResources__en-us_topic_0000001646893092_p379312715552">POST /v2/{project_id}/resource-groups/{group_id}/resources/batch-create</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_table57931711550" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row197931971556"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p579377145518">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p879313785516">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="BatchCreateResources__en-us_topic_0000001646893092_p107938705514">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="BatchCreateResources__en-us_topic_0000001646893092_p979417719559">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row77931471556"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="BatchCreateResources__p1359102817447">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="BatchCreateResources__p635914282449">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="BatchCreateResources__p1235916289442">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="BatchCreateResources__p1235902804418">Project ID.</p>
|
|
<p id="BatchCreateResources__p2359102816441">For details about how to obtain the project ID, see <a href="ces_03_0057.html">Obtaining a Project ID</a>.</p>
|
|
<p id="BatchCreateResources__p1135982817445">Minimum: <strong id="BatchCreateResources__b183897145734125">1</strong></p>
|
|
<p id="BatchCreateResources__p935919281442">Maximum: <strong id="BatchCreateResources__b131980484983328">64</strong></p>
|
|
<p id="BatchCreateResources__p9359102810448"><strong id="BatchCreateResources__b7469395512523">Regular expression matching</strong>: ^[a-zA-Z0-9-]{1,64}$</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__row61151124416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="BatchCreateResources__p137952184417">group_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="BatchCreateResources__p12791821194412">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="BatchCreateResources__p47962119447">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="BatchCreateResources__p1479162134418">Resource group ID. The value starts with <strong id="BatchCreateResources__b3981121713132">rg</strong> and is followed by 22 characters of letters, digits, or a combination of both.</p>
|
|
<p id="BatchCreateResources__p57922116448">Minimum: <strong id="BatchCreateResources__b153935222622927">2</strong><strong id="BatchCreateResources__b191536893022927">4</strong></p>
|
|
<p id="BatchCreateResources__p87952194411">Maximum: <strong id="BatchCreateResources__b12278322984057">24</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="BatchCreateResources__en-us_topic_0000001646893092_section12794157145514"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row127948713558"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p187953755512">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p27958720554">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="BatchCreateResources__en-us_topic_0000001646893092_p17959714553">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="BatchCreateResources__en-us_topic_0000001646893092_p67951711554">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row19795117105519"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p157958775514">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p7795207135512">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p167958715558">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="BatchCreateResources__p1086575853712">User token. It is a response to the API for obtaining a user token. This API is the only one that does not require authentication. After a response is returned, the value of <strong id="BatchCreateResources__b144773203633931">X-Subject-Token</strong> in the response header is the token.</p>
|
|
<p id="BatchCreateResources__p8865858143714">Minimum: <strong id="BatchCreateResources__b108376316434125">1</strong></p>
|
|
<p id="BatchCreateResources__p7865135810372">Maximum: <strong id="BatchCreateResources__b12420669764346">16384</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_request_ResourcesReq" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row17951972557"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p1079615716551">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p77963718555">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="BatchCreateResources__en-us_topic_0000001646893092_p7796127145513">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="BatchCreateResources__en-us_topic_0000001646893092_p179611755515">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row107955719558"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p187961755516">resources</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p67961275551">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p17962078556">Array of <a href="#BatchCreateResources__en-us_topic_0000001646893092_request_Resource">Resource</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1680012785520">Resource information.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p19800207195516">Array length: <strong id="BatchCreateResources__b2092182571316">1</strong> to <strong id="BatchCreateResources__b59292518132">1000</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="BatchCreateResources__en-us_topic_0000001646893092_request_Resource"></a><a name="en-us_topic_0000001646893092_request_Resource"></a><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_request_Resource" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Resource</caption><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row38003735516"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p16800207185510">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p2080113755512">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="BatchCreateResources__en-us_topic_0000001646893092_p0801187125517">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="BatchCreateResources__en-us_topic_0000001646893092_p15801472553">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row68001717559"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p19801137185516">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p4801571554">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p980197185514">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="BatchCreateResources__p183234613506">Namespace of a service. For details about the namespace of each service, see <a href="ces_03_0059.html">Service Namespaces</a>. The namespace must be in the service.item format and contain 3 to 32 characters. <strong id="BatchCreateResources__b209406160381623">service</strong> and <strong id="BatchCreateResources__b129427354481623">item</strong> must start with a letter and can contain only letters, digits, and underscores (_).</p>
|
|
<p id="BatchCreateResources__p68321046125015">Minimum: <strong id="BatchCreateResources__b27596877181649">3</strong></p>
|
|
<p id="BatchCreateResources__p98321246165018">Maximum: <strong id="BatchCreateResources__b2923032908226">32</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row78006765517"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1080147145517">dimensions</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p7801374551">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p38017735512">Array of <a href="#BatchCreateResources__en-us_topic_0000001646893092_request_Dimension">Dimension</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p280177205518">Resource dimension information.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p118011710556">Array length: <strong id="BatchCreateResources__b21164511311">1</strong> to <strong id="BatchCreateResources__b311164514136">4</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="BatchCreateResources__en-us_topic_0000001646893092_request_Dimension"></a><a name="en-us_topic_0000001646893092_request_Dimension"></a><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_request_Dimension" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Dimension</caption><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row88011795510"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p108021277554">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p28026710553">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.3"><p id="BatchCreateResources__en-us_topic_0000001646893092_p1980218795514">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.5.2.5.1.4"><p id="BatchCreateResources__en-us_topic_0000001646893092_p1080211710556">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row128011675556"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1380227105516">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p48021578551">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p188021477559">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p3802137205510">Dimension of a resource. For example, the dimension of an ECS can be <strong id="BatchCreateResources__b130270607702250">instance_id</strong>. A maximum of four dimensions are supported. For the metric dimension of each resource, see <a href="ces_03_0059.html">Service Metric Dimensions</a>.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p2080211775519"><strong id="BatchCreateResources__b5119066122101">Regular expression matching:</strong> ^([a-z]|[A-Z]){1}([a-z]|[A-Z]|[0-9]|_|-){1,32}$</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row108029715516"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1080212714553">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p148029725511">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p48029710553">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p880267175512">Resource dimension value, which is an instance ID, for example, <strong id="BatchCreateResources__b44529313994614">4270ff17-aba3-4138-89fa-820594c39755</strong>.</p>
|
|
<p id="BatchCreateResources__p11408175717272"><strong id="BatchCreateResources__b7981785145241">Regular expression matching</strong>:</p>
|
|
<pre class="codeblock" id="BatchCreateResources__codeblock127058252811">^((([a-z]|[A-Z]|[0-9]){1}([a-z]|[A-Z]|[0-9]|_|-|\.)*)|\*){1,256}$</pre>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="BatchCreateResources__en-us_topic_0000001646893092_section9803147165510"><h4 class="sectiontitle">Response Parameters</h4><p id="BatchCreateResources__en-us_topic_0000001646893092_p108031716553"><strong id="BatchCreateResources__b16497627568309">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_response_AddResource2ResourceGroupResp" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row880347115517"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p198032745519">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p148033716557">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="BatchCreateResources__en-us_topic_0000001646893092_p1380311775513">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row17803197155517"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p158032775516">succeed_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p680317719556">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1480316720557">Number of resources that were added.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p108031179551">Minimum: <strong id="BatchCreateResources__b186959677844043">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p280316715554">Maximum: <strong id="BatchCreateResources__b64201991923729">1000</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p880318720552"><strong id="BatchCreateResources__b13326978654055">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_response_GoAPIErrorResponseV2" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row98041072557"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p6804177105514">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p17804074553">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="BatchCreateResources__en-us_topic_0000001646893092_p1780411719557">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row0804778554"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p480447205510">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p580414745517">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p4804127145511">Status code customized by each cloud service when a request error occurs.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p1780417711556">Minimum: <strong id="BatchCreateResources__b162555578974823">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p08041779554">Maximum: <strong id="BatchCreateResources__b107401095051251">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row13804779551"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p11804187185516">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p178043755513">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p168051573553">Request error message.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p2080587165517">Minimum: <strong id="BatchCreateResources__b76821400374823">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p880516745516">Maximum: <strong id="BatchCreateResources__b135994459151251">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row1980415725510"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p5805676552">request_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1480517155520">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1380516713552">Request ID.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p5805107115514">Minimum: <strong id="BatchCreateResources__b78342152274823">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p178057717552">Maximum: <strong id="BatchCreateResources__b143130403351251">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p280518755516"><strong id="BatchCreateResources__b149199800731146">Status code: 404</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_table3805117145516" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row48053715519"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p14805137125516">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p78061572553">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="BatchCreateResources__en-us_topic_0000001646893092_p6806174552">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row1480512745518"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p18061275556">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p48062077559">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p178062765511">Status code customized by each cloud service when a request error occurs.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p4806147195510">Minimum: <strong id="BatchCreateResources__b66992107474823">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p28062725512">Maximum: <strong id="BatchCreateResources__b129640533151251">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row1480518713559"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p2806147195510">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p5806127195518">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p380615745518">Request error message.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p58068710557">Minimum: <strong id="BatchCreateResources__b115702318974823">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p18806871557">Maximum: <strong id="BatchCreateResources__b79264988051251">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row080518745512"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p19806977559">request_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p188064710557">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1180677135512">Request ID.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p19806147175516">Minimum: <strong id="BatchCreateResources__b179660310274823">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p9806137145512">Maximum: <strong id="BatchCreateResources__b157422802651251">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p18062715519"><strong id="BatchCreateResources__b2026810733206">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_table080612718555" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row5807157195520"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p48075711559">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p88071174559">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="BatchCreateResources__en-us_topic_0000001646893092_p128078785519">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row158071774554"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p15807147115511">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p2807576555">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p68079765516">Status code customized by each cloud service when a request error occurs.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p15807197185510">Minimum: <strong id="BatchCreateResources__b69231433874823">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p20807673557">Maximum: <strong id="BatchCreateResources__b130527086251251">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row148071076551"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p38071476559">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p138072717555">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p98077765519">Request error message.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p148086735512">Minimum: <strong id="BatchCreateResources__b89906903774823">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p1780877155511">Maximum: <strong id="BatchCreateResources__b16723159651251">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row5807178555"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p158081777558">request_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p28088795517">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p10808471557">Request ID.</p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p118087725510">Minimum: <strong id="BatchCreateResources__b134791327474823">0</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p17808473550">Maximum: <strong id="BatchCreateResources__b91320887651251">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="BatchCreateResources__en-us_topic_0000001646893092_section1480817712556"><h4 class="sectiontitle">Example Requests</h4><p id="BatchCreateResources__en-us_topic_0000001646893092_p1680811715555">Batch adding associated resources to a custom resource group</p>
|
|
<pre class="screen" id="BatchCreateResources__en-us_topic_0000001646893092_screen208081377556">{
|
|
"resources" : [ {
|
|
"namespace" : "SYS.ECS",
|
|
"dimensions" : [ {
|
|
"name" : "instance_id",
|
|
"value" : "4270ff17-aba3-4138-89fa-820594c39755"
|
|
} ]
|
|
} ]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="BatchCreateResources__en-us_topic_0000001646893092_section19808772556"><h4 class="sectiontitle">Example Responses</h4><p id="BatchCreateResources__en-us_topic_0000001646893092_p48089755513"><strong id="BatchCreateResources__b16500498468309">Status code: 200</strong></p>
|
|
<p id="BatchCreateResources__en-us_topic_0000001646893092_p080910735512">Resources added.</p>
|
|
<pre class="screen" id="BatchCreateResources__en-us_topic_0000001646893092_screen98099705512">{
|
|
"succeed_count" : 1
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="BatchCreateResources__en-us_topic_0000001646893092_section1880910715512"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="BatchCreateResources__en-us_topic_0000001646893092_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="BatchCreateResources__en-us_topic_0000001646893092_row9809147155511"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="BatchCreateResources__en-us_topic_0000001646893092_p138091779556">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="BatchCreateResources__en-us_topic_0000001646893092_p1080913719550">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="BatchCreateResources__en-us_topic_0000001646893092_row8809476559"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1480911765517">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p88093715557">Resources added.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row198092711554"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p28091714559">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p180915745516">Parameter verification failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row17809197115519"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p158100745520">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p1281013735511">Resources not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="BatchCreateResources__en-us_topic_0000001646893092_row180918745514"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p18810271556">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="BatchCreateResources__en-us_topic_0000001646893092_p481017105518">Failed to complete the request because of an internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="BatchCreateResources__en-us_topic_0000001646893092_section16810977556"><h4 class="sectiontitle">Error Codes</h4><p id="BatchCreateResources__en-us_topic_0000001646893092_p38101711553">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000008.html">Resources in a Resource Group</a></div>
|
|
</div>
|
|
</div>
|
|
|