Delete a VPN gateway.

Note You cannot delete a VPN gateway associated with an IPsec connection.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value:

DeleteVpnGateway

RegionId String Yes

The region of the VPN gateway.

You can obtain the region ID by calling the DescribeRegions API.

ClientToken String No

A client token used to guarantee the idempotence of requests. 

This parameter value is generated by the client and must be unique. It cannot exceed 64 ASCII characters.

VpnGatewayId String Yes

The ID of the VPN gateway.

Response parameters

Name Type Description
RequestId String The ID of the request.

Examples

Request example

https://vpc.aliyuncs.com/?Action=DeleteNatGateway
&RegionId=cn-beijing
&NatGatewayId=ngw-112za33e4
&CommonParameters
Response example
  • XML format

    <? xml version="1.0" encoding="UTF-8"? >
    <DeleteNatGatewayResponse>
        <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
    </DeleteNatGatewayResponse>
  • JSON format

    { 
        "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
    }