NsgSecurityRule Class
Security Rule data model for Network Security Groups.
- Inheritance
-
NsgSecurityRule
Constructor
NsgSecurityRule(*, name: Optional[str] = None, access: Optional[str] = None, description: Optional[str] = None, destination_address_prefix: Optional[str] = None, destination_port_range: Optional[str] = None, direction: Optional[str] = None, priority: Optional[int] = None, protocol: Optional[str] = None, source_address_prefix: Optional[str] = None, source_port_range: Optional[str] = None, **kwargs)
Parameters
- access
- str
Gets or sets whether network traffic is allowed or denied. Possible values are "Allow" and "Deny".
- destination_address_prefix
- str
Gets or sets destination address prefix. CIDR or source IP range.
A "*" can also be used to match all source IPs. Default tags such
as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
- destination_port_range
- str
Gets or sets Destination Port or Range. Integer or range between 0 and 65535. A "*" can also be used to match all ports.
- direction
- str
Gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- priority
- int
Gets or sets 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.
- protocol
- str
Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*).
- source_address_prefix
- str
Gets or sets source address prefix. CIDR or source IP range. A "*" 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_port_range
- str
Gets or sets Source Port or Range. Integer or range between 0 and
- A "*" can also be used to match all ports.
Feedback
Submit and view feedback for