doc-exports/docs/evs/api-ref/evs_04_3013.html
zhangyue f3b09e5d2f Elastic Volume Service API V1
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-02-02 16:28:20 +00:00

131 lines
10 KiB
HTML

<a name="evs_04_3013"></a><a name="evs_04_3013"></a>
<h1 class="topictitle1">Batch Deleting Tags for the Specified EVS Disk</h1>
<div id="body1522058633192"><div class="section" id="evs_04_3013__section5299350116935"><h4 class="sectiontitle">Function</h4><p id="evs_04_3013__evs_04_2029_p42748596184850">This API is used to batch delete tags of a specified EVS disk. </p>
</div>
<div class="section" id="evs_04_3013__section4466609116935"><h4 class="sectiontitle">Constraints</h4><p id="evs_04_3013__p6118358516935">None</p>
</div>
<div class="section" id="evs_04_3013__section1378135716935"><h4 class="sectiontitle">URI</h4><ul id="evs_04_3013__ul4254812316935"><li id="evs_04_3013__li4738879116935">URI format<p id="evs_04_3013__p7339249185049"><a name="evs_04_3013__li4738879116935"></a><a name="li4738879116935"></a>POST /v3/{project_id}/os-vendor-volumes/{volume_id}/tags/action</p>
</li><li id="evs_04_3013__li1328688716935">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_3013__table28484833104128" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_3013__row60547305104128"><th align="left" class="cellrowborder" valign="top" width="28.57%" id="mcps1.3.3.2.2.1.1.4.1.1"><p id="evs_04_3013__p5384679104128">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.340000000000003%" id="mcps1.3.3.2.2.1.1.4.1.2"><p id="evs_04_3013__p33505894104128">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45.09%" id="mcps1.3.3.2.2.1.1.4.1.3"><p id="evs_04_3013__p29622926104128">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="evs_04_3013__row50646790104128"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.3.2.2.1.1.4.1.1 "><p id="evs_04_3013__p16385142185226">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="26.340000000000003%" headers="mcps1.3.3.2.2.1.1.4.1.2 "><p id="evs_04_3013__p52128135185226">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="45.09%" headers="mcps1.3.3.2.2.1.1.4.1.3 "><p id="evs_04_3013__p50566709185232">Specifies the project ID.</p>
</td>
</tr>
<tr id="evs_04_3013__row40869685152038"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.3.2.2.1.1.4.1.1 "><p id="evs_04_3013__p66238361185240">volume_id</p>
</td>
<td class="cellrowborder" valign="top" width="26.340000000000003%" headers="mcps1.3.3.2.2.1.1.4.1.2 "><p id="evs_04_3013__p63707038185240">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="45.09%" headers="mcps1.3.3.2.2.1.1.4.1.3 "><p id="evs_04_3013__p42707547152038">Specifies the disk ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="evs_04_3013__section5573802716935"><h4 class="sectiontitle">Request</h4><ul id="evs_04_3013__evs_04_2029_ul3084156718537"><li id="evs_04_3013__evs_04_2029_li28433766">Request parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_3013__evs_04_2029_evs_04_2027_table54577306" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_3013__evs_04_2029_evs_04_2027_row28922261"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.4.2.1.1.1.5.1.1"><p id="evs_04_3013__evs_04_2029_evs_04_2027_p61001774">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.4.2.1.1.1.5.1.2"><p id="evs_04_3013__evs_04_2029_evs_04_2027_p42196623">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.4.2.1.1.1.5.1.3"><p id="evs_04_3013__evs_04_2029_evs_04_2027_p62483297">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="47%" id="mcps1.3.4.2.1.1.1.5.1.4"><p id="evs_04_3013__evs_04_2029_evs_04_2027_p27982283">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="evs_04_3013__evs_04_2029_evs_04_2027_row50513961"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.2.1.1.1.5.1.1 "><p id="evs_04_3013__evs_04_2029_evs_04_2027_p52260429185445">tags</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.1.5.1.2 "><p id="evs_04_3013__evs_04_2029_evs_04_2027_p5236376185445">List&lt;resource_tag&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.2.1.1.1.5.1.3 "><p id="evs_04_3013__evs_04_2029_evs_04_2027_p21493324185445">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="47%" headers="mcps1.3.4.2.1.1.1.5.1.4 "><p id="evs_04_3013__evs_04_2029_evs_04_2027_p63237647185445">The tag list. For details, see <a href="#evs_04_3013__evs_04_2029_li2051510427374">Parameters in the resource_tag field</a>.</p>
</td>
</tr>
<tr id="evs_04_3013__evs_04_2029_evs_04_2027_row5477191"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.2.1.1.1.5.1.1 "><p id="evs_04_3013__evs_04_2029_evs_04_2027_p63564655185445">action</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.1.5.1.2 "><p id="evs_04_3013__evs_04_2029_evs_04_2027_p48463411185445">String</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.4.2.1.1.1.5.1.3 "><p id="evs_04_3013__evs_04_2029_evs_04_2027_p33222212185445">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="47%" headers="mcps1.3.4.2.1.1.1.5.1.4 "><p id="evs_04_3013__evs_04_2029_evs_04_2027_p8076185185456">The operation to perform. The value can be <strong id="evs_04_3013__evs_04_2029_b842352706194823">create</strong> or <strong id="evs_04_3013__evs_04_2029_b842352706194828">delete</strong>.</p>
<p id="evs_04_3013__evs_04_2029_p199258121833"><strong id="evs_04_3013__evs_04_2029_b842352706194852">delete</strong>: deletes tags.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="evs_04_3013__evs_04_2029_li2051510427374"><a name="evs_04_3013__evs_04_2029_li2051510427374"></a><a name="evs_04_2029_li2051510427374"></a>Parameters in the <strong id="evs_04_3013__evs_04_2029_b842352706181836">resource_tag</strong> field
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_3013__evs_04_2029_table251711423376" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_3013__evs_04_2029_row16518134283716"><th align="left" class="cellrowborder" valign="top" width="15.409999999999998%" id="mcps1.3.4.2.2.2.1.5.1.1"><p id="evs_04_3013__evs_04_2029_p75181742143717">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.099999999999998%" id="mcps1.3.4.2.2.2.1.5.1.2"><p id="evs_04_3013__evs_04_2029_p2051804253715">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.16%" id="mcps1.3.4.2.2.2.1.5.1.3"><p id="evs_04_3013__evs_04_2029_p1951816424370">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54.33%" id="mcps1.3.4.2.2.2.1.5.1.4"><p id="evs_04_3013__evs_04_2029_p15181442193715">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="evs_04_3013__evs_04_2029_row10520194220379"><td class="cellrowborder" valign="top" width="15.409999999999998%" headers="mcps1.3.4.2.2.2.1.5.1.1 "><p id="evs_04_3013__evs_04_2029_p652074219372">key</p>
</td>
<td class="cellrowborder" valign="top" width="14.099999999999998%" headers="mcps1.3.4.2.2.2.1.5.1.2 "><p id="evs_04_3013__evs_04_2029_p452094213376">String</p>
</td>
<td class="cellrowborder" valign="top" width="16.16%" headers="mcps1.3.4.2.2.2.1.5.1.3 "><p id="evs_04_3013__evs_04_2029_p13520174213710">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="54.33%" headers="mcps1.3.4.2.2.2.1.5.1.4 "><p id="evs_04_3013__evs_04_2029_p0755543174416">The tag key.</p>
</td>
</tr>
<tr id="evs_04_3013__evs_04_2029_row105231642193712"><td class="cellrowborder" valign="top" width="15.409999999999998%" headers="mcps1.3.4.2.2.2.1.5.1.1 "><p id="evs_04_3013__evs_04_2029_p152364220378">value</p>
</td>
<td class="cellrowborder" valign="top" width="14.099999999999998%" headers="mcps1.3.4.2.2.2.1.5.1.2 "><p id="evs_04_3013__evs_04_2029_p1352344216374">String</p>
</td>
<td class="cellrowborder" valign="top" width="16.16%" headers="mcps1.3.4.2.2.2.1.5.1.3 "><p id="evs_04_3013__evs_04_2029_p11523842133712">No</p>
</td>
<td class="cellrowborder" valign="top" width="54.33%" headers="mcps1.3.4.2.2.2.1.5.1.4 "><p id="evs_04_3013__evs_04_2029_p14523242153711">The tag value.</p>
<ul id="evs_04_3013__evs_04_2029_ul125242424378"><li id="evs_04_3013__evs_04_2029_li652415421378">It can contain up to 43 Unicode characters.</li><li id="evs_04_3013__evs_04_2029_li1052474243711">It can be an empty string. The spaces before and after the character string are discarded.</li><li id="evs_04_3013__evs_04_2029_li1852412423374">It cannot contain the following characters:<ul id="evs_04_3013__evs_04_2029_ul852464263711"><li id="evs_04_3013__evs_04_2029_li55241942183716">Non-printable ASCII characters (0-31)</li><li id="evs_04_3013__evs_04_2029_li85245427376">Special characters, including asterisks (*), left angle brackets (&lt;), right angle brackets (&gt;), backslashes (\), equal signs (=), commas (,), vertical bars (|), and slashes (/)</li></ul>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="evs_04_3013__evs_04_2029_li9576290185747">Example request<pre class="screen" id="evs_04_3013__evs_04_2029_screen41597520185927">{
"action": "delete",
"tags": [
{
"key": "key1"
},
{
"key": "key2"
}
]
}</pre>
</li></ul>
</div>
<div class="section" id="evs_04_3013__section3215934016935"><h4 class="sectiontitle">Response</h4><p id="evs_04_3013__evs_04_2029_p6442366919015">None</p>
</div>
<div class="section" id="evs_04_3013__section6050296116935"><h4 class="sectiontitle">Status Codes</h4><ul id="evs_04_3013__evs_04_2029_ul179279516935"><li id="evs_04_3013__evs_04_2029_li1613516116935">Normal<p id="evs_04_3013__evs_04_2029_p1099872616935"><a name="evs_04_3013__evs_04_2029_li1613516116935"></a><a name="evs_04_2029_li1613516116935"></a>204</p>
</li></ul>
</div>
<div class="section" id="evs_04_3013__section431317151242"><h4 class="sectiontitle">Error Codes</h4><p id="evs_04_3013__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_3010.html">EVS Tag</a></div>
</div>
</div>