NetworkRule Class

Rule of type network.

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

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

Constructor

NetworkRule(*, name: typing.Union[str, NoneType] = None, description: typing.Union[str, NoneType] = None, ip_protocols: typing.Union[typing.List[typing.Union[str, _ForwardRef('FirewallPolicyRuleNetworkProtocol')]], NoneType] = None, source_addresses: typing.Union[typing.List[str], NoneType] = None, destination_addresses: typing.Union[typing.List[str], NoneType] = None, destination_ports: typing.Union[typing.List[str], NoneType] = None, source_ip_groups: typing.Union[typing.List[str], NoneType] = None, destination_ip_groups: typing.Union[typing.List[str], NoneType] = None, destination_fqdns: typing.Union[typing.List[str], NoneType] = None, **kwargs)

Parameters

name
str

Name of the rule.

description
str

Description of the rule.

rule_type
str or FirewallPolicyRuleType

Required. Rule Type.Constant filled by server. Possible values include: "ApplicationRule", "NetworkRule", "NatRule".

ip_protocols
list[str or FirewallPolicyRuleNetworkProtocol]

Array of FirewallPolicyRuleNetworkProtocols.

source_addresses
list[str]

List of source IP addresses for this rule.

destination_addresses
list[str]

List of destination IP addresses or Service Tags.

destination_ports
list[str]

List of destination ports.

source_ip_groups
list[str]

List of source IpGroups for this rule.

destination_ip_groups
list[str]

List of destination IpGroups for this rule.

destination_fqdns
list[str]

List of destination FQDNs.