NetworkSecurityGroupSecurityRule

data class NetworkSecurityGroupSecurityRule(val access: String, val description: String? = null, val destinationAddressPrefix: String? = null, val destinationAddressPrefixes: List<String>? = null, val destinationApplicationSecurityGroupIds: List<String>? = null, val destinationPortRange: String? = null, val destinationPortRanges: List<String>? = null, val direction: String, val name: String, val priority: Int, val protocol: String, val sourceAddressPrefix: String? = null, val sourceAddressPrefixes: List<String>? = null, val sourceApplicationSecurityGroupIds: List<String>? = null, val sourcePortRange: String? = null, val sourcePortRanges: List<String>? = null)

Constructors

Link copied to clipboard
constructor(access: String, description: String? = null, destinationAddressPrefix: String? = null, destinationAddressPrefixes: List<String>? = null, destinationApplicationSecurityGroupIds: List<String>? = null, destinationPortRange: String? = null, destinationPortRanges: List<String>? = null, direction: String, name: String, priority: Int, protocol: String, sourceAddressPrefix: String? = null, sourceAddressPrefixes: List<String>? = null, sourceApplicationSecurityGroupIds: List<String>? = null, sourcePortRange: String? = null, sourcePortRanges: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies whether network traffic is allowed or denied. Possible values are Allow and Deny.

Link copied to clipboard
val description: String? = null

A description for this rule. Restricted to 140 characters.

Link copied to clipboard

CIDR or destination IP range or * to match any IP. Tags such as VirtualNetwork, AzureLoadBalancer and Internet can also be used. This is required if destination_address_prefixes is not specified.

Link copied to clipboard

List of destination address prefixes. Tags may not be used. This is required if destination_address_prefix is not specified.

Link copied to clipboard

A List of destination Application Security Group IDs

Link copied to clipboard

Destination Port or Range. Integer or range between 0 and 65535 or * to match any. This is required if destination_port_ranges is not specified.

Link copied to clipboard

List of destination ports or port ranges. This is required if destination_port_range is not specified.

Link copied to clipboard

The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are Inbound and Outbound.

Link copied to clipboard

The name of the security rule.

Link copied to clipboard

Specifies 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

Network protocol this rule applies to. Possible values include Tcp, Udp, Icmp, Esp, Ah or * (which matches all).

Link copied to clipboard

CIDR or source IP range or * to match any IP. Tags such as VirtualNetwork, AzureLoadBalancer and Internet can also be used. This is required if source_address_prefixes is not specified.

Link copied to clipboard

List of source address prefixes. Tags may not be used. This is required if source_address_prefix is not specified.

Link copied to clipboard

A List of source Application Security Group IDs

Link copied to clipboard
val sourcePortRange: String? = null

Source Port or Range. Integer or range between 0 and 65535 or * to match any. This is required if source_port_ranges is not specified.

Link copied to clipboard

List of source ports or port ranges. This is required if source_port_range is not specified.