doc-exports/docs/vpc/api-ref/vpc_subnet01_0005.html
Qin Ying, Fan 310d2d9eb1 VPC API 20230106 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-02-06 08:38:37 +00:00

62 lines
4.6 KiB
HTML

<a name="vpc_subnet01_0005"></a><a name="vpc_subnet01_0005"></a>
<h1 class="topictitle1">Deleting a Subnet</h1>
<div id="body59721402"><div class="section" id="vpc_subnet01_0005__section36031167"><h4 class="sectiontitle">Function</h4><p id="vpc_subnet01_0005__p5595356">This API is used to delete a subnet.</p>
</div>
<div class="section" id="vpc_subnet01_0005__section55845053"><h4 class="sectiontitle">URI</h4><p id="vpc_subnet01_0005__p10919327015">DELETE /v1/{project_id}/vpcs/{vpc_id}/subnets/{subnet_id}</p>
<div class="p" id="vpc_subnet01_0005__p128625193717"><a href="#vpc_subnet01_0005__table23279683">Table 1</a> describes the parameters.
<div class="tablenoborder"><a name="vpc_subnet01_0005__table23279683"></a><a name="table23279683"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet01_0005__table23279683" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="vpc_subnet01_0005__row57883273"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.1"><p id="vpc_subnet01_0005__p58033516">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.2"><p id="vpc_subnet01_0005__p3094327">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.3"><p id="vpc_subnet01_0005__p49313939">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_subnet01_0005__row35006119"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpc_subnet01_0005__p16923420">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="vpc_subnet01_0005__p28619802">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpc_subnet01_0005__p10487112">Specifies the project ID. </p>
</td>
</tr>
<tr id="vpc_subnet01_0005__row29689498122133"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpc_subnet01_0005__p37198247122136">vpc_id</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="vpc_subnet01_0005__p60268063122136">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpc_subnet01_0005__p49874919122136">Specifies the ID of the subnet VPC.</p>
</td>
</tr>
<tr id="vpc_subnet01_0005__row60087944"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpc_subnet01_0005__p35285314">subnet_id</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="vpc_subnet01_0005__p39538176">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpc_subnet01_0005__p48475691">Specifies the subnet ID, which uniquely identifies the subnet.</p>
<p id="vpc_subnet01_0005__p11767182811447">If you use the management console, the value of this parameter is the <strong id="vpc_subnet01_0005__vpc_subnet01_0002_b195522519461">Network ID</strong> value.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="vpc_subnet01_0005__section32843429"><h4 class="sectiontitle">Request Parameters</h4><p id="vpc_subnet01_0005__p12345400203926">None</p>
</div>
<div class="section" id="vpc_subnet01_0005__section17288181314612"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="vpc_subnet01_0005__screen11064229144112">DELETE https://{Endpoint}/v1/{project_id}/vpcs/{vpc_id}/subnets/4779ab1c-7c1a-44b1-a02e-93dfc361b32d</pre>
</div>
<div class="section" id="vpc_subnet01_0005__section27155410"><h4 class="sectiontitle">Response Parameters</h4><p id="vpc_subnet01_0005__p13741104613010">None</p>
</div>
<div class="section" id="vpc_subnet01_0005__section11535930761"><h4 class="sectiontitle">Example Response</h4><p id="vpc_subnet01_0005__p12742246405">None</p>
</div>
<div class="section" id="vpc_subnet01_0005__section31981619"><h4 class="sectiontitle">Status Code</h4><p id="vpc_subnet01_0005__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
</div>
<div class="section" id="vpc_subnet01_0005__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_subnet01_0005__p7233105282813">See <a href="vpc_api_0003.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_subnet01_0000.html">Subnet</a></div>
</div>
</div>