doc-exports/docs/ecs/api-ref/en-us_topic_0065820824.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

53 lines
4.7 KiB
HTML

<a name="EN-US_TOPIC_0065820824"></a><a name="EN-US_TOPIC_0065820824"></a>
<h1 class="topictitle1">Deleting Tags from an <span id="text1745912410562">ECS</span></h1>
<div id="body1499653398050"><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p3156250">This API is used to delete all tags of an <span id="EN-US_TOPIC_0065820824__text8483453560">ECS</span>.</p>
<p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p16769170155917">You are required to use the HTTP header <strong id="EN-US_TOPIC_0065820824__b842352706165643">X-OpenStack-Nova-API-Version: 2.26</strong> to specify the microversion on the client.</p>
<div class="section" id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_section28406254"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p17816132418199">DELETE /v2.1/{project_id}/servers/{server_id}/tags</p>
<div class="p" id="EN-US_TOPIC_0065820824__p179631543163116"><a href="#EN-US_TOPIC_0065820824__en-us_topic_0057972839_table32475667">Table 1</a> describes the parameters in the URI.
<div class="tablenoborder"><a name="EN-US_TOPIC_0065820824__en-us_topic_0057972839_table32475667"></a><a name="en-us_topic_0057972839_table32475667"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_table32475667" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_row44937496"><th align="left" class="cellrowborder" valign="top" width="22.24%" id="mcps1.3.3.3.2.2.4.1.1"><p id="EN-US_TOPIC_0065820824__p5187119">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.87%" id="mcps1.3.3.3.2.2.4.1.2"><p id="EN-US_TOPIC_0065820824__p17503500">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.88999999999999%" id="mcps1.3.3.3.2.2.4.1.3"><p id="EN-US_TOPIC_0065820824__p8497414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_row1664874"><td class="cellrowborder" valign="top" width="22.24%" headers="mcps1.3.3.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p637140">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.3.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p51608407">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="55.88999999999999%" headers="mcps1.3.3.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0065820824__p37593705">Specifies the project ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_row41565035"><td class="cellrowborder" valign="top" width="22.24%" headers="mcps1.3.3.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p11324657">server_id</p>
</td>
<td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.3.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p44882061">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="55.88999999999999%" headers="mcps1.3.3.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p11568292">Specifies the <span id="EN-US_TOPIC_0065820824__text044711816359">ECS</span> ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_section54329699"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p29611764193013">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_section19205251"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_p4049315193018">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0065820824__section4139939155912"><h4 class="sectiontitle">Example Request</h4><p id="EN-US_TOPIC_0065820824__p16118194211018">Delete all tags from a specified ECS.</p>
<pre class="screen" id="EN-US_TOPIC_0065820824__screen9727135310387">DELETE https://{endpoint}/v2.1/{project_id}/servers/{server_id}/tags</pre>
</div>
<div class="section" id="EN-US_TOPIC_0065820824__section11729204775916"><h4 class="sectiontitle">Example Response</h4><p id="EN-US_TOPIC_0065820824__p732585025917">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_en-us_topic_0020212692_section22960139"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0065820824__en-us_topic_0057972839_en-us_topic_0020212692_p23670760">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_0108433460.html">Tag Management</a></div>
</div>
</div>