AdminRule 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
AdminRule() |
Initializes a new instance of the AdminRule class. |
AdminRule(String, String, Int32, String, String, String, String, String, SystemData, String, IList<AddressPrefixItem>, IList<AddressPrefixItem>, IList<String>, IList<String>, String) |
Initializes a new instance of the AdminRule class. |
AdminRule()
Initializes a new instance of the AdminRule class.
public AdminRule ();
Public Sub New ()
Applies to
AdminRule(String, String, Int32, String, String, String, String, String, SystemData, String, IList<AddressPrefixItem>, IList<AddressPrefixItem>, IList<String>, IList<String>, String)
Initializes a new instance of the AdminRule class.
public AdminRule (string protocol, string access, int priority, string direction, string id = default, string name = default, string type = default, string etag = default, Microsoft.Azure.Management.Network.Models.SystemData systemData = default, string description = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.AddressPrefixItem> sources = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.AddressPrefixItem> destinations = default, System.Collections.Generic.IList<string> sourcePortRanges = default, System.Collections.Generic.IList<string> destinationPortRanges = default, string provisioningState = default);
new Microsoft.Azure.Management.Network.Models.AdminRule : string * string * int * string * string * string * string * string * Microsoft.Azure.Management.Network.Models.SystemData * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.AddressPrefixItem> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.AddressPrefixItem> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * string -> Microsoft.Azure.Management.Network.Models.AdminRule
Public Sub New (protocol As String, access As String, priority As Integer, direction As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional etag As String = Nothing, Optional systemData As SystemData = Nothing, Optional description As String = Nothing, Optional sources As IList(Of AddressPrefixItem) = Nothing, Optional destinations As IList(Of AddressPrefixItem) = Nothing, Optional sourcePortRanges As IList(Of String) = Nothing, Optional destinationPortRanges As IList(Of String) = Nothing, Optional provisioningState As String = Nothing)
Parameters
- protocol
- String
Network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', 'Any', 'Ah'
- access
- String
Indicates the access allowed for this particular rule. Possible values include: 'Allow', 'Deny', 'AlwaysAllow'
- priority
- Int32
The priority of the rule. The value can be between 1 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.
- direction
- String
Indicates if the traffic matched against the rule in inbound or outbound. Possible values include: 'Inbound', 'Outbound'
- id
- String
Resource ID.
- name
- String
Resource name.
- type
- String
Resource type.
- etag
- String
A unique read-only string that changes whenever the resource is updated.
- systemData
- SystemData
The system metadata related to this resource.
- description
- String
A description for this rule. Restricted to 140 chars.
- sources
- IList<AddressPrefixItem>
The CIDR or source IP ranges.
- destinations
- IList<AddressPrefixItem>
The destination address prefixes. CIDR or destination IP ranges.
- provisioningState
- String
The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'