你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

NetworkSecurityGroupRule Class

A network security group rule to apply to an inbound endpoint.

Constructor

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

Variables

Name Description
priority
int

The priority for this rule. Required.

access

The action that should be taken for a specified IP address, subnet range or tag. Required. Known values are: "Allow" and "Deny".

source_address_prefix
str

The source address prefix or tag to match for the rule. Required.

source_port_ranges

The source port ranges to match for the rule.

Attributes

access

The action that should be taken for a specified IP address, subnet range or tag. Required. Known values are: "Allow" and "Deny".

access: str | _models.NetworkSecurityGroupRuleAccess

priority

The priority for this rule. Required.

priority: int

source_address_prefix

The source address prefix or tag to match for the rule. Required.

source_address_prefix: str

source_port_ranges

The source port ranges to match for the rule.

source_port_ranges: list[str] | None