Deletes a customer gateway.

Debug

By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeleteCustomerGateway

The name of this action. Value:

DeleteCustomerGateway

CustomerGatewayId String Yes vpn-bp1q8bgx4xnkm2ogj0fiu

The ID of the customer gateway.

RegionId String Yes cn-shanghai

The ID of the region to which the customer gateway belongs.

To query the region ID, call DescribeRegions.

ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

A client token used to guarantee the idempotence of requests.

This parameter value is generated by the client and must be unique. It must be 1 to 64 ASCII characters in length.

Response parameters

Parameter Type Example value Description
RequestId String 606998F0-B94D-48FE-8316-ACA81BB230DA The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=DeleteCustomerGateway
&CustomerGatewayId=vpn-bp1q8bgx4xnkm2ogj0fiu
&RegionId=cn-shanghai
&<CommonParameters>
Response example
  • XML format

    <DeleteCustomerGatewayResesponse>
      <RequestId>606998F0-B94D-48FE-8316-ACA81BB230DA</RequestId>
    </DeleteCustomerGatewayResesponse>
    
  • JSON format

    {
    	"RequestId":"606998F0-B94D-48FE-8316-ACA81BB230DA"
    }

Error codes

HTTP status code Error code Error message Description
403 Forbbiden.SubUser User not authorized to operate on the specified resource as your account is created by another user. You are not authorized to operate on this resource. Please apply for the permission and try again later.
403 Forbidden User not authorized to operate on the specified resource. You are not authorized to operate on this resource. For more information, open a ticket.
404 InvalidCustomerGatewayInstanceId.NotFound The specified customer gateway instance id does not exist. The specified instance does not exist.

See common error codes