SnatEntryProps
Properties for defining a SnatEntry
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-snatentry
Initializer
using AlibabaCloud.SDK.ROS.CDK.Vpc;
new SnatEntryProps {
object SnatIp,
object SnatTableId,
object EipAffinity = null,
object SnatEntryName = null,
object SourceCidr = null,
object SourceVSwitchIds = null
};
Properties
Name | Type | Description |
---|---|---|
SnatIp |
object |
Property snatIp: The public IP address. |
SnatTableId |
object |
Property snatTableId: The ID of the SNAT table. |
EipAffinity |
object |
Property eipAffinity: Specifies whether to enable EIP affinity. |
SnatEntryName |
object |
Property snatEntryName: he name of the SNAT rule is 2-128 characters long and must start with a letter or Chinese, but cannot begin with HTTP:\/\/ or https:\/\/. |
SourceCidr |
object |
Property sourceCidr: Specifies the network segment of the switch. |
SourceVSwitchIds |
object |
Property sourceVSwitchIds: The ID of the VSwitch to access the Internet. |
SnatIp
Required
public object SnatIp { get; set; }
- Type: object
Property snatIp: The public IP address.
Separate multiple EIPs with commas.
SnatTableId
Required
public object SnatTableId { get; set; }
- Type: object
Property snatTableId: The ID of the SNAT table.
EipAffinity
Optional
public object EipAffinity { get; set; }
- Type: object
Property eipAffinity: Specifies whether to enable EIP affinity.
Valid values: 0: no 1: yes If EIP affinity is enabled and the SNAT entry is associated with multiple EIPs, a client uses the same EIP to access the Internet. Otherwise, the client uses an EIP selected from the associated EIPs to access the Internet.
SnatEntryName
Optional
public object SnatEntryName { get; set; }
- Type: object
Property snatEntryName: he name of the SNAT rule is 2-128 characters long and must start with a letter or Chinese, but cannot begin with HTTP:\/\/ or https:\/\/.
SourceCidr
Optional
public object SourceCidr { get; set; }
- Type: object
Property sourceCidr: Specifies the network segment of the switch.
For example, 10.0.0.1/24. This parameter and the SourceVSwtichId parameter are mutually exclusive and cannot appear at the same time.
SourceVSwitchIds
Optional
public object SourceVSwitchIds { get; set; }
- Type: object
Property sourceVSwitchIds: The ID of the VSwitch to access the Internet.