Create a VPN Gateway.
Request parameters
Name | Type | Required | Description |
---|---|---|---|
Action | String | Yes | The action to perform. Valid value: CreateVpnGateway |
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:
|
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. |
Examples
Request example
https://vpc.aliyuncs.com/?Action=DescribeNatGateways
&RegionId=cn-beijing
&&VpcId=vpc-bp1ub1yt9cvakoelj1y9c
&Bandwidth=5
&CommonParameters
Response example
-
XML format
<CreateVpnGatewayResponse> <Name>myVpn</Name> <VpnGatewayId>vpn-bp1q8bgx4xnkm2ogj0fiu</VpnGatewayId> <RequestId>54B48E3D-DF70-471B-AA93-08E683A1B457</RequestId> </CreateVpnGatewayResponse>
-
JSON format
{ "Name":"myVpn", "VpnGatewayId":"vpn-bp1q8bgx4xnkm2ogj0fiu", "RequestId"="54B48E3D-DF70-471B-AA93-08E683A1B457"; }