NsgSecurityRule interface
Security Rule data model for Network Security Groups.
Properties
access | Gets or sets whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. |
description | Gets or sets a description for this rule. Restricted to 140 chars. |
destination |
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 |
Gets or sets Destination Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports. |
direction | Gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic. |
name | Gets or sets the Security rule name. |
priority | 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 | Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*). |
source |
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 |
Gets or sets Source Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports. |
Property Details
access
Gets or sets whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”.
access?: string
Property Value
string
description
Gets or sets a description for this rule. Restricted to 140 chars.
description?: string
Property Value
string
destinationAddressPrefix
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.
destinationAddressPrefix?: string
Property Value
string
destinationPortRange
Gets or sets Destination Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports.
destinationPortRange?: string
Property Value
string
direction
Gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
direction?: string
Property Value
string
name
Gets or sets the Security rule name.
name?: string
Property Value
string
priority
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.
priority?: number
Property Value
number
protocol
Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*).
protocol?: string
Property Value
string
sourceAddressPrefix
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.
sourceAddressPrefix?: string
Property Value
string
sourcePortRange
Gets or sets Source Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports.
sourcePortRange?: string
Property Value
string