forked from laiweijian4/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>
122 lines
9.6 KiB
HTML
122 lines
9.6 KiB
HTML
<a name="sdrs_05_0804"></a><a name="sdrs_05_0804"></a>
|
|
|
|
<h1 class="topictitle1">Deleting a Protected Instance Tag</h1>
|
|
<div id="body1548216603526"><div class="section" id="sdrs_05_0804__section586762416474"><h4 class="sectiontitle">Function</h4><p id="sdrs_05_0804__p14941182424715">This API is idempotent.</p>
|
|
<ul id="sdrs_05_0804__ul142113301250"><li id="sdrs_05_0804__li2021183002520">During deletion, the tag character set is not verified. The URI must be encoded before the API is invoked. Other services need to decode the URI.<div class="note" id="sdrs_05_0804__note580742002519"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="sdrs_05_0804__p2086643462515">Select a desired tool for URI encoding.</p>
|
|
</div></div>
|
|
</li><li id="sdrs_05_0804__li8212330102517">The tag key cannot be left blank or be an empty string. If the key of the tag to be deleted does not exist, 404 will be returned.</li></ul>
|
|
</div>
|
|
<div class="section" id="sdrs_05_0804__section148681724194714"><h4 class="sectiontitle">URI</h4><ul id="sdrs_05_0804__ul2094192414475"><li id="sdrs_05_0804__li89411624194714">URI format<p id="sdrs_05_0804__p1494162416470"><a name="sdrs_05_0804__li89411624194714"></a><a name="li89411624194714"></a>DELETE /v1/{project_id}/protected-instances/{protected_instance_id}/tags/{key}</p>
|
|
</li><li id="sdrs_05_0804__li16941132464710">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sdrs_05_0804__table19869724104710" frame="border" border="1" rules="all"><thead align="left"><tr id="sdrs_05_0804__row9941182444715"><th align="left" class="cellrowborder" valign="top" width="19.388061193880613%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="sdrs_05_0804__p29421924124710"><strong id="sdrs_05_0804__b842352706162023">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.447755224477554%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="sdrs_05_0804__p1942182444714"><strong id="sdrs_05_0804__b84235270615447">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.268673132686734%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="sdrs_05_0804__p1094292474718"><strong id="sdrs_05_0804__b84235270615453">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.89551044895511%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="sdrs_05_0804__p494216248471"><strong id="sdrs_05_0804__b84235270615457">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sdrs_05_0804__row17942152417472"><td class="cellrowborder" valign="top" width="19.388061193880613%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sdrs_05_0804__p20942192416476">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.447755224477554%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sdrs_05_0804__p1194292474719">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.268673132686734%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sdrs_05_0804__p14942112410476">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.89551044895511%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sdrs_05_0804__p14942824134715">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0804__row69427244479"><td class="cellrowborder" valign="top" width="19.388061193880613%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sdrs_05_0804__p16942624134713">protected_instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.447755224477554%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sdrs_05_0804__p0942182434710">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.268673132686734%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sdrs_05_0804__p1694232484719">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.89551044895511%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sdrs_05_0804__p394216244475">Specifies the ID of a protected instance.</p>
|
|
<p id="sdrs_05_0804__p1824552055516">For details, see <a href="sdrs_05_0503.html">Querying Protected Instances</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0804__row594212484714"><td class="cellrowborder" valign="top" width="19.388061193880613%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sdrs_05_0804__p1994242417477">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.447755224477554%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sdrs_05_0804__p99423241472">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.268673132686734%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sdrs_05_0804__p1694242474714">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.89551044895511%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sdrs_05_0804__p20942172419475">Specifies the tag key.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sdrs_05_0804__section387732419479"><h4 class="sectiontitle">Request</h4><ul id="sdrs_05_0804__ul1996014164594"><li id="sdrs_05_0804__li206610554612">Request parameters<p id="sdrs_05_0804__p184231451779"><a name="sdrs_05_0804__li206610554612"></a><a name="li206610554612"></a>None</p>
|
|
</li><li id="sdrs_05_0804__li8960316115911">Example request<p id="sdrs_05_0804__p20510153185915"><a name="sdrs_05_0804__li8960316115911"></a><a name="li8960316115911"></a>DELETE https://{Endpoint}/v1/{project_id}/protected-instances/67a2cc7e-fb87-41a8-ba28-9c032abcaee1/tags/DEV</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sdrs_05_0804__section794735716551"><h4 class="sectiontitle">Response</h4><ul id="sdrs_05_0804__ul0212141811576"><li id="sdrs_05_0804__li1186519233713">Response parameter<p id="sdrs_05_0804__p16711729278"><a name="sdrs_05_0804__li1186519233713"></a><a name="li1186519233713"></a>None</p>
|
|
</li><li id="sdrs_05_0804__li162128186573">Example response<p id="sdrs_05_0804__p11767172315614"><a name="sdrs_05_0804__li162128186573"></a><a name="li162128186573"></a>None</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sdrs_05_0804__section8878224104719"><h4 class="sectiontitle"><strong id="sdrs_05_0804__b842352706175024">Returned Value</strong></h4><ul id="sdrs_05_0804__ul3943424154711"><li id="sdrs_05_0804__li20943152424713">Normal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sdrs_05_0804__table688042414711" frame="border" border="1" rules="all"><thead align="left"><tr id="sdrs_05_0804__row15943192412479"><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_0804__p1943102424714"><strong id="sdrs_05_0804__b308046617">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_0804__p199431524144718"><strong id="sdrs_05_0804__b1128765199">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sdrs_05_0804__row7943224104718"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.1.1.1.3.1.1 "><p id="sdrs_05_0804__p14943824124711">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_0804__p89431524154710">No Content</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="sdrs_05_0804__ul7943724124713"><li id="sdrs_05_0804__li14943182404714">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sdrs_05_0804__table488272434713" frame="border" border="1" rules="all"><thead align="left"><tr id="sdrs_05_0804__row7943624134715"><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_0804__p894316243477"><strong id="sdrs_05_0804__b82839864">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_0804__p4943172414470"><strong id="sdrs_05_0804__b1185669954">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sdrs_05_0804__row3943132411476"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0804__p18943122410473">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_0804__p69431024114719">Invalid parameters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0804__row15943102413472"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0804__p10943224194715">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_0804__p2094332454713">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0804__row169431324144718"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0804__p5943142413478">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_0804__p12944424194720">Insufficient permission.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0804__row394412417470"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0804__p15944172418479">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_0804__p494419248474">The requested resource was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sdrs_05_0804__row7944524194717"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.3.1.1.1.3.1.1 "><p id="sdrs_05_0804__p3944132413479">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_0804__p49441024154715">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>
|
|
|