doc-exports/docs/ecs/api-ref/en-us_topic_0025560296.html
Zaoxu, Li 4edaa4a4cc ECS API 20231016 version
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
2024-04-29 11:04:13 +00:00

57 lines
4.5 KiB
HTML

<a name="EN-US_TOPIC_0025560296"></a><a name="EN-US_TOPIC_0025560296"></a>
<h1 class="topictitle1">Deleting an <span id="text20023417368">ECS</span></h1>
<div id="body1456128284941"><div class="section" id="EN-US_TOPIC_0025560296__section4329148591032"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0025560296__p1694940391032">This API is used to delete an <span id="EN-US_TOPIC_0025560296__text567320710377">ECS</span>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0025560296__section14125473229"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0025560296__p184571144539">When an ECS is deleted, all NICs attached to the ECS through the OpenStack Nova API will be deleted.</p>
</div>
<div class="section" id="EN-US_TOPIC_0025560296__section1832690791032"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0025560296__p4249192641817">DELETE /v2.1/{project_id}/servers/{server_id}</p>
<p id="EN-US_TOPIC_0025560296__p1712511182718">DELETE /v2/{project_id}/servers/{server_id}</p>
<div class="p" id="EN-US_TOPIC_0025560296__p116821842192219"><a href="#EN-US_TOPIC_0025560296__table2659898791032">Table 1</a> describes the parameters in the URI.
<div class="tablenoborder"><a name="EN-US_TOPIC_0025560296__table2659898791032"></a><a name="table2659898791032"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0025560296__table2659898791032" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0025560296__row4869561291032"><th align="left" class="cellrowborder" valign="top" width="16.41%" id="mcps1.3.3.4.2.2.4.1.1"><p id="EN-US_TOPIC_0025560296__p5187119">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.549999999999997%" id="mcps1.3.3.4.2.2.4.1.2"><p id="EN-US_TOPIC_0025560296__p17503500">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="66.03999999999999%" id="mcps1.3.3.4.2.2.4.1.3"><p id="EN-US_TOPIC_0025560296__p8497414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0025560296__row6666852391032"><td class="cellrowborder" valign="top" width="16.41%" headers="mcps1.3.3.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0025560296__p3144131991032">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.549999999999997%" headers="mcps1.3.3.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0025560296__p6371887891032">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="66.03999999999999%" headers="mcps1.3.3.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0025560296__p37593705">Specifies the project ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0025560296__row5885541191134"><td class="cellrowborder" valign="top" width="16.41%" headers="mcps1.3.3.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0025560296__p255895491134">server_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.549999999999997%" headers="mcps1.3.3.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0025560296__p594874291134">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="66.03999999999999%" headers="mcps1.3.3.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0025560296__p1208612791134">Specifies the <span id="EN-US_TOPIC_0025560296__text97731447289">ECS</span> ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0025560296__section1172872291032"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0025560296__p4285011091324">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0025560296__section6619360391225"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0025560296__p6008161391225">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0025560296__section1399410202536"><h4 class="sectiontitle">Example Request</h4><p id="EN-US_TOPIC_0025560296__p49449177257">Delete a specified ECS.</p>
<pre class="screen" id="EN-US_TOPIC_0025560296__screen1354519302008">DELETE https://{endpoint}/v2/{project_id}/servers/{server_id}
DELETE https://{endpoint}/v2.1/{project_id}/servers/{server_id}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0025560296__section975263145318"><h4 class="sectiontitle">Example Response</h4><p id="EN-US_TOPIC_0025560296__p1010074285316">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0025560296__section3477250491225"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0025560296__p6510945291225">See <a href="en-us_topic_0022067716.html">Returned Values for General Requests</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0124385015.html">Lifecycle Management</a></div>
</div>
</div>