doc-exports/docs/evs/api-ref/evs_04_2027.html
zhangyue ccbf63b495 EVS API DOC
Reviewed-by: Muller, Martin <martin.muller@t-systems.com>
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2024-05-16 09:08:21 +00:00

134 lines
9.7 KiB
HTML

<a name="evs_04_2027"></a><a name="evs_04_2027"></a>
<h1 class="topictitle1">Batch Adding Tags for the Specified EVS Disk</h1>
<div id="body1517222313575"><div class="section" id="evs_04_2027__section5299350116935"><h4 class="sectiontitle">Function</h4><p id="evs_04_2027__p42748596184850">This API is used to batch add tags for the specified EVS disk. </p>
<ul id="evs_04_2027__ul57771301185018"><li id="evs_04_2027__li7694737183218">When adding tags, if a tag key is consistent with an existing one, the new tag will overwrite the existing tag.</li><li id="evs_04_2027__li67093010153619">A maximum of 10 tags can be created for a disk.</li></ul>
</div>
<div class="section" id="evs_04_2027__section4466609116935"><h4 class="sectiontitle">Constraints</h4><p id="evs_04_2027__p6118358516935">None</p>
</div>
<div class="section" id="evs_04_2027__section1378135716935"><h4 class="sectiontitle">URI</h4><ul id="evs_04_2027__ul4254812316935"><li id="evs_04_2027__li4738879116935">URI format<p id="evs_04_2027__p7339249185049"><a name="evs_04_2027__li4738879116935"></a><a name="li4738879116935"></a>POST /v2/{project_id}/os-vendor-volumes/{volume_id}/tags/action</p>
</li><li id="evs_04_2027__li1328688716935">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2027__table28484833104128" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2027__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_2027__p5384679104128">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.529999999999998%" id="mcps1.3.3.2.2.1.1.4.1.2"><p id="evs_04_2027__p33505894104128">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="44.9%" id="mcps1.3.3.2.2.1.1.4.1.3"><p id="evs_04_2027__p29622926104128">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="evs_04_2027__row50646790104128"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.3.2.2.1.1.4.1.1 "><p id="evs_04_2027__p16385142185226">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.2.1.1.4.1.2 "><p id="evs_04_2027__p52128135185226">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.3.2.2.1.1.4.1.3 "><p id="evs_04_2027__p50566709185232">Specifies the project ID.</p>
</td>
</tr>
<tr id="evs_04_2027__row40869685152038"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.3.2.2.1.1.4.1.1 "><p id="evs_04_2027__p66238361185240">volume_id</p>
</td>
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.3.2.2.1.1.4.1.2 "><p id="evs_04_2027__p63707038185240">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.3.2.2.1.1.4.1.3 "><p id="evs_04_2027__p42707547152038">Specifies the disk ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="evs_04_2027__section5573802716935"><h4 class="sectiontitle">Request</h4><ul id="evs_04_2027__ul3084156718537"><li id="evs_04_2027__li28433766">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2027__table54577306" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2027__row28922261"><th align="left" class="cellrowborder" valign="top" width="15.409999999999998%" id="mcps1.3.4.2.1.1.1.5.1.1"><p id="evs_04_2027__p61001774">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.91%" id="mcps1.3.4.2.1.1.1.5.1.2"><p id="evs_04_2027__p42196623">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.35%" id="mcps1.3.4.2.1.1.1.5.1.3"><p id="evs_04_2027__p62483297">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54.33%" id="mcps1.3.4.2.1.1.1.5.1.4"><p id="evs_04_2027__p27982283">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="evs_04_2027__row50513961"><td class="cellrowborder" valign="top" width="15.409999999999998%" headers="mcps1.3.4.2.1.1.1.5.1.1 "><p id="evs_04_2027__p52260429185445">tags</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.2.1.1.1.5.1.2 "><p id="evs_04_2027__evs_04_2027_p5236376185445">List&lt;resource_tag&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.4.2.1.1.1.5.1.3 "><p id="evs_04_2027__p21493324185445">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="54.33%" headers="mcps1.3.4.2.1.1.1.5.1.4 "><p id="evs_04_2027__p63237647185445">Specifies the tag list. For details, see <a href="#evs_04_2027__li4495404118563">Parameters in the resource_tag field</a>.</p>
</td>
</tr>
<tr id="evs_04_2027__row5477191"><td class="cellrowborder" valign="top" width="15.409999999999998%" headers="mcps1.3.4.2.1.1.1.5.1.1 "><p id="evs_04_2027__p63564655185445">action</p>
</td>
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.4.2.1.1.1.5.1.2 "><p id="evs_04_2027__p48463411185445">String</p>
</td>
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.4.2.1.1.1.5.1.3 "><p id="evs_04_2027__p33222212185445">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="54.33%" headers="mcps1.3.4.2.1.1.1.5.1.4 "><p id="evs_04_2027__p8076185185456">Specifies the operation to perform. The value can be <strong id="evs_04_2027__b842352706194823">create</strong> or <strong id="evs_04_2027__b842352706194828">delete</strong>.</p>
<p id="evs_04_2027__p1055696513"><strong id="evs_04_2027__b842352706194834">create</strong>: specifies to add tags.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="evs_04_2027__li4495404118563"><a name="evs_04_2027__li4495404118563"></a><a name="li4495404118563"></a>Parameters in the <strong id="evs_04_2027__b1134492418223">resource_tag</strong> field
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2027__table24916402185553" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2027__row45194334185553"><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_2027__p36862455185553">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_2027__p33068848185553">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.35%" id="mcps1.3.4.2.2.2.1.5.1.3"><p id="evs_04_2027__p61330993185553">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54.14%" id="mcps1.3.4.2.2.2.1.5.1.4"><p id="evs_04_2027__p1754531185553">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="evs_04_2027__row7899309185553"><td class="cellrowborder" valign="top" width="15.409999999999998%" headers="mcps1.3.4.2.2.2.1.5.1.1 "><p id="evs_04_2027__p27402824185630">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_2027__p5036281185630">String</p>
</td>
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.4.2.2.2.1.5.1.3 "><p id="evs_04_2027__p5285618185630">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="54.14%" headers="mcps1.3.4.2.2.2.1.5.1.4 "><div class="p" id="evs_04_2027__p65027314233">Specifies the tag key.<ul id="evs_04_2027__ul20512635161710"><li id="evs_04_2027__li9842040193117">Cannot be left blank.</li><li id="evs_04_2027__li757155223116">Must be unique for each resource.</li><li id="evs_04_2027__li13340142763215">Can contain a maximum of 36 characters.</li><li id="evs_04_2027__li284614435329">Can contain only digits, letters, hyphens (-), and underscores (_).</li></ul>
</div>
</td>
</tr>
<tr id="evs_04_2027__row55890127185553"><td class="cellrowborder" valign="top" width="15.409999999999998%" headers="mcps1.3.4.2.2.2.1.5.1.1 "><p id="evs_04_2027__p54294233185630">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_2027__p35756723185630">String</p>
</td>
<td class="cellrowborder" valign="top" width="16.35%" headers="mcps1.3.4.2.2.2.1.5.1.3 "><p id="evs_04_2027__p10613433185630">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="54.14%" headers="mcps1.3.4.2.2.2.1.5.1.4 "><div class="p" id="evs_04_2027__p2724127122616">Specifies the tag value.<ul id="evs_04_2027__ul4512173118234"><li id="evs_04_2027__li1751263111237">Can contain a maximum of 43 characters.</li><li id="evs_04_2027__li1751210317234">Can contain only digits, letters, hyphens (-), and underscores (_).</li></ul>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="evs_04_2027__li9576290185747">Example request<pre class="screen" id="evs_04_2027__screen13438047185839">{
"action": "create",
"tags": [
{
"key": "key1",
"value": "value1"
},
{
"key": "key2",
"value": "value3"
}
]
}</pre>
</li></ul>
</div>
<div class="section" id="evs_04_2027__section3215934016935"><h4 class="sectiontitle">Response</h4><p id="evs_04_2027__p6442366919015">None</p>
</div>
<div class="section" id="evs_04_2027__section6050296116935"><h4 class="sectiontitle">Status Codes</h4><ul id="evs_04_2027__ul179279516935"><li id="evs_04_2027__li1613516116935">Normal<p id="evs_04_2027__p1099872616935"><a name="evs_04_2027__li1613516116935"></a><a name="li1613516116935"></a>204</p>
</li></ul>
</div>
<div class="section" id="evs_04_2027__section431317151242"><h4 class="sectiontitle">Error Codes</h4><p id="evs_04_2027__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_2024.html">Tag Management</a></div>
</div>
</div>