Class NatRule
Manages a Load Balancer NAT Rule.
NOTE: This resource cannot be used with with virtual machine scale sets, instead use the
azure.lb.NatPoolresource.
NOTE When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration Attached
Inherited Members
Namespace: Pulumi.Azure.Lb
Assembly: Pulumi.Azure.dll
Syntax
public class NatRule : CustomResource
Constructors
View SourceNatRule(String, NatRuleArgs, CustomResourceOptions)
Create a NatRule resource with the given unique name, arguments, and options.
Declaration
public NatRule(string name, NatRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| NatRuleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBackendIpConfigurationId
Declaration
public Output<string> BackendIpConfigurationId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
BackendPort
The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
Declaration
public Output<int> BackendPort { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
EnableFloatingIp
Are the Floating IPs enabled for this Load Balncer Rule? A "floating” IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group. Defaults to false.
Declaration
public Output<bool> EnableFloatingIp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
EnableTcpReset
Is TCP Reset enabled for this Load Balancer Rule? Defaults to false.
Declaration
public Output<bool?> EnableTcpReset { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
FrontendIpConfigurationId
Declaration
public Output<string> FrontendIpConfigurationId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FrontendIpConfigurationName
The name of the frontend IP configuration exposing this rule.
Declaration
public Output<string> FrontendIpConfigurationName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FrontendPort
The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
Declaration
public Output<int> FrontendPort { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
IdleTimeoutInMinutes
Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
Declaration
public Output<int> IdleTimeoutInMinutes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
LoadbalancerId
The ID of the Load Balancer in which to create the NAT Rule.
Declaration
public Output<string> LoadbalancerId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Specifies the name of the NAT Rule.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Protocol
The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
Declaration
public Output<string> Protocol { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which to create the resource.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, NatRuleState, CustomResourceOptions)
Get an existing NatRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static NatRule Get(string name, Input<string> id, NatRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| NatRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| NatRule |