Deletes a gateway endpoint.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates a sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteVpcGatewayEndpoint

The operation that you want to perform. Set the value to DeleteVpcGatewayEndpoint.

EndpointId String Yes vpce-bp1w1dmdqjpwul0v3****

The ID of the gateway endpoint.

RegionId String Yes cn-hangzhou

The region ID of the gateway endpoint.

You can call the DescribeRegions operation to query the most recent region list.

ClientToken String No 0c593ea1-3bea-11e9-b96b-88e9fe637760

The client token that is used to ensure the idempotence of the request. You can use the client to generate a value, but you must make sure that it is unique among different requests. ClientToken can contain only ASCII characters and cannot exceed 64 characters in length.

Note If you do not set this parameter, the system automatically uses RequestId as ClientToken. The ID of each request may be different.
DryRun Boolean No false

Specifies whether to precheck this request. Valid values:

  • true: prechecks the API request without deleting the gateway endpoint. The system checks whether your AccessKey pair is valid, whether the Resource Access Management (RAM) user is authorized, and whether required parameters are set. If the request fails the precheck, the corresponding error message is returned. If the request passes the precheck, the DryRunOperation error code is returned.
  • false: sends the API request. After the request passes the check, a 2XX HTTP status code is returned and the gateway endpoint is deleted. This is the default value.

Response parameters

Parameter Type Example Description 
RequestId String A1122D0F-7B3B-5445-BB19-17F27F97FE1C

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteVpcGatewayEndpoint
&EndpointId=vpce-bp1w1dmdqjpwul0v3****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DeleteVpcGatewayEndpointResponse>
  <RequestId>A1122D0F-7B3B-5445-BB19-17F27F97FE1C</RequestId>
</DeleteVpcGatewayEndpointResponse>

JSON format

{
    "RequestId": "A1122D0F-7B3B-5445-BB19-17F27F97FE1C"
}

Error codes

HttpCode Error code Error message Description
400 Forbbiden User not authorized to operate on the specified resource. The error message returned because you are unauthorized to perform the operation on the specified resource. Apply for the required permissions and try again.
400 InvalidRegionId.NotFound The regionId provided does not exist in our records. The error message returned because the specified region ID does not exist. Check whether the specified region ID is valid.

For a list of error codes, visit the API Error Center.