forked from docs/doc-exports
Reviewed-by: Miskanin, Jan <jan.miskanin@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>
176 lines
12 KiB
HTML
176 lines
12 KiB
HTML
<a name="sfs_02_0042"></a><a name="sfs_02_0042"></a>
|
|
|
|
<h1 class="topictitle1">Batch Deleting Tags from a Shared File System</h1>
|
|
<div id="body1521093540922"><div class="section" id="sfs_02_0042__section10684447163819"><h4 class="sectiontitle">Function</h4><p id="sfs_02_0042__p1995153173115">This API is used to batch delete tags from a specified shared file system.</p>
|
|
<p id="sfs_02_0042__p1595123111317">This API is idempotent. If the tags to be deleted do not exist on the shared file system, the deletion is regarded as successful by default.</p>
|
|
</div>
|
|
<div class="section" id="sfs_02_0042__section1665327514513"><h4 class="sectiontitle">URI</h4><ul id="sfs_02_0042__ul673803814513"><li id="sfs_02_0042__li6064234314513">POST /v2/{project_id}/sfs/{share_id}/tags/action</li><li id="sfs_02_0042__li891018114513">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0042__table22021759152019" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0042__row16139965152019"><th align="left" class="cellrowborder" valign="top" width="18.56%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="sfs_02_0042__p17124101410431">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.4%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="sfs_02_0042__p1612415146430">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.65%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="sfs_02_0042__p312416148432">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="46.39%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="sfs_02_0042__p3124181464318">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0042__row55089343152019"><td class="cellrowborder" valign="top" width="18.56%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sfs_02_0042__p1781134044818">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.4%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sfs_02_0042__p59952126152019">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.65%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sfs_02_0042__p24284048152019">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.39%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sfs_02_0042__p20850895152019">Specifies the project ID of the operator.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0042__row3119103219486"><td class="cellrowborder" valign="top" width="18.56%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sfs_02_0042__p1011933217487">share_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.4%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sfs_02_0042__p18120163210481">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.65%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sfs_02_0042__p11120113294813">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.39%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sfs_02_0042__p13120143211489">Specifies the ID of the shared file system.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0042__section5063604914513"><h4 class="sectiontitle">Request</h4><ul id="sfs_02_0042__ul787926514513"><li id="sfs_02_0042__li380452214513">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0042__table1836815510524" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0042__row1137265565217"><th align="left" class="cellrowborder" valign="top" width="16.16161616161616%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="sfs_02_0042__p96501046163313">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.14141414141414%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="sfs_02_0042__p3666184616332">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.17171717171717%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="sfs_02_0042__p3666446113310">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="52.52525252525252%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="sfs_02_0042__p2666174623316">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0042__row1476962172917"><td class="cellrowborder" valign="top" width="16.16161616161616%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="sfs_02_0042__p1876919212918">action</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.14141414141414%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="sfs_02_0042__p1276919232920">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.17171717171717%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="sfs_02_0042__p10769112142919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.52525252525252%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="sfs_02_0042__p197694202910">Specifies the operation identifier. Possible values are <strong id="sfs_02_0042__b842352706192333">create</strong> and <strong id="sfs_02_0042__b842352706192336">delete</strong>. Use <strong id="sfs_02_0042__b142857603419313">delete</strong> to batch delete tags from a specified shared file system.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0042__row8379125520523"><td class="cellrowborder" valign="top" width="16.16161616161616%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="sfs_02_0042__p13380755115210">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.14141414141414%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="sfs_02_0042__p1038255513523">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.17171717171717%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="sfs_02_0042__p1393836507">Array of resource_tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.52525252525252%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="sfs_02_0042__p938455505218">Specifies the tag list.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="sfs_02_0042__li1058120460290">Description of field <strong id="sfs_02_0042__b129301825169">resource_tag</strong>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0042__table14385185545214" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0042__row5389135517522"><th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.3.2.2.2.1.5.1.1"><p id="sfs_02_0042__p133062052193316">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.3.2.2.2.1.5.1.2"><p id="sfs_02_0042__p332285211337">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.3.2.2.2.1.5.1.3"><p id="sfs_02_0042__p3322452173315">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="52%" id="mcps1.3.3.2.2.2.1.5.1.4"><p id="sfs_02_0042__p11322145211339">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0042__row10396165515211"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="sfs_02_0042__p7397185512522">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="sfs_02_0042__p19398125516523">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="sfs_02_0042__p18399255165215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="sfs_02_0042__p2676153813453">Specifies the tag key.</p>
|
|
<p id="sfs_02_0042__p14400185515528">The value can contain a maximum of 36 characters. This parameter cannot be left blank.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0042__row144011055105210"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="sfs_02_0042__p144021355135210">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="sfs_02_0042__p1640495512522">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="sfs_02_0042__p16405255185213">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="sfs_02_0042__p119131733154512">Specifies the tag value.</p>
|
|
<p id="sfs_02_0042__p47721428633">The value contains a maximum of 43 characters and can be an empty string. If the value is not an empty string, the tag is located and deleted based on the key and value. If the value is an empty string, the tag is located and deleted based on the key.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="sfs_02_0042__li3973086014513">Example request<div class="p" id="sfs_02_0042__p2418113810217"><a name="sfs_02_0042__li3973086014513"></a><a name="li3973086014513"></a>Batch deleting tags (key1, value1; key2; key3) from a shared file system<pre class="screen" id="sfs_02_0042__screen131925450281">{
|
|
"action": "delete",
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"value": "value1"
|
|
},
|
|
{
|
|
"key": "key2"
|
|
},
|
|
{
|
|
"key": "key3",
|
|
"value": ""
|
|
}
|
|
]
|
|
}</pre>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0042__section1060474015305"><h4 class="sectiontitle">Response</h4><ul id="sfs_02_0042__ul2334684914513"><li id="sfs_02_0042__li879505414513">Parameter description<p id="sfs_02_0042__ac213f604d5cf4e85a07dd78f95b5205b"><a name="sfs_02_0042__li879505414513"></a><a name="li879505414513"></a>None</p>
|
|
</li></ul>
|
|
<ul id="sfs_02_0042__ul3903357014513"><li id="sfs_02_0042__li1575781314513">Example response<p id="sfs_02_0042__p138241544115414"><a name="sfs_02_0042__li1575781314513"></a><a name="li1575781314513"></a>None</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0042__section4959408514513"><h4 class="sectiontitle">Status Codes</h4><ul id="sfs_02_0042__ul5769798014513"><li id="sfs_02_0042__li4951977214513">Normal<p id="sfs_02_0042__p4302476614513"><a name="sfs_02_0042__li4951977214513"></a><a name="li4951977214513"></a>204</p>
|
|
</li><li id="sfs_02_0042__li5167858014513">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0042__table6245403714513" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0042__row1507735814513"><th align="left" class="cellrowborder" valign="top" width="43.43%" id="mcps1.3.5.2.2.1.1.3.1.1"><p id="sfs_02_0042__p1330652014513">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.57%" id="mcps1.3.5.2.2.1.1.3.1.2"><p id="sfs_02_0042__p408636314513">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0042__row3477393214513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0042__p6522508214513">400 Bad Request</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0042__p4874025614513">Invalid value.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0042__row3600912414513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0042__p3105792214513">401 Unauthorized</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0042__p3266375714513">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0042__row2553835814513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0042__p5534113514513">403 Forbidden</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0042__p5344692014513">Access to the requested page is forbidden.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0042__row1126023214513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0042__p3966357214513">404 Not Found</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0042__p5863278914513">The requested resource was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0042__row1011562214513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0042__p1405905414513">500 Internal Server Error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0042__p6504160314513">The request is not completed because of a service error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="sfs_02_0036.html">Tag Management</a></div>
|
|
</div>
|
|
</div>
|
|
|