forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
156 lines
13 KiB
HTML
156 lines
13 KiB
HTML
<a name="as_06_0105"></a><a name="as_06_0105"></a>
|
|
|
|
<h1 class="topictitle1">Deleting an AS Group</h1>
|
|
<div id="body57297703"><div class="section" id="as_06_0105__section6292375"><h4 class="sectiontitle">Function</h4><p id="as_06_0105__p10602379">This interface is used to delete a specified AS group.</p>
|
|
<ul id="as_06_0105__ul88391222171017"><li id="as_06_0105__li983922213100"><strong id="as_06_0105__b525949381104941">force_delete</strong> specifies whether to forcibly delete an AS group, remove the ECS instances and release them when the AS group is running instances or performing scaling actions. By default, its value is <strong id="as_06_0105__b61344943711024">no</strong>, which means not to forcibly delete the AS group.</li><li id="as_06_0105__li1176212641010">If the value of <strong id="as_06_0105__b1927797199111034">force_delete</strong> is set to <strong id="as_06_0105__b1950729540111045">no</strong>, the AS group can be deleted only when both the following conditions are met:<ul id="as_06_0105__ul91112143392"><li id="as_06_0105__li1192121223912">The AS group is performing no scaling action.</li><li id="as_06_0105__li29331283912">The number of running ECS instances (<strong id="as_06_0105__b530032871112020">current_instance_number</strong>) is <strong id="as_06_0105__b2133064924112044">0</strong>.</li></ul>
|
|
</li></ul>
|
|
<ul id="as_06_0105__ul636720349107"><li id="as_06_0105__li1536715349103">If the value of <strong id="as_06_0105__b869069196112417">force_delete</strong> is set to <strong id="as_06_0105__b201764712112436">yes</strong>, the AS group enters the <strong id="as_06_0105__b260856168112541">DELETING</strong> state, rejecting new requests for scaling actions while completing the existing scaling actions. Then, all ECS instances are removed from the AS group and the AS group is deleted. Note that the manually added ECS instances will be removed from the AS group and the ECS instances automatically created by AS will be automatically deleted.<div class="caution" id="as_06_0105__note17641074333"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="as_06_0105__p206587203311">Forcibly deleting an AS group may not delete ECS instances in the group.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="as_06_0105__section56631376"><h4 class="sectiontitle">URI</h4><p id="as_06_0105__p1288198">DELETE /autoscaling-api/v1/{project_id}/scaling_group/{scaling_group_id}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0105__table37235194" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="as_06_0105__row2211792"><th align="left" class="cellrowborder" valign="top" width="22%" id="mcps1.3.2.3.2.5.1.1"><p id="as_06_0105__p44937496"><strong id="as_06_0105__b78081348143812">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.2.3.2.5.1.2"><p id="as_06_0105__p16058544">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.2.3.2.5.1.3"><p id="as_06_0105__p25673664">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="46%" id="mcps1.3.2.3.2.5.1.4"><p id="as_06_0105__p66300913"><strong id="as_06_0105__b214155018380">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="as_06_0105__row1664874"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0105__p637140">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0105__p51608407">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0105__p19531418">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0105__p36520930">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row11324657"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0105__p44882061">scaling_group_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0105__p11568292">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0105__p64616480">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0105__p66552425">Specifies the AS group ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row28118938103444"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0105__p33651750103458">force_delete</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0105__p41437229103458">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0105__p972380103458">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0105__p8494439174810">Specifies whether to forcibly delete an AS group. Options:</p>
|
|
<ul id="as_06_0105__ul87011242493"><li id="as_06_0105__li87015474912"><strong id="as_06_0105__b19703443286">no</strong> (default): indicates that the AS group is not forcibly deleted.</li><li id="as_06_0105__li19785126114913"><strong id="as_06_0105__b293019512285">yes</strong>: indicates to forcibly delete an AS group.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="as_06_0105__section39920339"><h4 class="sectiontitle">Request</h4><p id="as_06_0105__p60400126203515">None</p>
|
|
</div>
|
|
<div class="section" id="as_06_0105__section169987518346"><h4 class="sectiontitle">Example Request</h4><p id="as_06_0105__p15614505203519">This example deletes the AS group with ID <strong id="as_06_0105__b12919264914">a8327883-6b07-4497-9c61-68d03ee193a1</strong>.</p>
|
|
<pre class="screen" id="as_06_0105__screen1380120197201">DELETE https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_group/a8327883-6b07-4497-9c61-68d03ee193a1?force_delete=yes</pre>
|
|
</div>
|
|
<div class="section" id="as_06_0105__section23738738"><h4 class="sectiontitle">Response</h4><p id="as_06_0105__p321041753317">None</p>
|
|
</div>
|
|
<div class="section" id="as_06_0105__section19684102719340"><h4 class="sectiontitle">Example Response</h4><p id="as_06_0105__p202129178330">None</p>
|
|
</div>
|
|
<div class="section" id="as_06_0105__section12322052"><h4 class="sectiontitle">Returned Values</h4><ul id="as_06_0105__ul36664945"><li id="as_06_0105__li61549057">Normal<p id="as_06_0105__p17070607"><a name="as_06_0105__li61549057"></a><a name="li61549057"></a>204</p>
|
|
</li><li id="as_06_0105__li19417740">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0105__table40541937" frame="border" border="1" rules="all"><thead align="left"><tr id="as_06_0105__row53487552"><th align="left" class="cellrowborder" valign="top" width="43.419999999999995%" id="mcps1.3.7.2.2.1.1.3.1.1"><p id="as_06_0105__p37524445">Returned Value</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.58%" id="mcps1.3.7.2.2.1.1.3.1.2"><p id="as_06_0105__p19581186">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="as_06_0105__row42572248"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p25800070">400 Bad Request</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p9430965">The server failed to process the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row17769829"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p30070007">401 Unauthorized</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p19751518">You must enter the username and password to access the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row43545941"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p37560342">403 Forbidden</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p22488863">You are forbidden to access the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row1073183"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p19818984">404 Not Found</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p61833870">The server could not find the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row19633919"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p46843578">405 Method Not Allowed</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p36233478">You are not allowed to use the method specified in the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row57665850"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p40422241">406 Not Acceptable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p52976109">The response generated by the server could not be accepted by the client.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row7022941"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p31987323">407 Proxy Authentication Required</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p40836337">You must use the proxy server for authentication to process the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row31982717"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p40463275">408 Request Timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p56299846">The request timed out.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row36936567"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p39071968">409 Conflict</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p10712809">The request could not be processed due to a conflict.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row29306417"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p25009549">500 Internal Server Error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p12507614">Failed to complete the request because of an internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row45459670"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p58354673">501 Not Implemented</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p29108085">Failed to complete the request because the server does not support the requested function.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row60646173"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p13392976">502 Bad Gateway</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p11089280">Failed to complete the request because the request is invalid.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row32694658"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p31021623">503 Service Unavailable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p29723549">Failed to complete the request because the system is unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="as_06_0105__row66185354"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0105__p59413435">504 Gateway Timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.58%" headers="mcps1.3.7.2.2.1.1.3.1.2 "><p id="as_06_0105__p47758962">A gateway timeout error occurred.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="as_06_0105__section17669131616110"><h4 class="sectiontitle">Error Codes</h4><p id="as_06_0105__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_0100.html">AS Groups</a></div>
|
|
</div>
|
|
</div>
|
|
|