doc-exports/docs/dws/api-ref/dws_02_0051.html
Lu, Huayi 24f47208ec DWS API 831.100 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-10-07 10:18:56 +00:00

105 lines
8.3 KiB
HTML

<a name="EN-US_TOPIC_0000001185991700"></a><a name="EN-US_TOPIC_0000001185991700"></a>
<h1 class="topictitle1">Deleting a Resource Tag</h1>
<div id="body1524298666228"><div class="section" id="EN-US_TOPIC_0000001185991700__section14911175173418"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001185991700__p69947517343">This API is used to delete a resource tag for a resource.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001185991700__section99116593419"><h4 class="sectiontitle">URI</h4><pre class="screen" id="EN-US_TOPIC_0000001185991700__screen7131920218">DELETE /v1.0/{project_id}/clusters/{resource_id}/tags/{key}</pre>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001185991700__table59188517349" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001185991700__row4995115113419"><th align="left" class="cellrowborder" valign="top" width="14.85148514851485%" id="mcps1.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0000001185991700__p399514583415"><strong id="EN-US_TOPIC_0000001185991700__b20452210134518">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.85148514851485%" id="mcps1.3.2.3.2.5.1.2"><p id="EN-US_TOPIC_0000001185991700__p9995554349"><strong id="EN-US_TOPIC_0000001185991700__b84235270684256">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.891089108910892%" id="mcps1.3.2.3.2.5.1.3"><p id="EN-US_TOPIC_0000001185991700__p10995195113417"><strong id="EN-US_TOPIC_0000001185991700__b460945491113713">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59.4059405940594%" id="mcps1.3.2.3.2.5.1.4"><p id="EN-US_TOPIC_0000001185991700__p69958513349"><strong id="EN-US_TOPIC_0000001185991700__b1422851474515">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001185991700__row1899518515340"><td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001185991700__p499735173412">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001185991700__p9997754345">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.891089108910892%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001185991700__p2997125193411">String</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001185991700__p11997257345">Project ID. For details about how to obtain the project ID, see <a href="dws_02_0011.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001185991700__row18997135123413"><td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001185991700__p6997650347">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001185991700__p12997205143417">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.891089108910892%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001185991700__p1699785203415">String</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001185991700__p99976514345">Resource ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001185991700__row299715593419"><td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001185991700__p139973515341">key</p>
</td>
<td class="cellrowborder" valign="top" width="14.85148514851485%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001185991700__p139974593413">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.891089108910892%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001185991700__p999719518344">String</p>
</td>
<td class="cellrowborder" valign="top" width="59.4059405940594%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001185991700__p1199716517344">Tag key.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001185991700__section69453820306"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000001185991700__p163181141193019">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001185991700__section5249174583018"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000001185991700__p1238164819306">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001185991700__section493018513415"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0000001185991700__screen1799716511342">DELETE /v1.0/89cd04f168b84af6be287f71730fdb4b/clusters/7d85f602-a948-4a30-afd4-e84f47471c15/tags/DEV</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000001185991700__section1267862233212"><h4 class="sectiontitle">Response Message</h4><p id="EN-US_TOPIC_0000001185991700__p951713417312">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001185991700__section119321759349"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001185991700__table793510518343" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001185991700__row15997256340"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.7.2.1.3.1.1"><p id="EN-US_TOPIC_0000001185991700__p79971958343"><strong id="EN-US_TOPIC_0000001185991700__b84235270615436">Returned Value</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.7.2.1.3.1.2"><p id="EN-US_TOPIC_0000001185991700__p599715583418"><strong id="EN-US_TOPIC_0000001185991700__b6465525184513">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001185991700__row949119156312"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001185991700__p1149211153316">204</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001185991700__p16492715123110">The deletion is successful.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001185991700__row199976593411"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001185991700__p1999715518341">400</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001185991700__p599716513347">Invalid parameter.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001185991700__row16997155113419"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001185991700__p109970523413">401</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001185991700__p699715103413">Authentication failed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001185991700__row199714583412"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001185991700__p129971158344">403</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001185991700__p89976518342">Insufficient permission.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001185991700__row799735153417"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001185991700__p1599710573417">404</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001185991700__p2997175133418">The requested resource was not found or the key does not exist.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001185991700__row9997155103420"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001185991700__p899715593413">500</p>
</td>
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001185991700__p49977533419">Internal service error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_02_0045.html">Tag Management APIs</a></div>
</div>
</div>