forked from docs/doc-exports
Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
80 lines
6.6 KiB
HTML
80 lines
6.6 KiB
HTML
<a name="dns_api_67002"></a><a name="dns_api_67002"></a>
|
|
|
|
<h1 class="topictitle1">Deleting a Resource Tag</h1>
|
|
<div id="body1532574607830"><div class="section" id="dns_api_67002__section2763065016101"><h4 class="sectiontitle">Function</h4><p id="dns_api_67002__a5d72130f13e04d60a9575a1cc0dbb70b">Delete a resource tag.</p>
|
|
<p id="dns_api_67002__ab14d8c324ae94a1ab7a2b23f5df13183">The API is idempotent.</p>
|
|
<p id="dns_api_67002__en-us_topic_0101709621_p384316420382">When you delete a tag that does not exist, the system reports that the tag does not exist.</p>
|
|
</div>
|
|
<div class="section" id="dns_api_67002__section53701671161015"><h4 class="sectiontitle">URI</h4><p id="dns_api_67002__p2304204202759">DELETE /v2/{project_id}/{resource_type}/{resource_id}/tags/{key}</p>
|
|
<div class="p" id="dns_api_67002__p20381244104518">For details, see <a href="#dns_api_67002__table6099729418149">Table 1</a>.
|
|
<div class="tablenoborder"><a name="dns_api_67002__table6099729418149"></a><a name="table6099729418149"></a><table cellpadding="4" cellspacing="0" summary="" id="dns_api_67002__table6099729418149" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the URI</caption><thead align="left"><tr id="dns_api_67002__row3442661918149"><th align="left" class="cellrowborder" valign="top" width="22.64%" id="mcps1.3.2.3.2.2.5.1.1"><p id="dns_api_67002__p3709279118149"><strong id="dns_api_67002__b1645473612715">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.37%" id="mcps1.3.2.3.2.2.5.1.2"><p id="dns_api_67002__p5172606218149"><strong id="dns_api_67002__b8456143716275">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.349999999999998%" id="mcps1.3.2.3.2.2.5.1.3"><p id="dns_api_67002__p2906151418149"><strong id="dns_api_67002__b17463163811278">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="42.64%" id="mcps1.3.2.3.2.2.5.1.4"><p id="dns_api_67002__p517246718149"><strong id="dns_api_67002__b1641194017276">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dns_api_67002__row1631668818149"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67002__p4658337018149">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67002__p1515661618149">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67002__p1972638718149">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67002__p5433349018149">Project ID. You can obtain it in <a href="dns_api_80007.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dns_api_67002__row1923936518149"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67002__p1488470218149">resource_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67002__p6481017518149">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67002__p1513281718149">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67002__p1387412434220">Resource type.</p>
|
|
<ul id="dns_api_67002__ul3997124517225"><li id="dns_api_67002__dns_api_67001_li166466010217">DNS-public_zone</li><li id="dns_api_67002__dns_api_67001_li1264680132118">DNS-private_zone</li><li id="dns_api_67002__dns_api_67001_li136469010215">DNS-public_recordset</li><li id="dns_api_67002__dns_api_67001_li176467015215">DNS-private_recordset</li><li id="dns_api_67002__dns_api_67001_li126461909212">DNS-ptr_record</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dns_api_67002__row1082100911220"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67002__p408654311220">resource_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67002__p6257460611220">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67002__p3537835811220">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67002__p4707473411220">Resource ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dns_api_67002__row41443070202518"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67002__p16287090202522">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67002__p5844905202518">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67002__p3675282202518">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67002__p38832579202531">Tag key, which cannot be left blank or be an empty string</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dns_api_67002__section44958995161021"><h4 class="sectiontitle">Request</h4><ul id="dns_api_67002__ul1452214248273"><li id="dns_api_67002__li4522172492716">Parameter description<p id="dns_api_67002__p12501122810278"><a name="dns_api_67002__li4522172492716"></a><a name="li4522172492716"></a>None</p>
|
|
</li></ul>
|
|
<ul id="dns_api_67002__ul1551282619270"><li id="dns_api_67002__li195123265272">Example request<div class="p" id="dns_api_67002__p6792724194811"><a name="dns_api_67002__li195123265272"></a><a name="li195123265272"></a>Delete tags for the private zone whose ID is ff8080825b8fc86c015b94bc6f8712c3:<pre class="codeblock" id="dns_api_67002__codeblock042122164818">DELETE https://{DNS_Endpoint}/v2/{project_id}/DNS-private_zone/ff8080825b8fc86c015b94bc6f8712c3/tags/{key}</pre>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dns_api_67002__section40090803161031"><h4 class="sectiontitle">Response</h4><p id="dns_api_67002__afed808239b8446efb2de45b1d34ae627">None</p>
|
|
</div>
|
|
<div class="section" id="dns_api_67002__section9249181042119"><h4 class="sectiontitle">Returned Value</h4><p id="dns_api_67002__dns_api_61001_p711102924515">If a 2xx status code is returned, for example, 200, 202, or 204, the request is successful.</p>
|
|
<p id="dns_api_67002__dns_api_61001_p18506102624518">For details, see <a href="dns_api_80002.html">Status Code</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_67000.html">Tag Management</a></div>
|
|
</div>
|
|
</div>
|
|
|