EffectiveNetworkSecurityRule Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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 (*).
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.
The source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).
The destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).
- access
- String
Whether network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'
- direction
- String
The direction of the rule. Possible values include: 'Inbound', 'Outbound'
Applies to
Azure SDK for .NET