forked from laiweijian4/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
82 lines
8.2 KiB
HTML
82 lines
8.2 KiB
HTML
<a name="EN-US_TOPIC_0053158683"></a><a name="EN-US_TOPIC_0053158683"></a>
|
|
|
|
<h1 class="topictitle1">Deleting Specified <span id="text68606276113">BMS</span><span id="text382315715202"></span> Metadata (Native OpenStack API)</h1>
|
|
<div id="body1456128284942"><div class="section" id="EN-US_TOPIC_0053158683__section5520708185439"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0053158683__p44524223185439">This API is used to delete specified <span id="EN-US_TOPIC_0053158683__text11500134014405">BMS</span><span id="EN-US_TOPIC_0053158683__text9501164064011"></span> metadata.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158683__section5072450814374"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0053158683__p1255315556220">The BMS <strong id="EN-US_TOPIC_0053158683__b343041634110">OS-EXT-STS:vm_state</strong> attribute (<span id="EN-US_TOPIC_0053158683__text3432181664113">BMS</span><span id="EN-US_TOPIC_0053158683__text1343381611419"></span> status) must be <strong id="EN-US_TOPIC_0053158683__b1288102619417">active</strong>, <strong id="EN-US_TOPIC_0053158683__b16197112814110">stopped</strong>, <strong id="EN-US_TOPIC_0053158683__b178261930104119">paused</strong>, or <strong id="EN-US_TOPIC_0053158683__b9927332174110">suspended</strong>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158683__section65173692185439"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0053158683__p54025806185439">DELETE /v2.1/{project_id}/servers/{server_id}/metadata/{key}</p>
|
|
<p id="EN-US_TOPIC_0053158683__p15834927173614"><a href="#EN-US_TOPIC_0053158683__table12474435113619">Table 1</a> lists the parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0053158683__table12474435113619"></a><a name="table12474435113619"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0053158683__table12474435113619" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0053158683__row1947413503615"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.4.2.4.1.1"><p id="EN-US_TOPIC_0053158683__p54886041185439">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_0053158683__p16584368185439">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_0053158683__p1156530185439">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0053158683__row16474735103610"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0053158683__p4696221185439">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_0053158683__p44849621185439">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_0053158683__p8940698185439">Specifies the project ID.</p>
|
|
<p id="EN-US_TOPIC_0053158683__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_0053158683__row12474113573619"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0053158683__p8209263185439">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_0053158683__p60970546185439">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_0053158683__p39667165185439">Specifies the <span id="EN-US_TOPIC_0053158683__text10391121222112">BMS</span><span id="EN-US_TOPIC_0053158683__text439171216215"></span> ID.</p>
|
|
<p id="EN-US_TOPIC_0053158683__p29791113277">You can obtain the BMS ID from the <span id="EN-US_TOPIC_0053158683__en-us_topic_0113746489_text013014803615">BMS</span><span id="EN-US_TOPIC_0053158683__en-us_topic_0113746489_text10131448133612"></span> console or using the <a href="en-us_topic_0053158693.html">Querying BMSs (Native OpenStack API)</a> API.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0053158683__row16474835173611"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0053158683__p48209085185622">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0053158683__p12621798185622">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_0053158683__p15732716185622">Specifies the <span id="EN-US_TOPIC_0053158683__text18734141311421">BMS</span><span id="EN-US_TOPIC_0053158683__text1573681354217"></span> metadata key value to be deleted.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158683__section21460169185439"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0053158683__ul206572713126"><li id="EN-US_TOPIC_0053158683__li1563324411419">Request parameters<p id="EN-US_TOPIC_0053158683__p11644491245"><a name="EN-US_TOPIC_0053158683__li1563324411419"></a><a name="li1563324411419"></a>None</p>
|
|
</li><li id="EN-US_TOPIC_0053158683__li665172781212">Example request<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0053158683__screen18739133511210"><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/c685484a8cc2416b97260938705deb65/servers/95bf2490-5428-432c-ad9b-5e3406f869dd/metadata/{key}</span><span class="w"></span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158683__section31286738185439"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0053158683__p25637144185815">N/A</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0053158683__section27037160"><h4 class="sectiontitle">Returned Values</h4><div class="p" id="EN-US_TOPIC_0053158683__en-us_topic_0053158659_p1271142611013">Normal values
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0053158683__en-us_topic_0053158659_table753804619176" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0053158683__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_0053158683__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_0053158683__en-us_topic_0053158659_p207355465176">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0053158683__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_0053158683__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_0053158683__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_0053158683__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_0053158683__section14752650154917"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0053158683__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_0173933989.html">BMS Metadata Management</a></div>
|
|
</div>
|
|
</div>
|
|
|