Deletes an endpoint.
Operation description
-
Before deleting an endpoint, delete the zones that have been added to the endpoint.
-
DeleteVpcEndpoint is an asynchronous operation. After you send a request, the system returns a request ID, but the endpoint is not yet deleted. The deletion task continues to run in the background. You can call GetVpcEndpointAttribute to query the deletion status of the endpoint:
If the endpoint is in the Deleting state, the endpoint is being deleted.
If the specified endpoint cannot be found, the endpoint is deleted.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:DeleteVpcEndpoint |
delete |
*VpcEndpoint
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the endpoint that you want to delete. You can call DescribeRegions to query the most recent region list. |
eu-west-1 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
false |
| EndpointId |
string |
Yes |
The ID of the endpoint that you want to delete. |
ep-hp33b2e43fays7s8**** |
| RegionId |
string |
Yes |
The region ID of the endpoint that you want to delete. Call the DescribeRegions operation to obtain the region ID. |
eu-west-1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
8D8992C1-6712-423C-BAC5-E5E817484C6B |
Examples
Success response
JSON format
{
"RequestId": "8D8992C1-6712-423C-BAC5-E5E817484C6B"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationDenied.EndpointProtected | The operation is not allowed because of EndpointProtected. | Managed protection is enabled for the endpoint. Operation is not allowed. |
| 400 | EndpointOperationDenied | The specified operation of endpoint is not allowed. | The specified operation of endpoint is not allowed. |
| 400 | EndpointDependenceViolation | The specified endpoint has dependent zone(s). | The specified endpoint has dependent zone(s). |
| 400 | EndpointNotFound | The specified Endpoint does not exist. | The specified Endpoint does not exist. |
| 400 | EndpointProtected | The specified Endpoint is protected. | |
| 400 | EndpointAssociatedVpc | The endpoint is associated with a vpc. | the endpoint has been associated with a vpc. delete the route entry of the endpoint first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.