NetworkRule Class

Rule of type network.

Constructor

NetworkRule(*args: Any, **kwargs: Any)

Variables

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.

source_kube_selector_groups

List of source Kubernetes Selector Groups for this rule.

source_geo_locations

List of source geographic location filters (ISO 3166-1 alpha-2 country codes, e.g. "US", "CA") for this rule.

destination_geo_locations

List of destination geographic location filters (ISO 3166-1 alpha-2 country codes, e.g. "US", "CA") for this rule.

rule_type
str or <xref:azure.mgmt.network.models.NETWORK_RULE>

Rule Type. Required. NetworkRule.

Attributes

destination_addresses

List of destination IP addresses or Service Tags.

destination_addresses: list[str] | None

destination_fqdns

List of destination FQDNs.

destination_fqdns: list[str] | None

destination_geo_locations

List of destination geographic location filters (ISO 3166-1 alpha-2 country codes, e.g. "US", "CA") for this rule.

destination_geo_locations: list[str] | None

destination_ip_groups

List of destination IpGroups for this rule.

destination_ip_groups: list[str] | None

destination_ports

List of destination ports.

destination_ports: list[str] | None

ip_protocols

Array of FirewallPolicyRuleNetworkProtocols.

ip_protocols: list[typing.Union[str, ForwardRef('_models.FirewallPolicyRuleNetworkProtocol')]] | None

rule_type

Rule Type. Required. NetworkRule.

rule_type: NETWORK_RULE: 'NetworkRule'>]

source_addresses

List of source IP addresses for this rule.

source_addresses: list[str] | None

source_geo_locations

List of source geographic location filters (ISO 3166-1 alpha-2 country codes, e.g. "US", "CA") for this rule.

source_geo_locations: list[str] | None

source_ip_groups

List of source IpGroups for this rule.

source_ip_groups: list[str] | None

source_kube_selector_groups

List of source Kubernetes Selector Groups for this rule.

source_kube_selector_groups: list[str] | None