NsgSecurityRuleResponse

data class NsgSecurityRuleResponse(val access: String? = null, val description: String? = null, val destinationAddressPrefix: String? = null, val destinationPortRange: String? = null, val direction: String? = null, val name: String? = null, val priority: Int? = null, val protocol: String? = null, val sourceAddressPrefix: String? = null, val sourcePortRange: String? = null)

Security Rule data model for Network Security Groups.

Constructors

Link copied to clipboard
constructor(access: String? = null, description: String? = null, destinationAddressPrefix: String? = null, destinationPortRange: String? = null, direction: String? = null, name: String? = null, priority: Int? = null, protocol: String? = null, sourceAddressPrefix: String? = null, sourcePortRange: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val access: String? = null

Gets or sets whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”.

Link copied to clipboard
val description: String? = null

Gets or sets a description for this rule. Restricted to 140 chars.

Link copied to clipboard

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.

Link copied to clipboard

Gets or sets Destination Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports.

Link copied to clipboard
val direction: String? = null

Gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic.

Link copied to clipboard
val name: String? = null

Gets or sets the Security rule name.

Link copied to clipboard
val priority: Int? = null

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.

Link copied to clipboard
val protocol: String? = null

Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*).

Link copied to clipboard

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.

Link copied to clipboard
val sourcePortRange: String? = null

Gets or sets Source Port or Range. Integer or range between 0 and