forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Wei, Hongmin <weihongmin1@huawei.com> Co-committed-by: Wei, Hongmin <weihongmin1@huawei.com>
191 lines
14 KiB
HTML
191 lines
14 KiB
HTML
<a name="sdrs_05_0807"></a><a name="sdrs_05_0807"></a>
|
|
|
|
<h1 class="topictitle1">Deleting Protected Instance Tags in Batches</h1>
|
|
<div id="body1589942652642"><div class="section" id="sdrs_05_0807__section11743182514464"><h4 class="sectiontitle">Function</h4><p id="sdrs_05_0807__p15988152594618">This API is used to delete protected instance tags for a specified protected instance in batches.</p>
|
|
<p id="sdrs_05_0807__p1198814253468">You can add a maximum of 20 tags to a protected instance.</p>
|
|
<p id="sdrs_05_0807__p189881625144619">This API is idempotent.</p>
|
|
<ul id="sdrs_05_0807__ul14988122513468"><li id="sdrs_05_0807__li14988152515462">During tag deletion, if some tags do not exist, the operation is considered to be successful by default. The character set of the tags will not be checked. When you delete tags, the tag structure cannot be missing, and the key cannot be left blank or be an empty string.</li></ul>
|
|
</div>
|
|
<div class="section" id="sdrs_05_0807__section1775552564615"><h4 class="sectiontitle">URI</h4><ul id="sdrs_05_0807__ul1098816254461"><li id="sdrs_05_0807__li13988142514461">URI format<p id="sdrs_05_0807__p1598816252466"><a name="sdrs_05_0807__li13988142514461"></a><a name="li13988142514461"></a>POST /v1/{project_id}/protected-instances/{protected_instance_id}/tags/action</p>
|
|
</li></ul>
|
|
<ul id="sdrs_05_0807__ul998852511468"><li id="sdrs_05_0807__li12988525194610">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sdrs_05_0807__table14756192511463" frame="border" border="1" rules="all"><thead align="left"><tr id="sdrs_05_0807__row189891125114611"><th align="left" class="cellrowborder" valign="top" width="19.39%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="sdrs_05_0807__p9989625134619"><strong id="sdrs_05_0807__b842352706162023">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.47%" id="mcps1.3.2.3.1.1.1.5.1.2"><p id="sdrs_05_0807__p199892258468"><strong id="sdrs_05_0807__b216232303914">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.24%" id="mcps1.3.2.3.1.1.1.5.1.3"><p id="sdrs_05_0807__p298916253464"><strong id="sdrs_05_0807__b93622623920">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.9%" id="mcps1.3.2.3.1.1.1.5.1.4"><p id="sdrs_05_0807__p8989225134620"><strong id="sdrs_05_0807__b84235270615457">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sdrs_05_0807__row998942594616"><td class="cellrowborder" valign="top" width="19.39%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="sdrs_05_0807__p198982554613">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.47%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="sdrs_05_0807__p1298915253466">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.24%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="sdrs_05_0807__p898962594617">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="sdrs_05_0807__p398915254462">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0807__row13989162512469"><td class="cellrowborder" valign="top" width="19.39%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="sdrs_05_0807__p89891925134615">protected_instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.47%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="sdrs_05_0807__p20989152518462">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.24%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="sdrs_05_0807__p10989102518465">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="sdrs_05_0807__p1798962564612">Specifies the ID of a protected instance.</p>
|
|
<p id="sdrs_05_0807__p167524401505">For details, see <a href="sdrs_05_0503.html">Querying Protected Instances</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sdrs_05_0807__section1877562518469"><h4 class="sectiontitle">Request</h4><ul id="sdrs_05_0807__ul998932544619"><li id="sdrs_05_0807__li1989192594612">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sdrs_05_0807__table0779825104611" frame="border" border="1" rules="all"><thead align="left"><tr id="sdrs_05_0807__row798917257464"><th align="left" class="cellrowborder" valign="top" width="12.120000000000001%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="sdrs_05_0807__p10989112574616"><strong id="sdrs_05_0807__b11869830194418">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.22%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="sdrs_05_0807__p13989102564611"><strong id="sdrs_05_0807__b1558953111444">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.230000000000004%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="sdrs_05_0807__p2989162513468"><strong id="sdrs_05_0807__b14284173211443">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="42.43%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="sdrs_05_0807__p2098952584613"><strong id="sdrs_05_0807__b7954193234411">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sdrs_05_0807__row9989725114615"><td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="sdrs_05_0807__p698952514619">action</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.22%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="sdrs_05_0807__p14989152514460">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.230000000000004%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="sdrs_05_0807__p1598982514461">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.43%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="sdrs_05_0807__p134981385164">Identifies the operation. The value can be <strong id="sdrs_05_0807__b842352706112823">create</strong> or <strong id="sdrs_05_0807__b842352706112836">delete</strong>.</p>
|
|
<ul id="sdrs_05_0807__ul1313055620166"><li id="sdrs_05_0807__li1613095618168"><strong id="sdrs_05_0807__b339018611414">delete</strong>: indicates to delete a tag.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0807__row1255715497467"><td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="sdrs_05_0807__p2098952554610">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.22%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="sdrs_05_0807__p15989325194612">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.230000000000004%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="sdrs_05_0807__p18989825144619">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.43%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="sdrs_05_0807__p199891025184612">Specifies the tag list.</p>
|
|
<p id="sdrs_05_0807__p5238016101319">For details, see <a href="#sdrs_05_0807__table6785202564616">Table 1</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="sdrs_05_0807__table6785202564616"></a><a name="table6785202564616"></a><table cellpadding="4" cellspacing="0" summary="" id="sdrs_05_0807__table6785202564616" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="sdrs_05_0807__b431419111113">resource_tag</strong> field description</caption><thead align="left"><tr id="sdrs_05_0807__row8989112518468"><th align="left" class="cellrowborder" valign="top" width="11.221122112211221%" id="mcps1.3.3.2.1.2.2.5.1.1"><p id="sdrs_05_0807__p3989152544617"><strong id="sdrs_05_0807__b11995185616">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.461846184618462%" id="mcps1.3.3.2.1.2.2.5.1.2"><p id="sdrs_05_0807__p69891253464"><strong id="sdrs_05_0807__b921123175813">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.152015201520154%" id="mcps1.3.3.2.1.2.2.5.1.3"><p id="sdrs_05_0807__p1298910251462"><strong id="sdrs_05_0807__b7520113205819">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.16501650165017%" id="mcps1.3.3.2.1.2.2.5.1.4"><p id="sdrs_05_0807__p1798918259466"><strong id="sdrs_05_0807__b186270334587">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sdrs_05_0807__row1998918251468"><td class="cellrowborder" valign="top" width="11.221122112211221%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="sdrs_05_0807__p16989225134616">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.461846184618462%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="sdrs_05_0807__p16989122518462">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.152015201520154%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="sdrs_05_0807__p0989102514466">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.16501650165017%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="sdrs_05_0807__p20255101518620">Specifies the tag key. The tag key of a resource must be unique.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0807__row1399152510466"><td class="cellrowborder" valign="top" width="11.221122112211221%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="sdrs_05_0807__p17991725204610">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.461846184618462%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="sdrs_05_0807__p199162504610">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.152015201520154%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="sdrs_05_0807__p899142564618">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.16501650165017%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="sdrs_05_0807__p14973122115616">Specifies the tag value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="sdrs_05_0807__ul399192514463"><li id="sdrs_05_0807__li19919255464">Example request<p id="sdrs_05_0807__p1113681715211"><a name="sdrs_05_0807__li19919255464"></a><a name="li19919255464"></a>POST https://{Endpoint}/v1/{project_id}/protected-instances/67a2cc7e-fb87-41a8-ba28-9c032abcaee1/tags/action</p>
|
|
<pre class="screen" id="sdrs_05_0807__screen4267121210527">{
|
|
"action": "delete",
|
|
"tags": [
|
|
{
|
|
"key": "key1"
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"value": "value3"
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sdrs_05_0807__section58051725144613"><h4 class="sectiontitle">Response</h4><ul id="sdrs_05_0807__ul1899117256462"><li id="sdrs_05_0807__li11991142514620">Parameter description<p id="sdrs_05_0807__p1999152519467"><a name="sdrs_05_0807__li11991142514620"></a><a name="li11991142514620"></a>None</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sdrs_05_0807__section4805102564610"><h4 class="sectiontitle">Returned Values</h4><ul id="sdrs_05_0807__ul1099142594620"><li id="sdrs_05_0807__li149914259469">Normal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sdrs_05_0807__table1380817254462" frame="border" border="1" rules="all"><thead align="left"><tr id="sdrs_05_0807__row10991425114619"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.5.2.1.1.1.3.1.1"><p id="sdrs_05_0807__p1199113253468"><strong id="sdrs_05_0807__b628362571915">Returned Value</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.5.2.1.1.1.3.1.2"><p id="sdrs_05_0807__p39911625134616"><strong id="sdrs_05_0807__b15693132621912">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sdrs_05_0807__row1099111252461"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.1.1.1.3.1.1 "><p id="sdrs_05_0807__p12991162510464">204</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.1.1.1.3.1.2 "><p id="sdrs_05_0807__p1299152510469">No Content</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="sdrs_05_0807__ul4991202534615"><li id="sdrs_05_0807__li0991112544611">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sdrs_05_0807__table19809152512466" frame="border" border="1" rules="all"><thead align="left"><tr id="sdrs_05_0807__row99913253465"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.5.3.1.1.1.3.1.1"><p id="sdrs_05_0807__p1699162564617"><strong id="sdrs_05_0807__b20591132915195">Returned Value</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.5.3.1.1.1.3.1.2"><p id="sdrs_05_0807__p09911125194610"><strong id="sdrs_05_0807__b929310302198">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sdrs_05_0807__row18991925164617"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0807__p7991225144614">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.3.1.1.1.3.1.2 "><p id="sdrs_05_0807__p199192514463">Invalid parameters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0807__row1799162534618"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0807__p9991725124620">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.3.1.1.1.3.1.2 "><p id="sdrs_05_0807__p119911825194616">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0807__row10991132515466"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0807__p9991122514466">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.3.1.1.1.3.1.2 "><p id="sdrs_05_0807__p20991152574610">Insufficient permission.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0807__row19911251467"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0807__p79918251467">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.3.1.1.1.3.1.2 "><p id="sdrs_05_0807__p6991172504612">The requested resource was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0807__row199142515468"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0807__p49911425194615">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.3.1.1.1.3.1.2 "><p id="sdrs_05_0807__p1299192504619">Internal 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="sdrs_05_0800.html">Tag Management</a></div>
|
|
</div>
|
|
</div>
|
|
|