SecurityRulePropertiesFormat Class

Security rule resource.

Constructor

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

Variables

Name Description
description
str

A description for this rule. Restricted to 140 chars.

protocol

Network protocol this rule applies to. Required. Known values are: "Tcp", "Udp", "Icmp", "Esp", "*", and "Ah".

source_port_range
str

The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

destination_port_range
str

The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

source_address_prefix
str

The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.

source_address_prefixes

The CIDR or source IP ranges.

source_application_security_groups

The application security group specified as source.

destination_address_prefix
str

The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.

destination_address_prefixes

The destination address prefixes. CIDR or destination IP ranges.

destination_application_security_groups

The application security group specified as destination.

source_port_ranges

The source port ranges.

destination_port_ranges

The destination port ranges.

access

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

priority
int

The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. Required.

direction

The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic. Required. Known values are: "Inbound" and "Outbound".

provisioning_state

The provisioning state of the security rule resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting".

Attributes

access

"Allow" and "Deny".

access: str | _models.SecurityRuleAccess

description

A description for this rule. Restricted to 140 chars.

description: str | None

destination_address_prefix

The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.

destination_address_prefix: str | None

destination_address_prefixes

The destination address prefixes. CIDR or destination IP ranges.

destination_address_prefixes: list[str] | None

destination_application_security_groups

The application security group specified as destination.

destination_application_security_groups: list['_models.ApplicationSecurityGroup'] | None

destination_port_range

The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

destination_port_range: str | None

destination_port_ranges

The destination port ranges.

destination_port_ranges: list[str] | None

direction

The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic. Required. Known values are: "Inbound" and "Outbound".

direction: str | _models.SecurityRuleDirection

priority

The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. Required.

priority: int

protocol

"Tcp", "Udp", "Icmp", "Esp", "*", and "Ah".

protocol: str | _models.SecurityRuleProtocol

provisioning_state

"Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting".

provisioning_state: str | _models.ProvisioningState | None

source_address_prefix

The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.

source_address_prefix: str | None

source_address_prefixes

The CIDR or source IP ranges.

source_address_prefixes: list[str] | None

source_application_security_groups

The application security group specified as source.

source_application_security_groups: list['_models.ApplicationSecurityGroup'] | None

source_port_range

The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

source_port_range: str | None

source_port_ranges

The source port ranges.

source_port_ranges: list[str] | None