Compartilhar via


NetworkRule Class

Rule of type network.

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

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

Constructor

NetworkRule(*, 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, source_ip_groups: List[str] | None = None, destination_ip_groups: List[str] | None = None, destination_fqdns: List[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.

source_ip_groups

List of source IpGroups for this rule.

destination_ip_groups

List of destination IpGroups for this rule.

destination_fqdns

List of destination FQDNs.

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.

source_ip_groups

List of source IpGroups for this rule.

destination_ip_groups

List of destination IpGroups for this rule.

destination_fqdns

List of destination FQDNs.