forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
120 lines
8.5 KiB
HTML
120 lines
8.5 KiB
HTML
<a name="evs_04_2079"></a><a name="evs_04_2079"></a>
|
|
|
|
<h1 class="topictitle1">Deleting One Piece of Metadata for an EVS Disk</h1>
|
|
<div id="body1493902424364"><div class="section" id="evs_04_2079__section19390540"><h4 class="sectiontitle">Function</h4><p id="evs_04_2079__p50301879">This API is used to delete one piece of the EVS disk metadata.</p>
|
|
</div>
|
|
<div class="section" id="evs_04_2079__section40297137"><h4 class="sectiontitle">URI</h4><ul id="evs_04_2079__ul47920438"><li id="evs_04_2079__li28630766">URI format<p id="evs_04_2079__p37390672"><a name="evs_04_2079__li28630766"></a><a name="li28630766"></a>DELETE /v2/{project_id}/volumes/{volume_id}/metadata/{key}</p>
|
|
</li><li id="evs_04_2079__li971734">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2079__table8745607" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2079__row15985080"><th align="left" class="cellrowborder" valign="top" width="22.99%" id="mcps1.3.2.2.2.1.1.4.1.1"><p id="evs_04_2079__p19723089">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26%" id="mcps1.3.2.2.2.1.1.4.1.2"><p id="evs_04_2079__p54066375">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.01%" id="mcps1.3.2.2.2.1.1.4.1.3"><p id="evs_04_2079__p17300225">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2079__row59140967"><td class="cellrowborder" valign="top" width="22.99%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="evs_04_2079__p25689059">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.2.2.2.1.1.4.1.2 "><p id="evs_04_2079__p439002">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.01%" headers="mcps1.3.2.2.2.1.1.4.1.3 "><p id="evs_04_2079__p35559222">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2079__row51597550"><td class="cellrowborder" valign="top" width="22.99%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="evs_04_2079__p18651996">volume_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.2.2.2.1.1.4.1.2 "><p id="evs_04_2079__p34416674">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.01%" headers="mcps1.3.2.2.2.1.1.4.1.3 "><p id="evs_04_2079__p36287209">Specifies the disk ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2079__row21272210213647"><td class="cellrowborder" valign="top" width="22.99%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="evs_04_2079__p45327484213647">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.2.2.2.1.1.4.1.2 "><p id="evs_04_2079__p47647615213647">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.01%" headers="mcps1.3.2.2.2.1.1.4.1.3 "><p id="evs_04_2079__p34251586213647">Specifies the key of the piece of metadata to be deleted.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2079__section27129916"><h4 class="sectiontitle">Request</h4><ul id="evs_04_2079__ul14963212101"><li id="evs_04_2079__li12496526109">Example request<pre class="screen" id="evs_04_2079__screen1836449161017">DELETE https://{endpoint}/v2/{project_id}/volumes/b104b8db-170d-441b-897a-3c8ba9c5a214/metadata/value1</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2079__section42842654"><h4 class="sectiontitle">Response</h4><ul id="evs_04_2079__ul61377636121252"><li id="evs_04_2079__li15527813121252">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2079__table5532594121252" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2079__row60048709121252"><th align="left" class="cellrowborder" valign="top" width="21.17788221177882%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="evs_04_2079__p32107236121252">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.17788221177882%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="evs_04_2079__p50549312121252">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.64423557644236%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="evs_04_2079__p2030156121252">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2079__row30224973121252"><td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="evs_04_2079__p129522216412">error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="evs_04_2079__p1595262111415">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.64423557644236%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="evs_04_2079__p109527215417">Specifies the error message returned when an error occurs. For details, see <a href="#evs_04_2079__li0419202382514">Parameters in the error field</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="evs_04_2079__li0419202382514"><a name="evs_04_2079__li0419202382514"></a><a name="li0419202382514"></a>Parameters in the <strong id="evs_04_2079__evs_04_2013_b1288034833610">error</strong> field
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2079__evs_04_2013_table15441099103019" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2079__evs_04_2013_row54094047103019"><th align="left" class="cellrowborder" valign="top" width="21.17788221177882%" id="mcps1.3.4.2.2.2.1.4.1.1"><p id="evs_04_2079__evs_04_2013_p19541716103019">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.17788221177882%" id="mcps1.3.4.2.2.2.1.4.1.2"><p id="evs_04_2079__evs_04_2013_p39375186103019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.64423557644236%" id="mcps1.3.4.2.2.2.1.4.1.3"><p id="evs_04_2079__evs_04_2013_p38578950103019">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2079__evs_04_2013_row59401790103019"><td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="evs_04_2079__evs_04_2013_p46815658103019">message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="evs_04_2079__evs_04_2013_p33971979103019">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.64423557644236%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="evs_04_2079__evs_04_2013_p21623243103019">The error message returned if an error occurs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2079__evs_04_2013_row60391466103019"><td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="evs_04_2079__evs_04_2013_p59870541103019">code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="evs_04_2079__evs_04_2013_p17675690103019">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.64423557644236%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="evs_04_2079__evs_04_2013_p6087468103019">The error code returned if an error occurs.</p>
|
|
<p id="evs_04_2079__evs_04_2013_p54787218103019">For details about the error code, see <a href="evs_04_0038.html">Error Codes</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="evs_04_2079__li38255809121252">Example response<p id="evs_04_2079__p8757961121252"><a name="evs_04_2079__li38255809121252"></a><a name="li38255809121252"></a>None</p>
|
|
<p id="evs_04_2079__p11712787121252">or</p>
|
|
<pre class="screen" id="evs_04_2079__screen48445255151416">{
|
|
"error": {
|
|
"message": "XXXX",
|
|
"code": "XXX"
|
|
}
|
|
}</pre>
|
|
<p id="evs_04_2079__p9211706121252">In the preceding example, <strong id="evs_04_2079__b842352706143959">error</strong> indicates a general error, for example, <strong id="evs_04_2079__b842352706144438">badrequest</strong> or <strong id="evs_04_2079__b842352706144454">itemNotFound</strong>. An example is provided as follows:</p>
|
|
<pre class="screen" id="evs_04_2079__screen52058323151436">{
|
|
"itemNotFound": {
|
|
"message": "XXXX",
|
|
"code": "XXX"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2079__section50039568"><h4 class="sectiontitle">Status Codes</h4><ul id="evs_04_2079__ul5136981"><li id="evs_04_2079__li46232835">Normal<p id="evs_04_2079__p13442339"><a name="evs_04_2079__li46232835"></a><a name="li46232835"></a>200</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2079__section431317151242"><h4 class="sectiontitle">Error Codes</h4><p id="evs_04_2079__evs_04_2013_p783819215242">For details, see <a href="evs_04_0038.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_04_2064.html">EVS Disk</a></div>
|
|
</div>
|
|
</div>
|
|
|