forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
163 lines
12 KiB
HTML
163 lines
12 KiB
HTML
<a name="as_06_0205"></a><a name="as_06_0205"></a>
|
|
|
|
<h1 class="topictitle1">Batch Deleting AS Configurations</h1>
|
|
<div id="body1451527494252"><div class="section" id="as_06_0205__section5380904"><h4 class="sectiontitle">Function</h4><p id="as_06_0205__p12433155932">This interface is used to batch delete AS configurations.</p>
|
|
<ul id="as_06_0205__ul1918915812314"><li id="as_06_0205__li141891682310">AS configurations used by AS groups cannot be deleted.</li><li id="as_06_0205__li1438516103317">A maximum of 50 AS configurations can be deleted at a time.</li></ul>
|
|
</div>
|
|
<div class="section" id="as_06_0205__section48428136"><h4 class="sectiontitle">URI</h4><p id="as_06_0205__p3493029">POST /autoscaling-api/v1/{project_id}/scaling_configurations</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0205__table14499957" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="as_06_0205__row65119131"><th align="left" class="cellrowborder" valign="top" width="20.202020202020204%" id="mcps1.3.2.3.2.5.1.1"><p id="as_06_0205__p40158284"><strong id="as_06_0205__b13224105319500">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26.262626262626267%" id="mcps1.3.2.3.2.5.1.2"><p id="as_06_0205__p31595610">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.191919191919194%" id="mcps1.3.2.3.2.5.1.3"><p id="as_06_0205__p9107628">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="34.343434343434346%" id="mcps1.3.2.3.2.5.1.4"><p id="as_06_0205__p66629291"><strong id="as_06_0205__b4813853105015">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="as_06_0205__row28263486"><td class="cellrowborder" valign="top" width="20.202020202020204%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0205__p7641038">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.262626262626267%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0205__p14944322">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.191919191919194%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0205__p2530563">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="34.343434343434346%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0205__p36520930">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="as_06_0205__section33200047"><h4 class="sectiontitle">Request Message</h4><ul id="as_06_0205__ul21379287102956"><li id="as_06_0205__li58195863102956">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0205__table54000720102956" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="as_06_0205__row8512449102956"><th align="left" class="cellrowborder" valign="top" width="27%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="as_06_0205__p18419793102956"><strong id="as_06_0205__b113261455205015">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="as_06_0205__p15608282102956">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="as_06_0205__p56311299102956">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="34%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="as_06_0205__p64921332102956"><strong id="as_06_0205__b335211573504">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="as_06_0205__row24136534102956"><td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="as_06_0205__p8902224102956">scaling_configuration_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="as_06_0205__p49991563102956">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="as_06_0205__p22784815102956">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="34%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="as_06_0205__p33630690102956">Specifies the AS configuration ID. For details, see <a href="as_06_0202.html">Querying AS configurations</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="as_06_0205__ul59162117102956"><li id="as_06_0205__li62697012102956">Example request<div class="p" id="as_06_0205__p0981614132619"><a name="as_06_0205__li62697012102956"></a><a name="li62697012102956"></a>This example shows how to delete the AS configurations with IDs <strong id="as_06_0205__b379175110401">config1</strong> and <strong id="as_06_0205__b19724555174018">config2</strong> in a batch.<pre class="screen" id="as_06_0205__screen07508105264">POST https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_configurations
|
|
|
|
{
|
|
"scaling_configuration_id": [
|
|
"config1",
|
|
"config2"
|
|
]
|
|
}</pre>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="as_06_0205__section30364973"><h4 class="sectiontitle">Response Message</h4><ul id="as_06_0205__ul9007507"><li id="as_06_0205__li56913160">Response parameters<p id="as_06_0205__p60400126203515"><a name="as_06_0205__li56913160"></a><a name="li56913160"></a>None</p>
|
|
</li><li id="as_06_0205__li3640858994017">Example response<p id="as_06_0205__p15614505203519"><a name="as_06_0205__li3640858994017"></a><a name="li3640858994017"></a>None</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="as_06_0205__section4849307"><h4 class="sectiontitle">Returned Values</h4><ul id="as_06_0205__ul46727122"><li id="as_06_0205__li17890920">Normal<p id="as_06_0205__p26800560"><a name="as_06_0205__li17890920"></a><a name="li17890920"></a>204</p>
|
|
</li><li id="as_06_0205__li39878449">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0205__table23361726" frame="border" border="1" rules="all"><thead align="left"><tr id="as_06_0205__row63863782"><th align="left" class="cellrowborder" valign="top" width="43.980000000000004%" id="mcps1.3.5.2.2.1.1.3.1.1"><p id="as_06_0205__p5583857">Returned Value</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.02%" id="mcps1.3.5.2.2.1.1.3.1.2"><p id="as_06_0205__p49639248">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="as_06_0205__row61356140"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p3791404">400 Bad Request</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p38668280">The server failed to process the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row12470207"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p3453833">401 Unauthorized</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p11325076">You must enter the username and password to access the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row34816825"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p1590600">403 Forbidden</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p61729771">You are forbidden to access the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row18697032"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p38064613">404 Not Found</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p63334794">The server could not find the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row33142240"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p166885">405 Method Not Allowed</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p13517702">You are not allowed to use the method specified in the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row54550461"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p56511253">406 Not Acceptable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p14008765">The response generated by the server could not be accepted by the client.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row58970022"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p11842506">407 Proxy Authentication Required</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p19718930">You must use the proxy server for authentication to process the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row43252647"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p13803553">408 Request Timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p44346036">The request timed out.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row63570006"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p48896832">409 Conflict</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p1220438">The request could not be processed due to a conflict.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row10983950"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p17284754">500 Internal Server Error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p57887863">Failed to complete the request because of an internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row51228725"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p55886094">501 Not Implemented</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p30479771">Failed to complete the request because the server does not support the requested function.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row5882489"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p6719600">502 Bad Gateway</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p7416719">Failed to complete the request because the request is invalid.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row66750478"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p38079613">503 Service Unavailable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p64549801">Failed to complete the request because the system is unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0205__row44077297"><td class="cellrowborder" valign="top" width="43.980000000000004%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="as_06_0205__p13491266">504 Gateway Timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.02%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="as_06_0205__p19050756">A gateway timeout error occurred.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="as_06_0205__section17669131616110"><h4 class="sectiontitle">Error Codes</h4><p id="as_06_0205__p172692548116">See <a href="as_07_0102.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="as_06_0200.html">AS Configurations</a></div>
|
|
</div>
|
|
</div>
|
|
|