LoadBalancingRule Class
A load balancing rule for a load balancer.
- Inheritance
-
azure.mgmt.network.v2017_08_01.models._models_py3.SubResourceLoadBalancingRule
Constructor
LoadBalancingRule(*, id: typing.Union[str, NoneType] = None, name: typing.Union[str, NoneType] = None, etag: typing.Union[str, NoneType] = None, frontend_ip_configuration: typing.Union[_ForwardRef('SubResource'), NoneType] = None, backend_address_pool: typing.Union[_ForwardRef('SubResource'), NoneType] = None, probe: typing.Union[_ForwardRef('SubResource'), NoneType] = None, protocol: typing.Union[str, _ForwardRef('TransportProtocol'), NoneType] = None, load_distribution: typing.Union[str, _ForwardRef('LoadDistribution'), NoneType] = None, frontend_port: typing.Union[int, NoneType] = None, backend_port: typing.Union[int, NoneType] = None, idle_timeout_in_minutes: typing.Union[int, NoneType] = None, enable_floating_ip: typing.Union[bool, NoneType] = None, disable_outbound_snat: typing.Union[bool, NoneType] = None, provisioning_state: typing.Union[str, NoneType] = None, **kwargs)
Parameters
- id
- str
Resource ID.
- name
- str
The name of the resource that is unique within a resource group. This name can be used to access the resource.
- etag
- str
A unique read-only string that changes whenever the resource is updated.
- frontend_ip_configuration
- SubResource
A reference to frontend IP addresses.
- backend_address_pool
- SubResource
A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs.
- probe
- SubResource
The reference of the load balancer probe used by the load balancing rule.
- protocol
- str or TransportProtocol
The transport protocol for the external endpoint. Possible values are 'Udp' or 'Tcp'. Possible values include: "Udp", "Tcp".
- load_distribution
- str or LoadDistribution
The load distribution policy for this rule. Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. Possible values include: "Default", "SourceIP", "SourceIPProtocol".
- frontend_port
- int
The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 1 and 65534.
- backend_port
- int
The port used for internal connections on the endpoint. Acceptable values are between 1 and 65535.
- idle_timeout_in_minutes
- int
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.
- enable_floating_ip
- bool
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.
- disable_outbound_snat
- bool
Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule.
- provisioning_state
- str
Gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
Feedback
Submit and view feedback for