forked from docs/doc-exports
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>
64 lines
5.3 KiB
HTML
64 lines
5.3 KiB
HTML
<a name="EN-US_TOPIC_0025560299"></a><a name="EN-US_TOPIC_0025560299"></a>
|
|
|
|
<h1 class="topictitle1">Deleting Specified <span id="text8668419125217">ECS</span> Metadata</h1>
|
|
<div id="body1456128284942"><div class="section" id="EN-US_TOPIC_0025560299__section5520708185439"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0025560299__p44524223185439">This API is used to delete specified <span id="EN-US_TOPIC_0025560299__text61631521145210">ECS</span> metadata.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0025560299__section4794112412015"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0025560299__p54256020121640">An <span id="EN-US_TOPIC_0025560299__text17699184822710">ECS</span> must be in active, stopped, paused, or suspended state, which is specified by <strong id="EN-US_TOPIC_0025560299__b4700448182714">OS-EXT-STS:vm_state</strong>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0025560299__section65173692185439"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0025560299__p158485163410">DELETE /v2.1/{project_id}/servers/{server_id}/metadata/{key}</p>
|
|
<p id="EN-US_TOPIC_0025560299__p208961821905">DELETE /v2/{project_id}/servers/{server_id}/metadata/{key}</p>
|
|
<div class="p" id="EN-US_TOPIC_0025560299__p1315011577193"><a href="#EN-US_TOPIC_0025560299__table14014174185439">Table 1</a> describes the parameters in the URI.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0025560299__table14014174185439"></a><a name="table14014174185439"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0025560299__table14014174185439" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0025560299__row32160776185439"><th align="left" class="cellrowborder" valign="top" width="16.98%" id="mcps1.3.3.4.2.2.4.1.1"><p id="EN-US_TOPIC_0025560299__p5187119">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.36%" id="mcps1.3.3.4.2.2.4.1.2"><p id="EN-US_TOPIC_0025560299__p17503500">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="65.66%" id="mcps1.3.3.4.2.2.4.1.3"><p id="EN-US_TOPIC_0025560299__p8497414">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0025560299__row26570121185439"><td class="cellrowborder" valign="top" width="16.98%" headers="mcps1.3.3.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0025560299__p4696221185439">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.3.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0025560299__p44849621185439">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.66%" headers="mcps1.3.3.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0025560299__p37593705">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0025560299__row13357420185439"><td class="cellrowborder" valign="top" width="16.98%" headers="mcps1.3.3.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0025560299__p8209263185439">server_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.3.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0025560299__p60970546185439">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.66%" headers="mcps1.3.3.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0025560299__p39667165185439">Specifies the <span id="EN-US_TOPIC_0025560299__text542012534275">ECS</span> ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0025560299__row32078344185622"><td class="cellrowborder" valign="top" width="16.98%" headers="mcps1.3.3.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0025560299__p48209085185622">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.3.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0025560299__p12621798185622">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.66%" headers="mcps1.3.3.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0025560299__p15732716185622">Specifies the <span id="EN-US_TOPIC_0025560299__text94181625185212">ECS</span> metadata key.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0025560299__section21460169185439"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0025560299__p11531473185743">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0025560299__section31286738185439"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0025560299__p25637144185815">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0025560299__section43661451124217"><h4 class="sectiontitle">Example Request</h4><p id="EN-US_TOPIC_0025560299__p1912495712712">Delete the metadata from a specified ECS.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0025560299__screen156935228242">DELETE https://{endpoint}/v2/{project_id}/servers/{server_id}/metadata/{key}
|
|
DELETE https://{endpoint}/v2.1/{project_id}/servers/{server_id}/metadata/{key}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0025560299__section105131358154219"><h4 class="sectiontitle">Example Response</h4><p id="EN-US_TOPIC_0025560299__p5143056435">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0025560299__section4253667185439"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0025560299__p9002775185439">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_0065817681.html">Metadata Management</a></div>
|
|
</div>
|
|
</div>
|
|
|