doc-exports/docs/vpcep/api-ref/vpcep_06_0305.html
Qin Ying, Fan ef5d2cd3cf VPCEP API 20230307 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>
2023-06-14 11:56:35 +00:00

53 lines
4.7 KiB
HTML

<a name="vpcep_06_0305"></a><a name="vpcep_06_0305"></a>
<h1 class="topictitle1">Deleting a VPC Endpoint</h1>
<div id="body37967333"><div class="section" id="vpcep_06_0305__section23326136"><a name="vpcep_06_0305__section23326136"></a><a name="section23326136"></a><h4 class="sectiontitle">Function</h4><p class="msonormal" id="vpcep_06_0305__p55455104">This API is used to delete a VPC endpoint.</p>
<div class="note" id="vpcep_06_0305__note91020528135"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="vpcep_06_0305__p1287461961410">This API is asynchronous. If it is successfully invoked, status code <strong id="vpcep_06_0305__b137098053310557">200</strong> is returned, indicating that the request has been successfully delivered. It takes 1 to 2 minutes to delete a VPC endpoint. You can view the deletion result by performing operations in <a href="vpcep_06_0202.html">Querying Details About a VPC Endpoint Service</a>.</p>
</div></div>
</div>
<div class="section" id="vpcep_06_0305__section8608636"><h4 class="sectiontitle">URI</h4><p class="msonormal" id="vpcep_06_0305__p62678444">DELETE /v1/{project_id}/vpc-endpoints/{vpc_endpoint_id}</p>
<div class="msonormal" id="vpcep_06_0305__p1161327111017"><a href="#vpcep_06_0305__table2452701">Table 1</a> describes parameters in this URI.
<div class="tablenoborder"><a name="vpcep_06_0305__table2452701"></a><a name="table2452701"></a><table cellpadding="4" cellspacing="0" summary="" id="vpcep_06_0305__table2452701" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="vpcep_06_0305__row24297719"><th align="left" class="cellrowborder" valign="top" width="32.65%" id="mcps1.3.2.3.2.2.4.1.1"><p id="vpcep_06_0305__p21958222"><strong id="vpcep_06_0305__b9157810591">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.529999999999998%" id="mcps1.3.2.3.2.2.4.1.2"><p id="vpcep_06_0305__p33785549"><strong id="vpcep_06_0305__b1966812480581">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40.82%" id="mcps1.3.2.3.2.2.4.1.3"><p id="vpcep_06_0305__p52274973"><strong id="vpcep_06_0305__b3452650145819">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="vpcep_06_0305__row6414438"><td class="cellrowborder" valign="top" width="32.65%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpcep_06_0305__p49807439">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="vpcep_06_0305__p7870720">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="40.82%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpcep_06_0305__p33548578">Specifies the project ID. For details about how to obtain the project ID, see <a href="vpcep_08_0003.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="vpcep_06_0305__row33501748"><td class="cellrowborder" valign="top" width="32.65%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpcep_06_0305__p29287106">vpc_endpoint_id</p>
</td>
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="vpcep_06_0305__p23445396">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="40.82%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpcep_06_0305__p20028947">Specifies the ID of the VPC endpoint.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="vpcep_06_0305__section10368864"><h4 class="sectiontitle">Request</h4><ul id="vpcep_06_0305__ul14882654123012"><li class="msonormal" id="vpcep_06_0305__li17882115493016">Parameter description<p class="msonormal" id="vpcep_06_0305__p1446773325016"><a name="vpcep_06_0305__li17882115493016"></a><a name="li17882115493016"></a>None</p>
</li><li id="vpcep_06_0305__li26813226351">Example request<div class="p" id="vpcep_06_0305__p7758312912"><a name="vpcep_06_0305__li26813226351"></a><a name="li26813226351"></a>This request is to delete the VPC endpoint whose ID is <strong id="vpcep_06_0305__b4943133142218">4189d3c2-8882-4871-a3c2-d380272eed83</strong>.<pre class="codeblock" id="vpcep_06_0305__codeblock18329829799">DELETE https://{endpoint}/v1/{project_id}/vpc-endpoints/4189d3c2-8882-4871-a3c2-d380272eed83</pre>
</div>
</li></ul>
</div>
<div class="section" id="vpcep_06_0305__section34571669"><h4 class="sectiontitle">Response</h4><p class="msonormal" id="vpcep_06_0305__p9493836">None</p>
</div>
<div class="section" id="vpcep_06_0305__section48841790"><h4 class="sectiontitle">Status Codes</h4><p class="msonormal" id="vpcep_06_0305__p12035394">See <a href="vpcep_08_0001.html">Status Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpcep_06_0300.html">APIs for Managing VPC Endpoints</a></div>
</div>
</div>