edit-icon download-icon

DeleteVpnGateway

Last Updated: Apr 12, 2018

Description

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.

Token String Yes

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.

For more information, see How to ensure idempotence.

VpnGatewayId Integer Yes The ID of the VPN gateway.

Response parameters

Name Type Description
RequestId String The ID of the request.

Error codes

See VPC API Error Center.

Examples

Request example

  1. https://vpc.aliyuncs.com/?Action=DeleteVpnGateway
  2. &RegionId=cn-hangzhou
  3. &VpnGatewayId=vpn-bp1q8bgx4xnkm2ogj0fiu
  4. &<CommonParameters>

Response example

XMLformat

  1. <DeleteVpnGateway>
  2. <RequestId>606998F0-B94D-48FE-8316-ACA81BB230DA</RequestId>
  3. </DeleteVpnGateway>

JSON format

  1. {
  2. "RequestId":"606998F0-B94D-48FE-8316-ACA81BB230DA"
  3. }
Thank you! We've received your feedback.