EffectiveNetworkSecurityRule Class

Effective network security rules.

Inheritance
EffectiveNetworkSecurityRule

Constructor

EffectiveNetworkSecurityRule(*, name: typing.Union[str, NoneType] = None, protocol: typing.Union[str, _ForwardRef('EffectiveSecurityRuleProtocol'), NoneType] = None, source_port_range: typing.Union[str, NoneType] = None, destination_port_range: typing.Union[str, NoneType] = None, source_port_ranges: typing.Union[typing.List[str], NoneType] = None, destination_port_ranges: typing.Union[typing.List[str], NoneType] = None, source_address_prefix: typing.Union[str, NoneType] = None, destination_address_prefix: typing.Union[str, NoneType] = None, source_address_prefixes: typing.Union[typing.List[str], NoneType] = None, destination_address_prefixes: typing.Union[typing.List[str], NoneType] = None, expanded_source_address_prefix: typing.Union[typing.List[str], NoneType] = None, expanded_destination_address_prefix: typing.Union[typing.List[str], NoneType] = None, access: typing.Union[str, _ForwardRef('SecurityRuleAccess'), NoneType] = None, priority: typing.Union[int, NoneType] = None, direction: typing.Union[str, _ForwardRef('SecurityRuleDirection'), NoneType] = None, **kwargs)

Parameters

name
str

The name of the security rule specified by the user (if created by the user).

protocol
str or EffectiveSecurityRuleProtocol

The network protocol this rule applies to. Possible values include: "Tcp", "Udp", "All".

source_port_range
str

The source port or range.

destination_port_range
str

The destination port or range.

source_port_ranges
list[str]

The source port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*).

destination_port_ranges
list[str]

The destination port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*).

source_address_prefix
str

The source address prefix.

destination_address_prefix
str

The destination address prefix.

source_address_prefixes
list[str]

The source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).

destination_address_prefixes
list[str]

The destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).

expanded_source_address_prefix
list[str]

The expanded source address prefix.

expanded_destination_address_prefix
list[str]

Expanded destination address prefix.

access
str or SecurityRuleAccess

Whether network traffic is allowed or denied. Possible values include: "Allow", "Deny".

priority
int

The priority of the rule.

direction
str or SecurityRuleDirection

The direction of the rule. Possible values include: "Inbound", "Outbound".