Udostępnij za pośrednictwem


ArmNetworkModelFactory.InboundNatRuleData Method

Definition

Initializes a new instance of InboundNatRuleData.

public static Azure.ResourceManager.Network.InboundNatRuleData InboundNatRuleData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.ETag? etag = default, Azure.Core.ResourceIdentifier frontendIPConfigurationId = default, Azure.ResourceManager.Network.NetworkInterfaceIPConfigurationData backendIPConfiguration = default, Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol? protocol = default, int? frontendPort = default, int? backendPort = default, int? idleTimeoutInMinutes = default, bool? enableFloatingIP = default, bool? enableTcpReset = default, int? frontendPortRangeStart = default, int? frontendPortRangeEnd = default, Azure.Core.ResourceIdentifier backendAddressPoolId = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default);
static member InboundNatRuleData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.ETag> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Network.NetworkInterfaceIPConfigurationData * Nullable<Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<int> * Nullable<int> * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> -> Azure.ResourceManager.Network.InboundNatRuleData
Public Shared Function InboundNatRuleData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional frontendIPConfigurationId As ResourceIdentifier = Nothing, Optional backendIPConfiguration As NetworkInterfaceIPConfigurationData = Nothing, Optional protocol As Nullable(Of LoadBalancingTransportProtocol) = Nothing, Optional frontendPort As Nullable(Of Integer) = Nothing, Optional backendPort As Nullable(Of Integer) = Nothing, Optional idleTimeoutInMinutes As Nullable(Of Integer) = Nothing, Optional enableFloatingIP As Nullable(Of Boolean) = Nothing, Optional enableTcpReset As Nullable(Of Boolean) = Nothing, Optional frontendPortRangeStart As Nullable(Of Integer) = Nothing, Optional frontendPortRangeEnd As Nullable(Of Integer) = Nothing, Optional backendAddressPoolId As ResourceIdentifier = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing) As InboundNatRuleData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

etag
Nullable<ETag>

A unique read-only string that changes whenever the resource is updated.

frontendIPConfigurationId
ResourceIdentifier

A reference to frontend IP addresses.

backendIPConfiguration
NetworkInterfaceIPConfigurationData

A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP.

protocol
Nullable<LoadBalancingTransportProtocol>

The reference to the transport protocol used by the load balancing rule.

frontendPort
Nullable<Int32>

The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534.

backendPort
Nullable<Int32>

The port used for the internal endpoint. Acceptable values range from 1 to 65535.

idleTimeoutInMinutes
Nullable<Int32>

The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP.

enableFloatingIP
Nullable<Boolean>

Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.

enableTcpReset
Nullable<Boolean>

Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.

frontendPortRangeStart
Nullable<Int32>

The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534.

frontendPortRangeEnd
Nullable<Int32>

The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534.

backendAddressPoolId
ResourceIdentifier

A reference to backendAddressPool resource.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the inbound NAT rule resource.

Returns

A new InboundNatRuleData instance for mocking.

Applies to