doc-exports/docs/natgw/api-ref/nat_api_0019.html
Qin Ying, Fan 388d58fc5d NATGW API 20230922 version
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com>
Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
2024-01-16 14:31:30 +00:00

68 lines
4.8 KiB
HTML

<a name="nat_api_0019"></a><a name="nat_api_0019"></a>
<h1 class="topictitle1">Deleting a NAT Gateway Tag</h1>
<div id="body1527752469160"><div class="section" id="nat_api_0019__section1771063173420"><h4 class="sectiontitle">Function</h4><p id="nat_api_0019__p48168373416">This API is idempotent.</p>
<p id="nat_api_0019__p10816831347">When a tag is deleted, it is not verified. 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.</p>
</div>
<div class="section" id="nat_api_0019__section07139323414"><h4 class="sectiontitle">URI</h4><p id="nat_api_0019__p14732041589">DELETE /v2.0/{project_id}/nat_gateways/{nat_gateway_id}/tags/{key}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="nat_api_0019__table13723123133419" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="nat_api_0019__row12819173123418"><th align="left" class="cellrowborder" valign="top" width="23.89238923892389%" id="mcps1.3.2.3.2.5.1.1"><p id="nat_api_0019__p624815530312">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.71217121712171%" id="mcps1.3.2.3.2.5.1.2"><p id="nat_api_0019__p1936450184812">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.322432243224323%" id="mcps1.3.2.3.2.5.1.3"><p id="nat_api_0019__p15018439484">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30.073007300730076%" id="mcps1.3.2.3.2.5.1.4"><p id="nat_api_0019__p1124817538319">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="nat_api_0019__row8820163103413"><td class="cellrowborder" valign="top" width="23.89238923892389%" headers="mcps1.3.2.3.2.5.1.1 "><p id="nat_api_0019__p7820839341">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="21.71217121712171%" headers="mcps1.3.2.3.2.5.1.2 "><p id="nat_api_0019__p108201935342">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="24.322432243224323%" headers="mcps1.3.2.3.2.5.1.3 "><p id="nat_api_0019__p20947458164912">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.073007300730076%" headers="mcps1.3.2.3.2.5.1.4 "><p id="nat_api_0019__p28201938340">Specifies the project ID.</p>
</td>
</tr>
<tr id="nat_api_0019__row28203373414"><td class="cellrowborder" valign="top" width="23.89238923892389%" headers="mcps1.3.2.3.2.5.1.1 "><p id="nat_api_0019__p682093193414">nat_gateway_id</p>
</td>
<td class="cellrowborder" valign="top" width="21.71217121712171%" headers="mcps1.3.2.3.2.5.1.2 "><p id="nat_api_0019__p68214393413">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="24.322432243224323%" headers="mcps1.3.2.3.2.5.1.3 "><p id="nat_api_0019__p894785804911">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.073007300730076%" headers="mcps1.3.2.3.2.5.1.4 "><p id="nat_api_0019__p14822203103418">Specifies the NAT gateway ID.</p>
</td>
</tr>
<tr id="nat_api_0019__row38221039344"><td class="cellrowborder" valign="top" width="23.89238923892389%" headers="mcps1.3.2.3.2.5.1.1 "><p id="nat_api_0019__p88221534341">key</p>
</td>
<td class="cellrowborder" valign="top" width="21.71217121712171%" headers="mcps1.3.2.3.2.5.1.2 "><p id="nat_api_0019__p14410191895013">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="24.322432243224323%" headers="mcps1.3.2.3.2.5.1.3 "><p id="nat_api_0019__p15947105818494">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.073007300730076%" headers="mcps1.3.2.3.2.5.1.4 "><p id="nat_api_0019__p15822163103410">Specifies the tag key.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="nat_api_0019__section47438383419"><h4 class="sectiontitle">Request</h4><p id="nat_api_0019__p482219393415">None</p>
</div>
<div class="section" id="nat_api_0019__section474410363418"><h4 class="sectiontitle">Response</h4><p id="nat_api_0019__p158220393414">None</p>
</div>
<div class="section" id="nat_api_0019__section1174433173418"><h4 class="sectiontitle">Examples</h4><ul id="nat_api_0019__ul7991222292"><li id="nat_api_0019__li1599722799">Example request<pre class="screen" id="nat_api_0019__screen28231832345">DELETE https://{VPC_endpoint}/v2.0/9ad601814ac94c80bf7bb9073ded66fc/nat_gateways/fe1a4cf0-27fe-4b97-a9b1-2c67c127f0e0/tags/key1</pre>
</li></ul>
</div>
<ul id="nat_api_0019__ul148570341196"><li id="nat_api_0019__li78571534893">Example response<pre class="screen" id="nat_api_0019__screen1482413343411">None (STATUS CODE 204)</pre>
</li></ul>
<div class="section" id="nat_api_0019__section2074714333417"><h4 class="sectiontitle">Status Code</h4><p id="nat_api_0019__p182433113418">See <a href="nat_api_0038.html">Status Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="nat_api_0015.html">Tags</a></div>
</div>
</div>