NatPool
Manages a Load Balancer NAT pool.
NOTE: This resource cannot be used with with virtual machines, instead use the
azure.lb.NatRuleresource.NOTE When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration Attached
Create a NatPool Resource
new NatPool(name: string, args: NatPoolArgs, opts?: CustomResourceOptions);def NatPool(resource_name, opts=None, backend_port=None, frontend_ip_configuration_name=None, frontend_port_end=None, frontend_port_start=None, loadbalancer_id=None, name=None, protocol=None, resource_group_name=None, __props__=None);func NewNatPool(ctx *Context, name string, args NatPoolArgs, opts ...ResourceOption) (*NatPool, error)public NatPool(string name, NatPoolArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NatPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NatPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NatPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NatPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NatPool resource accepts the following input properties:
- Backend
Port int The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- Frontend
Ip stringConfiguration Name The name of the frontend IP configuration exposing this rule.
- Frontend
Port intEnd The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- Frontend
Port intStart The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- Loadbalancer
Id string The ID of the Load Balancer in which to create the NAT pool.
- Protocol string
The transport protocol for the external endpoint. Possible values are
UdporTcp.- Resource
Group stringName The name of the resource group in which to create the resource.
- Name string
Specifies the name of the NAT pool.
- Backend
Port int The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- Frontend
Ip stringConfiguration Name The name of the frontend IP configuration exposing this rule.
- Frontend
Port intEnd The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- Frontend
Port intStart The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- Loadbalancer
Id string The ID of the Load Balancer in which to create the NAT pool.
- Protocol string
The transport protocol for the external endpoint. Possible values are
UdporTcp.- Resource
Group stringName The name of the resource group in which to create the resource.
- Name string
Specifies the name of the NAT pool.
- backend
Port number The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- frontend
Ip stringConfiguration Name The name of the frontend IP configuration exposing this rule.
- frontend
Port numberEnd The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontend
Port numberStart The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- loadbalancer
Id string The ID of the Load Balancer in which to create the NAT pool.
- protocol string
The transport protocol for the external endpoint. Possible values are
UdporTcp.- resource
Group stringName The name of the resource group in which to create the resource.
- name string
Specifies the name of the NAT pool.
- backend_
port float The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- frontend_
ip_ strconfiguration_ name The name of the frontend IP configuration exposing this rule.
- frontend_
port_ floatend The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontend_
port_ floatstart The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- loadbalancer_
id str The ID of the Load Balancer in which to create the NAT pool.
- protocol str
The transport protocol for the external endpoint. Possible values are
UdporTcp.- resource_
group_ strname The name of the resource group in which to create the resource.
- name str
Specifies the name of the NAT pool.
Outputs
All input properties are implicitly available as output properties. Additionally, the NatPool resource produces the following output properties:
- Frontend
Ip stringConfiguration Id - Id string
- The provider-assigned unique ID for this managed resource.
- Frontend
Ip stringConfiguration Id - Id string
- The provider-assigned unique ID for this managed resource.
- frontend
Ip stringConfiguration Id - id string
- The provider-assigned unique ID for this managed resource.
- frontend_
ip_ strconfiguration_ id - id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing NatPool Resource
Get an existing NatPool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NatPoolState, opts?: CustomResourceOptions): NatPoolstatic get(resource_name, id, opts=None, backend_port=None, frontend_ip_configuration_id=None, frontend_ip_configuration_name=None, frontend_port_end=None, frontend_port_start=None, loadbalancer_id=None, name=None, protocol=None, resource_group_name=None, __props__=None);func GetNatPool(ctx *Context, name string, id IDInput, state *NatPoolState, opts ...ResourceOption) (*NatPool, error)public static NatPool Get(string name, Input<string> id, NatPoolState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Backend
Port int The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- Frontend
Ip stringConfiguration Id - Frontend
Ip stringConfiguration Name The name of the frontend IP configuration exposing this rule.
- Frontend
Port intEnd The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- Frontend
Port intStart The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- Loadbalancer
Id string The ID of the Load Balancer in which to create the NAT pool.
- Name string
Specifies the name of the NAT pool.
- Protocol string
The transport protocol for the external endpoint. Possible values are
UdporTcp.- Resource
Group stringName The name of the resource group in which to create the resource.
- Backend
Port int The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- Frontend
Ip stringConfiguration Id - Frontend
Ip stringConfiguration Name The name of the frontend IP configuration exposing this rule.
- Frontend
Port intEnd The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- Frontend
Port intStart The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- Loadbalancer
Id string The ID of the Load Balancer in which to create the NAT pool.
- Name string
Specifies the name of the NAT pool.
- Protocol string
The transport protocol for the external endpoint. Possible values are
UdporTcp.- Resource
Group stringName The name of the resource group in which to create the resource.
- backend
Port number The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- frontend
Ip stringConfiguration Id - frontend
Ip stringConfiguration Name The name of the frontend IP configuration exposing this rule.
- frontend
Port numberEnd The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontend
Port numberStart The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- loadbalancer
Id string The ID of the Load Balancer in which to create the NAT pool.
- name string
Specifies the name of the NAT pool.
- protocol string
The transport protocol for the external endpoint. Possible values are
UdporTcp.- resource
Group stringName The name of the resource group in which to create the resource.
- backend_
port float The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- frontend_
ip_ strconfiguration_ id - frontend_
ip_ strconfiguration_ name The name of the frontend IP configuration exposing this rule.
- frontend_
port_ floatend The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontend_
port_ floatstart The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- loadbalancer_
id str The ID of the Load Balancer in which to create the NAT pool.
- name str
Specifies the name of the NAT pool.
- protocol str
The transport protocol for the external endpoint. Possible values are
UdporTcp.- resource_
group_ strname The name of the resource group in which to create the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.