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, 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.
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
- SecurityRuleAccess
Whether network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'
- direction
- SecurityRuleDirection
The direction of the rule. Possible values include: 'Inbound', 'Outbound'
Applies to
Azure SDK for .NET