doc-exports/docs/as/api-ref/as_06_0907.html
Zaoxu, Li eda4b9181d AS API DOC
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>
2024-09-19 11:04:13 +00:00

151 lines
12 KiB
HTML

<a name="as_06_0907"></a><a name="as_06_0907"></a>
<h1 class="topictitle1">Deleting a Lifecycle Hook</h1>
<div id="body1477307874499"><div class="section" id="as_06_0907__section2082935495536"><h4 class="sectiontitle">Function</h4><p id="as_06_0907__p9418520">This interface is used to delete a specified lifecycle hook.</p>
<p id="as_06_0907__p105464071714">When a scaling action is being performed in an AS group, the lifecycle hooks of the AS group cannot be deleted.</p>
</div>
<div class="section" id="as_06_0907__section1799627095536"><h4 class="sectiontitle">URI</h4><p id="as_06_0907__p2903857795536">DELETE /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}/{lifecycle_hook_name}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0907__table331451795536" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="as_06_0907__r5f2899b4cf1044948a7170d6333a7991"><th align="left" class="cellrowborder" valign="top" width="21.21212121212121%" id="mcps1.3.2.3.2.5.1.1"><p id="as_06_0907__abbee0f7ae9eb4969a9f3723d6c71359d"><strong id="as_06_0907__b26661246184312">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.202020202020204%" id="mcps1.3.2.3.2.5.1.2"><p id="as_06_0907__afee17afcb8d046f7bdf94bd2159fab28">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.151515151515152%" id="mcps1.3.2.3.2.5.1.3"><p id="as_06_0907__en-us_topic_0040779755_p706369995536">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="43.43434343434344%" id="mcps1.3.2.3.2.5.1.4"><p id="as_06_0907__a87b82e5148494b2eb7eaaf1f30bc54d9"><strong id="as_06_0907__b8399174914317">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0907__r7a944e3605614724ba8e74e5ad901592"><td class="cellrowborder" valign="top" width="21.21212121212121%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0907__en-us_topic_0040779755_p395071195536">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.202020202020204%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0907__a6fdb2099041d4c4ba1cc6a5958341e03">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0907__ae7bebc4d668c4593805a36a55c21d977">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.43434343434344%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0907__p36520930">Specifies the project ID.</p>
</td>
</tr>
<tr id="as_06_0907__r404f6ce83137490a866aefcaa49c2138"><td class="cellrowborder" valign="top" width="21.21212121212121%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0907__en-us_topic_0040779755_p745378510329">scaling_group_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.202020202020204%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0907__add10773cae7f42e48b093a8789a627e4">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0907__ace6f1d2e5e6f468299286df3bba7529b">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.43434343434344%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0907__a0e4dd57fff314be9a790db4310d6801e">Specifies the AS group ID.</p>
</td>
</tr>
<tr id="as_06_0907__r6294e43f10664f3e8f84b5b776cbd59b"><td class="cellrowborder" valign="top" width="21.21212121212121%" headers="mcps1.3.2.3.2.5.1.1 "><p id="as_06_0907__a5b00453952f34ab8a2e34f33ad04f26c">lifecycle_hook_name</p>
</td>
<td class="cellrowborder" valign="top" width="20.202020202020204%" headers="mcps1.3.2.3.2.5.1.2 "><p id="as_06_0907__a0ae0e8d3926e432da15fccf7d4227c68">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.2.3.2.5.1.3 "><p id="as_06_0907__a9f40d66265a845139b0417aec15dd53e">String</p>
</td>
<td class="cellrowborder" valign="top" width="43.43434343434344%" headers="mcps1.3.2.3.2.5.1.4 "><p id="as_06_0907__a5ae6053e43ee4f0cade5c6e64a0a2f51">Specifies the lifecycle hook name.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="as_06_0907__section2093926095536"><h4 class="sectiontitle">Request</h4><p id="as_06_0907__p60400126203515">None</p>
</div>
<div class="section" id="as_06_0907__section75743369420"><h4 class="sectiontitle">Example Request</h4><p id="as_06_0907__p15614505203519">This example deletes the lifecycle hook named <strong id="as_06_0907__b243514341924">test-hook1</strong> in the AS group with ID <strong id="as_06_0907__b643617343219">e5d27f5c-dd76-4a61-b4bc-a67c5686719a</strong>.</p>
<pre class="screen" id="as_06_0907__screen22667143386">DELETE https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/e5d27f5c-dd76-4a61-b4bc-a67c5686719a/test-hook1</pre>
</div>
<div class="section" id="as_06_0907__section5819104495536"><h4 class="sectiontitle">Response</h4><p id="as_06_0907__p1826014112453">None</p>
</div>
<div class="section" id="as_06_0907__section49651755641"><h4 class="sectiontitle">Example Response</h4><p id="as_06_0907__p82623115456">None</p>
</div>
<div class="section" id="as_06_0907__section1489498995536"><h4 class="sectiontitle">Returned Values</h4><ul id="as_06_0907__ul6564343395536"><li id="as_06_0907__li5391999295536">Normal<p id="as_06_0907__p1551788295536"><a name="as_06_0907__li5391999295536"></a><a name="li5391999295536"></a>204</p>
</li><li id="as_06_0907__li544321895536">Abnormal
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="as_06_0907__table4898896895536" frame="border" border="1" rules="all"><thead align="left"><tr id="as_06_0907__row2202573295536"><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_0907__p3925390595536">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_0907__p2544972695536">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="as_06_0907__row4816190795536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p880040995536">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_0907__p4174453595536">The server failed to process the request.</p>
</td>
</tr>
<tr id="as_06_0907__row4015650395536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p3145134295536">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_0907__p6453073695536">You must enter the username and password to access the requested page.</p>
</td>
</tr>
<tr id="as_06_0907__row4390571895536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p6670224695536">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_0907__p3417285595536">You are forbidden to access the requested page.</p>
</td>
</tr>
<tr id="as_06_0907__row3912024395536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p1462312895536">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_0907__p4362270595536">The server could not find the requested page.</p>
</td>
</tr>
<tr id="as_06_0907__row5706002995536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p5845961695536">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_0907__p3760842795536">You are not allowed to use the method specified in the request.</p>
</td>
</tr>
<tr id="as_06_0907__row293152795536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p3612717195536">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_0907__p4061970695536">The response generated by the server could not be accepted by the client.</p>
</td>
</tr>
<tr id="as_06_0907__row3003304095536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p1675719895536">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_0907__p1515577295536">You must use the proxy server for authentication to process the request.</p>
</td>
</tr>
<tr id="as_06_0907__row218422095536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p4270415095536">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_0907__p3648411695536">The request timed out.</p>
</td>
</tr>
<tr id="as_06_0907__row5992159295536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p2181080895536">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_0907__p2184504195536">The request could not be processed due to a conflict.</p>
</td>
</tr>
<tr id="as_06_0907__row6238764295536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p2023420295536">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_0907__p2835763895536">Failed to complete the request because of an internal service error.</p>
</td>
</tr>
<tr id="as_06_0907__row5389215795536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p318858395536">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_0907__p5694869095536">Failed to complete the request because the server does not support the requested function.</p>
</td>
</tr>
<tr id="as_06_0907__row4277616795536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p4231752695536">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_0907__p516757795536">Failed to complete the request because the request is invalid.</p>
</td>
</tr>
<tr id="as_06_0907__row4650819895536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p906768395536">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_0907__p6339370495536">Failed to complete the request because the system is unavailable.</p>
</td>
</tr>
<tr id="as_06_0907__row3367243095536"><td class="cellrowborder" valign="top" width="43.419999999999995%" headers="mcps1.3.7.2.2.1.1.3.1.1 "><p id="as_06_0907__p4311227595536">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_0907__p243336495536">A gateway timeout error occurred.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="as_06_0907__section17669131616110"><h4 class="sectiontitle">Error Codes</h4><p id="as_06_0907__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_0900.html">Lifecycle Hooks</a></div>
</div>
</div>