EffectiveNetworkSecurityRule Constructors

Definition

Overloads

EffectiveNetworkSecurityRule()

Initializes a new instance of the EffectiveNetworkSecurityRule class.

EffectiveNetworkSecurityRule(String, EffectiveSecurityRuleProtocol, String, String, IList<String>, IList<String>, String, String, IList<String>, IList<String>, IList<String>, IList<String>, SecurityRuleAccess, Nullable<Int32>, SecurityRuleDirection)

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, EffectiveSecurityRuleProtocol, String, String, IList<String>, IList<String>, String, String, IList<String>, IList<String>, IList<String>, IList<String>, SecurityRuleAccess, Nullable<Int32>, SecurityRuleDirection)

Initializes a new instance of the EffectiveNetworkSecurityRule class.

public EffectiveNetworkSecurityRule (string name = default, Microsoft.Azure.Management.Network.Fluent.Models.EffectiveSecurityRuleProtocol 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, Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleAccess access = default, int? priority = default, Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleDirection direction = default);
new Microsoft.Azure.Management.Network.Fluent.Models.EffectiveNetworkSecurityRule : string * Microsoft.Azure.Management.Network.Fluent.Models.EffectiveSecurityRuleProtocol * 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> * Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleAccess * Nullable<int> * Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleDirection -> Microsoft.Azure.Management.Network.Fluent.Models.EffectiveNetworkSecurityRule
Public Sub New (Optional name As String = Nothing, Optional protocol As EffectiveSecurityRuleProtocol = 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 SecurityRuleAccess = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional direction As SecurityRuleDirection = Nothing)

Parameters

name
String

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

protocol
EffectiveSecurityRuleProtocol

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
SecurityRuleAccess

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

priority
Nullable<Int32>

The priority of the rule.

direction
SecurityRuleDirection

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

Applies to