doc-exports/docs/bms/api-ref/en-us_topic_0060410928.html
guoyanyan c311ecafe3 bms_api_0510
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2023-10-11 08:28:11 +00:00

77 lines
8.6 KiB
HTML

<a name="EN-US_TOPIC_0060410928"></a><a name="EN-US_TOPIC_0060410928"></a>
<h1 class="topictitle1">Deleting Tags of a <span id="text93761115448">BMS</span><span id="text1297323418528"></span><span id="text726101082317"></span> (Native OpenStack API)</h1>
<div id="body1495513488162"><div class="section" id="EN-US_TOPIC_0060410928__section46928615105534"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0060410928__p43121505105534">This API is used to delete all tags of a <span id="EN-US_TOPIC_0060410928__text568054613526">BMS</span><span id="EN-US_TOPIC_0060410928__text06811146185219"></span><span id="EN-US_TOPIC_0060410928__text717561715236"></span>.</p>
<p id="EN-US_TOPIC_0060410928__p6834195814288">You are required to use the HTTP header <strong id="EN-US_TOPIC_0060410928__en-us_topic_0060410926_b842352706165643">X-OpenStack-Nova-API-Version: 2.26</strong> to specify the micro version on the client.</p>
</div>
<div class="section" id="EN-US_TOPIC_0060410928__section76881969360"><h4 class="sectiontitle">Constraints</h4><div class="note" id="EN-US_TOPIC_0060410928__note65604746151638"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0060410928__ul20910143374618"><li id="EN-US_TOPIC_0060410928__li1791023324610">Tag <strong id="EN-US_TOPIC_0060410928__b137381054153411">__type_baremetal</strong> is used to identify a <span id="EN-US_TOPIC_0060410928__text475115494529">BMS</span><span id="EN-US_TOPIC_0060410928__text13751154910524"></span><span id="EN-US_TOPIC_0060410928__text11454289238"></span>. You are not advised to delete this tag. Otherwise, the <span id="EN-US_TOPIC_0060410928__text1743675219527">BMS</span><span id="EN-US_TOPIC_0060410928__text943615215523"></span><span id="EN-US_TOPIC_0060410928__text18689153412310"></span> will be displayed only on the ECS console.</li><li id="EN-US_TOPIC_0060410928__li54881723385">After deleting the <strong id="EN-US_TOPIC_0060410928__b29761546191013">__type_baremetal</strong> tag, you can add it again by following the instructions in <a href="en-us_topic_0060410929.html">Adding a Tag to a BMS (Native OpenStack API)</a>. After the tag is added, the <span id="EN-US_TOPIC_0060410928__text1587255145217">BMS</span><span id="EN-US_TOPIC_0060410928__text1558711558529"></span><span id="EN-US_TOPIC_0060410928__text3122443162318"></span> will be displayed on the BMS console.</li></ul>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0060410928__section3181044105534"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0060410928__p67083394105534">DELETE /v2.1/{project_id}/servers/{server_id}/tags</p>
<p id="EN-US_TOPIC_0060410928__p157891831800"><a href="#EN-US_TOPIC_0060410928__table17718161117017">Table 1</a> lists the parameters.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0060410928__table17718161117017"></a><a name="table17718161117017"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0060410928__table17718161117017" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0060410928__row20718911904"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.1"><p id="EN-US_TOPIC_0060410928__p67050730103718">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.2"><p id="EN-US_TOPIC_0060410928__p62400032103718">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.3"><p id="EN-US_TOPIC_0060410928__p21237868103718">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0060410928__row07181111908"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0060410928__p23650911103718">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0060410928__p36675672103718">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0060410928__p17939461103718">Specifies the project ID.</p>
<p id="EN-US_TOPIC_0060410928__p9141450142010">For how to obtain the project ID, see <a href="https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328009.html" target="_blank" rel="noopener noreferrer">Obtaining Required Information</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0060410928__row107182111208"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0060410928__p18738546141829">server_id</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0060410928__p41427238141829">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0060410928__p163111141829">Specifies the <span id="EN-US_TOPIC_0060410928__text17563155975217">BMS</span><span id="EN-US_TOPIC_0060410928__text75641459195213"></span> ID.</p>
<p id="EN-US_TOPIC_0060410928__p29791113277">You can obtain the BMS ID from the <span id="EN-US_TOPIC_0060410928__en-us_topic_0113746489_text013014803615">BMS</span><span id="EN-US_TOPIC_0060410928__en-us_topic_0113746489_text10131448133612"></span> console or by calling the <a href="en-us_topic_0053158693.html">Querying BMSs (Native OpenStack API)</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0060410928__section61879170105534"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0060410928__ul169152711817"><li id="EN-US_TOPIC_0060410928__li2413517915">Request parameters<p id="EN-US_TOPIC_0060410928__p740355415918"><a name="EN-US_TOPIC_0060410928__li2413517915"></a><a name="li2413517915"></a>None</p>
</li><li id="EN-US_TOPIC_0060410928__li11915171483">Example request<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0060410928__screen464516211288"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">DELETE</span><span class="w"> </span><span class="n">https</span><span class="p">:</span><span class="c1">//{ECS Endpoint}/v2.1/bbf1946d374b44a0a2a95533562ba954/servers/53206ed0-56de-4d6b-b7ee-ffc62ca26f43/tags</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0060410928__section33789573105534"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0060410928__p18832719143830">N/A</p>
</div>
<div class="section" id="EN-US_TOPIC_0060410928__section27037160"><h4 class="sectiontitle">Returned Values</h4><div class="p" id="EN-US_TOPIC_0060410928__en-us_topic_0053158659_p1271142611013">Normal values
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0060410928__en-us_topic_0053158659_table753804619176" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0060410928__en-us_topic_0053158659_row10735134615172"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.6.2.1.1.3.1.1"><p id="EN-US_TOPIC_0060410928__en-us_topic_0053158659_p19735204616177">Returned Values</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.6.2.1.1.3.1.2"><p id="EN-US_TOPIC_0060410928__en-us_topic_0053158659_p207355465176">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0060410928__en-us_topic_0053158659_row1473514621713"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.6.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0060410928__en-us_topic_0053158659_p13735144611178">204</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.6.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0060410928__en-us_topic_0053158659_p81516575011">The server has processed the request but did not return any content.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p id="EN-US_TOPIC_0060410928__en-us_topic_0053158659_p47633965">For details about other returned values, see <a href="en-us_topic_0053158690.html">Status Codes</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0060410928__section14752650154917"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0060410928__en-us_topic_0106040941_p10243161417491">See <a href="en-us_topic_0107541808.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0060410925.html">BMS 1D Tag Management</a></div>
</div>
</div>