Compartilhar via


NatRule Class

Rule of type nat.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.network.models._models_py3.FirewallPolicyRule
NatRule

Constructor

NatRule(*, name: str | None = None, description: str | None = None, ip_protocols: List[str | _models.FirewallPolicyRuleNetworkProtocol] | None = None, source_addresses: List[str] | None = None, destination_addresses: List[str] | None = None, destination_ports: List[str] | None = None, translated_address: str | None = None, translated_port: str | None = None, source_ip_groups: List[str] | None = None, translated_fqdn: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

Name of the rule.

description
str

Description of the rule.

ip_protocols

Array of FirewallPolicyRuleNetworkProtocols.

source_addresses

List of source IP addresses for this rule.

destination_addresses

List of destination IP addresses or Service Tags.

destination_ports

List of destination ports.

translated_address
str

The translated address for this NAT rule.

translated_port
str

The translated port for this NAT rule.

source_ip_groups

List of source IpGroups for this rule.

translated_fqdn
str

The translated FQDN for this NAT rule.

Variables

Name Description
name
str

Name of the rule.

description
str

Description of the rule.

rule_type

Rule Type. Required. Known values are: "ApplicationRule", "NetworkRule", and "NatRule".

ip_protocols

Array of FirewallPolicyRuleNetworkProtocols.

source_addresses

List of source IP addresses for this rule.

destination_addresses

List of destination IP addresses or Service Tags.

destination_ports

List of destination ports.

translated_address
str

The translated address for this NAT rule.

translated_port
str

The translated port for this NAT rule.

source_ip_groups

List of source IpGroups for this rule.

translated_fqdn
str

The translated FQDN for this NAT rule.