forked from docs/doc-exports
Reviewed-by: Muller, Martin <martin.muller@t-systems.com> Co-authored-by: lizaoxu <lizaoxu@huawei.com> Co-committed-by: lizaoxu <lizaoxu@huawei.com>
177 lines
16 KiB
HTML
177 lines
16 KiB
HTML
<a name="sfs_03_0003"></a><a name="sfs_03_0003"></a>
|
|
|
|
<h1 class="topictitle1">Batch Deleting Tags from a Resource</h1>
|
|
<div id="body8662426"><div class="section" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_section45644251387"><h4 class="sectiontitle">Function</h4><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p456422517384">This API is used to batch delete tags from a specified resource. System tags cannot be deleted. If any tag to be deleted is not found, a successful result is returned.</p>
|
|
</div>
|
|
<div class="section" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_section25643251387"><h4 class="sectiontitle">URI</h4><ul id="sfs_03_0003__en-us_topic_0000001886312009_ul14450165512518"><li id="sfs_03_0003__en-us_topic_0000001886312009_l0b44fa9cf5ac4d5ebf049e4fffe1a9ea">POST /v3/sfs/tms/{project_id}/file-systems/{resource_id}/tags/delete</li></ul>
|
|
<ul id="sfs_03_0003__en-us_topic_0000001886312009_ub4aa0077165a4a2aaa86e70b7267710a"><li id="sfs_03_0003__en-us_topic_0000001886312009_l46cf58ab60f44ee1aa0706ecc81ea921">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_03_0003__en-us_topic_0000001886312009_t5f48f75db9b14c6cbfd2879dd1e7c8d1" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_03_0003__en-us_topic_0000001886312009_ree8732a49c9f4cbfa3cbd26bda2eb442"><th align="left" class="cellrowborder" valign="top" width="14.29%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="sfs_03_0003__en-us_topic_0000001886312009_p17124101410431">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.85%" id="mcps1.3.2.3.1.1.1.5.1.2"><p id="sfs_03_0003__en-us_topic_0000001886312009_p1612415146430">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.55%" id="mcps1.3.2.3.1.1.1.5.1.3"><p id="sfs_03_0003__en-us_topic_0000001886312009_p312416148432">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.31%" id="mcps1.3.2.3.1.1.1.5.1.4"><p id="sfs_03_0003__en-us_topic_0000001886312009_p3124181464318">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_03_0003__en-us_topic_0000001886312009_r7dc74f4a31004f8eb4e868a93369c8a0"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_adf798e5d942b4301b652796bdf092f4a">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_a2326f73739854b4fa1892e0648821849">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="sfs_03_0003__en-us_topic_0000001886312009_ac77b318c2668498189dbee0fbb5fdb09">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.31%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="sfs_03_0003__en-us_topic_0000001886312009_a7f191d8fed27458ba04d994b7c934b80">The project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_03_0003__en-us_topic_0000001886312009_row2725171315228"><td class="cellrowborder" valign="top" width="14.29%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p1343202116229">resource_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p1634419216229">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p23441821182211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.31%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p183442215228">The resource ID, which is the name of a general purpose file system.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_section15569122523811"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request header parameters</caption><thead align="left"><tr id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_row1256922515381"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p18570025113819">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p5570202573816">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p1357014252386">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p75711025133813">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_row256972512383"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p65711252389">Content-type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p12571325143810">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p157122513816">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p19571172519388">The MIME type of the request body.</p>
|
|
<p id="sfs_03_0003__en-us_topic_0000001886312009_p288693716167">Example: application/json</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_row256918253384"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p20571112510387">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p1571172510389">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p1557262573812">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p17572112515388">The user token.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_request_CreateFileSystemConfiguration" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameters</caption><thead align="left"><tr id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_row557492511381"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p05741325143817">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p357462514386">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p2574102514381">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p135754259384">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_row14574142533813"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p0325918182717">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p232512185274">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p1332510181271">List<<a href="sfs_03_0002.html#sfs_03_0002__en-us_topic_0000001886392461_table667613216170">resource_tag</a>></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p825165313338">The tag list. For details, see <a href="sfs_03_0002.html#sfs_03_0002__en-us_topic_0000001886392461_table667613216170">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_section1957532520382"><h4 class="sectiontitle">Response Parameters</h4><p id="sfs_03_0003__en-us_topic_0000001886312009_p17997175315116">None</p>
|
|
</div>
|
|
<div class="section" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_section45751825203817"><h4 class="sectiontitle">Example Request</h4><p id="sfs_03_0003__en-us_topic_0000001886312009_p104101619194418">Batch deleting tags from a general purpose file system whose name is <strong id="sfs_03_0003__en-us_topic_0000001886312009_b104991825135711">bucketName</strong> with the project ID <strong id="sfs_03_0003__en-us_topic_0000001886312009_b1349932525719">c80a2157ba1d46c0825265947342077c</strong>:</p>
|
|
</div>
|
|
<pre class="screen" id="sfs_03_0003__en-us_topic_0000001886312009_screen1181631412359">POST https://{endpoint}/v3/sfs/tms/c80a2157ba1d46c0825265947342077c/file-systems/bucketName/tags/delete</pre>
|
|
<p id="sfs_03_0003__en-us_topic_0000001886312009_p5846185941117">Request body example:</p>
|
|
<pre class="screen" id="sfs_03_0003__en-us_topic_0000001886312009_screen158591581338">{
|
|
"tags":[
|
|
{
|
|
"key":"key1"
|
|
},
|
|
{
|
|
"key":"key2",
|
|
"value":"value2"
|
|
}
|
|
]
|
|
}</pre>
|
|
<div class="section" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_section1057692523814"><h4 class="sectiontitle">Example Response</h4><p id="sfs_03_0003__en-us_topic_0000001886312009_p1143431754110">None</p>
|
|
</div>
|
|
<div class="section" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_section9576122583811"><h4 class="sectiontitle">Status Codes</h4><ul id="sfs_03_0003__en-us_topic_0000001886312009_ul3162613183218"><li id="sfs_03_0003__en-us_topic_0000001886312009_li17162131319327">Normal</li></ul>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_03_0003__en-us_topic_0000001886312009_table368724141513" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_03_0003__en-us_topic_0000001886312009_row8682024181510"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.10.3.1.3.1.1"><p id="sfs_03_0003__en-us_topic_0000001886312009_p12688246153">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.10.3.1.3.1.2"><p id="sfs_03_0003__en-us_topic_0000001886312009_p26822418151">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_03_0003__en-us_topic_0000001886312009_row168024161516"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.10.3.1.3.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p1168424141515">204</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.10.3.1.3.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p16817240155">Resource tags are deleted.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<ul id="sfs_03_0003__en-us_topic_0000001886312009_ul0640161683218"><li id="sfs_03_0003__en-us_topic_0000001886312009_li17640141673214">Abnormal</li></ul>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_row45761425133810"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.10.5.1.3.1.1"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p105761225173813">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.10.5.1.3.1.2"><p id="sfs_03_0003__en-us_topic_0000001886312009_en-us_topic_0000001311071305_en-us_topic_0000001263239606_p12576112573812">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_03_0003__en-us_topic_0000001886312009_row20215812131416"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.10.5.1.3.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p141019302141">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.10.5.1.3.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p410630191412">Invalid tag parameter.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_03_0003__en-us_topic_0000001886312009_row1922211518149"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.10.5.1.3.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p610133041416">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.10.5.1.3.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p1510113071415">Certification failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_03_0003__en-us_topic_0000001886312009_row17969131741415"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.10.5.1.3.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p10102309145">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.10.5.1.3.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p710103010141">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_03_0003__en-us_topic_0000001886312009_row7978112011418"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.10.5.1.3.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p1410183031417">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.10.5.1.3.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p910133017145">Resource not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_03_0003__en-us_topic_0000001886312009_row9668162716146"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.10.5.1.3.1.1 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p1610430181412">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.10.5.1.3.1.2 "><p id="sfs_03_0003__en-us_topic_0000001886312009_p41033016149">System error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="sfs_03_0001.html">Tags</a></div>
|
|
</div>
|
|
</div>
|
|
|