Share via


EffectiveNetworkSecurityRule Constructors

Definition

Overloads

EffectiveNetworkSecurityRule()

Initializes a new instance of the EffectiveNetworkSecurityRule class.

EffectiveNetworkSecurityRule(String, String, String, String, IList<String>, IList<String>, String, String, IList<String>, IList<String>, IList<String>, IList<String>, String, Nullable<Int32>, String)

Initializes a new instance of the EffectiveNetworkSecurityRule class.

EffectiveNetworkSecurityRule()

Initializes a new instance of the EffectiveNetworkSecurityRule class.

public EffectiveNetworkSecurityRule ();
Public Sub New ()

Applies to

EffectiveNetworkSecurityRule(String, String, String, String, IList<String>, IList<String>, String, String, IList<String>, IList<String>, IList<String>, IList<String>, String, Nullable<Int32>, String)

Initializes a new instance of the EffectiveNetworkSecurityRule class.

public EffectiveNetworkSecurityRule (string name = default, string protocol = default, string sourcePortRange = default, string destinationPortRange = default, System.Collections.Generic.IList<string> sourcePortRanges = default, System.Collections.Generic.IList<string> destinationPortRanges = default, string sourceAddressPrefix = default, string destinationAddressPrefix = default, System.Collections.Generic.IList<string> sourceAddressPrefixes = default, System.Collections.Generic.IList<string> destinationAddressPrefixes = default, System.Collections.Generic.IList<string> expandedSourceAddressPrefix = default, System.Collections.Generic.IList<string> expandedDestinationAddressPrefix = default, string access = default, int? priority = default, string direction = default);
new Microsoft.Azure.Management.Network.Models.EffectiveNetworkSecurityRule : string * string * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * string * Nullable<int> * string -> Microsoft.Azure.Management.Network.Models.EffectiveNetworkSecurityRule
Public Sub New (Optional name As String = Nothing, Optional protocol As String = Nothing, Optional sourcePortRange As String = Nothing, Optional destinationPortRange As String = Nothing, Optional sourcePortRanges As IList(Of String) = Nothing, Optional destinationPortRanges As IList(Of String) = Nothing, Optional sourceAddressPrefix As String = Nothing, Optional destinationAddressPrefix As String = Nothing, Optional sourceAddressPrefixes As IList(Of String) = Nothing, Optional destinationAddressPrefixes As IList(Of String) = Nothing, Optional expandedSourceAddressPrefix As IList(Of String) = Nothing, Optional expandedDestinationAddressPrefix As IList(Of String) = Nothing, Optional access As String = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional direction As String = Nothing)

Parameters

name
String

The name of the security rule specified by the user (if created by the user).

protocol
String

The network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'All'

sourcePortRange
String

The source port or range.

destinationPortRange
String

The destination port or range.

sourcePortRanges
IList<String>

The source port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*).

destinationPortRanges
IList<String>

The destination port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*).

sourceAddressPrefix
String

The source address prefix.

destinationAddressPrefix
String

The destination address prefix.

sourceAddressPrefixes
IList<String>

The source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).

destinationAddressPrefixes
IList<String>

The destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).

expandedSourceAddressPrefix
IList<String>

The expanded source address prefix.

expandedDestinationAddressPrefix
IList<String>

Expanded destination address prefix.

access
String

Whether network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'

priority
Nullable<Int32>

The priority of the rule.

direction
String

The direction of the rule. Possible values include: 'Inbound', 'Outbound'

Applies to