doc-exports/docs/vpc/api-ref/vpc_api01_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

54 lines
3.8 KiB
HTML

<a name="vpc_api01_0005"></a><a name="vpc_api01_0005"></a>
<h1 class="topictitle1">Deleting a VPC</h1>
<div id="body43843091"><div class="section" id="vpc_api01_0005__section15422169"><h4 class="sectiontitle">Function</h4><p id="vpc_api01_0005__p61629497">This API is used to delete a VPC.</p>
</div>
<div class="section" id="vpc_api01_0005__section4581796"><h4 class="sectiontitle">URI</h4><p id="vpc_api01_0005__p12614125853615">DELETE /v1/{project_id}/vpcs/{vpc_id}</p>
<div class="p" id="vpc_api01_0005__p39480268221"><a href="#vpc_api01_0005__table47834478">Table 1</a> describes the parameters.
<div class="tablenoborder"><a name="vpc_api01_0005__table47834478"></a><a name="table47834478"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_api01_0005__table47834478" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="vpc_api01_0005__row29612923"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.1"><p id="vpc_api01_0005__p49836563">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_api01_0005__p10229816">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_api01_0005__p23308753">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_api01_0005__row8960839"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpc_api01_0005__p54739329">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_api01_0005__p4700647">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpc_api01_0005__p10487112">Specifies the project ID. </p>
</td>
</tr>
<tr id="vpc_api01_0005__row4220283"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpc_api01_0005__p6298672">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_api01_0005__p40430446">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpc_api01_0005__p53640668">Specifies the VPC ID, which uniquely identifies the VPC.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="vpc_api01_0005__section41236172"><h4 class="sectiontitle">Request Parameters</h4><p id="vpc_api01_0005__p4284774320370">None</p>
</div>
<div class="section" id="vpc_api01_0005__section16165724343"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="vpc_api01_0005__screen1779766143652">DELETE https://{Endpoint}/v1/{project_id}/vpcs/13551d6b-755d-4757-b956-536f674975c0</pre>
</div>
<div class="section" id="vpc_api01_0005__section35581233"><h4 class="sectiontitle">Response Parameters</h4><p id="vpc_api01_0005__p89184572373">None</p>
</div>
<div class="section" id="vpc_api01_0005__section6877123815417"><h4 class="sectiontitle">Example Response</h4><p id="vpc_api01_0005__p149381857193710">None</p>
</div>
<div class="section" id="vpc_api01_0005__section31981619"><h4 class="sectiontitle">Status Code</h4><p id="vpc_api01_0005__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
</div>
<div class="section" id="vpc_api01_0005__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_api01_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_api01_0000.html">Virtual Private Cloud</a></div>
</div>
</div>