Create a VPN Gateway.

Request parameters

Name  Type Required Description
Action  String  Yes

The action to perform.  Valid value: 


RegionId String   Yes

The region of the VPN Gateway.

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

VpcId String   Yes

The ID of the VPC to which the VPN Gateway belongs.

InstanceChargeType String No
The billing type of the VPN Gateway. Valid value:
  • PrePay: Monthly subscription.

  • Postpay: Pay-As-You-Go based on the traffic.

Period Integer No

Purchase period. Valid value: 1-9 | 12 | 24 | 36

Autopay Boolean  No

Whether to pay the bill automatically. Valid values:

true | false (default)

Bandwidth Integer Yes

The bandwidth in Mbps of the VPN Gateway. Valid values:

5 |10 | 20 | 50 | 100

EnableIpsec Boolean  No

Whether to enable the IPsec-VPN feature. The IPsec-VPN feature provides site-to-site connection. You can create an IPsec tunnel to connect a local data center to a VPC or connect two VPCs. Valid value:

true (default) | false

EnableSsl Boolean  No

Select whether to enable the SSL-VPN feature. Point-to-site VPN connection is provided and customer gateway configuration is not needed. Valid values:

true | false (default)

SslConnections Integer No The maximum number of clients allowed to connect simultaneously.

Response parameters

Name Type Description
RequestId String The ID of the request.
VpnGatewayId String The ID of the VPN Gateway.
Name String The name of the VPN Gateway.
OrderId String The ID of the order. Go to the console to complete the payment.


Request example
Response example
  • XML format

  • JSON format