VpnGatewayProps
Properties for defining a VpnGateway
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-vpngateway
Initializer
using AlibabaCloud.SDK.ROS.CDK.Vpc;
new VpnGatewayProps {
object Bandwidth,
object VpcId,
object AutoPay = null,
object Description = null,
object DisasterRecoveryVSwitchId = null,
object EnableIpsec = null,
object EnableSsl = null,
object InstanceChargeType = null,
object Name = null,
object NetworkType = null,
object Period = null,
object SslConnections = null,
TagsProperty[] Tags = null,
object VpnType = null,
object VSwitchId = null
};
Properties
Name | Type | Description |
---|---|---|
Bandwidth |
object |
Property bandwidth: The public network bandwidth of the VPN gateway, in Mbps. |
VpcId |
object |
Property vpcId: VPC ID to which the VPN gateway belongs. |
AutoPay |
object |
Property autoPay: Whether to automatically pay the bill of the VPN gateway, the value: true: Automatically pays the bill for the VPN gateway. |
Description |
object |
Property description: Description of the VPN gateway. |
DisasterRecoveryVSwitchId |
object |
Property disasterRecoveryVSwitchId: The second vSwitch with which you want to associate the VPN gateway. |
EnableIpsec |
object |
Property enableIpsec: Whether to enable IPsec-VPN. |
EnableSsl |
object |
Property enableSsl: Enable the SSL-VPN function. |
InstanceChargeType |
object |
Property instanceChargeType: Accounting type of the VPN gateway, the value is: PREPAY, POSTPAY. |
Name |
object |
Property name: Name of the VPN gateway. |
NetworkType |
object |
Property networkType: The network type of the VPN gateway. |
Period |
object |
Property period: Purchase time, value: 1~9|12|24|36. |
SslConnections |
object |
Property sslConnections: The maximum number of clients allowed to connect at the same time. |
Tags |
TagsProperty[] |
Property tags: Tags to attach to instance. |
VpnType |
object |
Property vpnType: VPN gateway type. |
VSwitchId |
object |
Property vSwitchId: The ID of the VSwitch to which the VPN gateway belongs. |
Bandwidth
Required
public object Bandwidth { get; set; }
- Type: object
Property bandwidth: The public network bandwidth of the VPN gateway, in Mbps.
Value: 5|10|20|50|100|200.
VpcId
Required
public object VpcId { get; set; }
- Type: object
Property vpcId: VPC ID to which the VPN gateway belongs.
AutoPay
Optional
public object AutoPay { get; set; }
- Type: object
Property autoPay: Whether to automatically pay the bill of the VPN gateway, the value: true: Automatically pays the bill for the VPN gateway.
false: Does not automatically pay the bill for the VPN gateway. Default true.
Description
Optional
public object Description { get; set; }
- Type: object
Property description: Description of the VPN gateway.
The length is 2-256 characters and must start with a letter or Chinese, but cannot start with http:// or https://.
DisasterRecoveryVSwitchId
Optional
public object DisasterRecoveryVSwitchId { get; set; }
- Type: object
Property disasterRecoveryVSwitchId: The second vSwitch with which you want to associate the VPN gateway.
If you call this operation in a region that supports the dual-tunnel mode, this parameter is required. You need to specify two vSwitches in different zones from the VPC associated with the VPN gateway to implement disaster recovery across zones. For a region that supports only one zone, disaster recovery across zones is not supported. We recommend that you specify two vSwitches in the zone to implement high availability. You can specify the same vSwitch. For more information about the regions and zones that support the dual-tunnel mode, see Upgrade a VPN gateway to enable the dual-tunnel mode.
EnableIpsec
Optional
public object EnableIpsec { get; set; }
- Type: object
Property enableIpsec: Whether to enable IPsec-VPN.
The IPsec-VPN feature provides a site-to-site connection. You can securely connect your local data center network to a private network or two proprietary networks by creating an IPsec tunnel. Value: True (default): Enables the IPsec-VPN feature. False: The IPsec-VPN function is not enabled.
EnableSsl
Optional
public object EnableSsl { get; set; }
- Type: object
Property enableSsl: Enable the SSL-VPN function.
Provide point-to-site VPN connection, no need to configure customer gateway, terminal directly access. Value: True: Enable SSL-VPN. False (default): Does not enable SSL-VPN.
InstanceChargeType
Optional
public object InstanceChargeType { get; set; }
- Type: object
Property instanceChargeType: Accounting type of the VPN gateway, the value is: PREPAY, POSTPAY.
Name
Optional
public object Name { get; set; }
- Type: object
Property name: Name of the VPN gateway.
The default value is the ID of the VPN gateway. The length is 2~100 English or Chinese characters. It must start with a large or small letter or Chinese. It can contain numbers, underscores (_) and dashes (-). It cannot start with http:// or https://.
NetworkType
Optional
public object NetworkType { get; set; }
- Type: object
Property networkType: The network type of the VPN gateway.
Valid values: public|private
Period
Optional
public object Period { get; set; }
- Type: object
Property period: Purchase time, value: 1~9|12|24|36.
When the value of the InstanceChargeType parameter is PREPAY, this parameter is mandatory.
SslConnections
Optional
public object SslConnections { get; set; }
- Type: object
Property sslConnections: The maximum number of clients allowed to connect at the same time.
Tags
Optional
public TagsProperty[] Tags { get; set; }
- Type: TagsProperty[]
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.
VpnType
Optional
public object VpnType { get; set; }
- Type: object
Property vpnType: VPN gateway type.
VSwitchId
Optional
public object VSwitchId { get; set; }
- Type: object
Property vSwitchId: The ID of the VSwitch to which the VPN gateway belongs.