Compartilhar via


EffectiveNetworkSecurityRule Class

Effective network security rules.

Inheritance
azure.mgmt.network._serialization.Model
EffectiveNetworkSecurityRule

Constructor

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

Keyword-Only Parameters

Name Description
name
str

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

protocol

The network protocol this rule applies to. Known values are: "Tcp", "Udp", and "All".

source_port_range
str

The source port or range.

destination_port_range
str

The destination port or range.

source_port_ranges

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

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

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

destination_address_prefixes

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

expanded_source_address_prefix

The expanded source address prefix.

expanded_destination_address_prefix

Expanded destination address prefix.

access

Whether network traffic is allowed or denied. Known values are: "Allow" and "Deny".

priority
int

The priority of the rule.

direction

The direction of the rule. Known values are: "Inbound" and "Outbound".

Variables

Name Description
name
str

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

protocol

The network protocol this rule applies to. Known values are: "Tcp", "Udp", and "All".

source_port_range
str

The source port or range.

destination_port_range
str

The destination port or range.

source_port_ranges

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

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

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

destination_address_prefixes

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

expanded_source_address_prefix

The expanded source address prefix.

expanded_destination_address_prefix

Expanded destination address prefix.

access

Whether network traffic is allowed or denied. Known values are: "Allow" and "Deny".

priority
int

The priority of the rule.

direction

The direction of the rule. Known values are: "Inbound" and "Outbound".