SecurityRule 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
SecurityRule() |
Initializes a new instance of the SecurityRule class. |
SecurityRule(String, String, String, String, String, String, String, String, IList<String>, IList<ApplicationSecurityGroup>, String, IList<String>, IList<ApplicationSecurityGroup>, IList<String>, IList<String>, Nullable<Int32>, String, String, String) |
Initializes a new instance of the SecurityRule class. |
SecurityRule()
Initializes a new instance of the SecurityRule class.
public SecurityRule ();
Public Sub New ()
Applies to
SecurityRule(String, String, String, String, String, String, String, String, IList<String>, IList<ApplicationSecurityGroup>, String, IList<String>, IList<ApplicationSecurityGroup>, IList<String>, IList<String>, Nullable<Int32>, String, String, String)
Initializes a new instance of the SecurityRule class.
public SecurityRule (string protocol, string access, string direction, string id = default, string description = default, string sourcePortRange = default, string destinationPortRange = default, string sourceAddressPrefix = default, System.Collections.Generic.IList<string> sourceAddressPrefixes = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ApplicationSecurityGroup> sourceApplicationSecurityGroups = default, string destinationAddressPrefix = default, System.Collections.Generic.IList<string> destinationAddressPrefixes = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ApplicationSecurityGroup> destinationApplicationSecurityGroups = default, System.Collections.Generic.IList<string> sourcePortRanges = default, System.Collections.Generic.IList<string> destinationPortRanges = default, int? priority = default, string provisioningState = default, string name = default, string etag = default);
new Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SecurityRule : string * string * string * string * string * string * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ApplicationSecurityGroup> * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ApplicationSecurityGroup> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * Nullable<int> * string * string * string -> Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SecurityRule
Public Sub New (protocol As String, access As String, direction As String, Optional id As String = Nothing, Optional description As String = Nothing, Optional sourcePortRange As String = Nothing, Optional destinationPortRange As String = Nothing, Optional sourceAddressPrefix As String = Nothing, Optional sourceAddressPrefixes As IList(Of String) = Nothing, Optional sourceApplicationSecurityGroups As IList(Of ApplicationSecurityGroup) = Nothing, Optional destinationAddressPrefix As String = Nothing, Optional destinationAddressPrefixes As IList(Of String) = Nothing, Optional destinationApplicationSecurityGroups As IList(Of ApplicationSecurityGroup) = Nothing, Optional sourcePortRanges As IList(Of String) = Nothing, Optional destinationPortRanges As IList(Of String) = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional provisioningState As String = Nothing, Optional name As String = Nothing, Optional etag As String = Nothing)
Parameters
- protocol
- String
Network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', '*', 'Ah'
- access
- String
The network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'
- direction
- String
The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values include: 'Inbound', 'Outbound'
- id
- String
Resource ID.
- description
- String
A description for this rule. Restricted to 140 chars.
- sourcePortRange
- String
The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- destinationPortRange
- String
The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- sourceAddressPrefix
- String
The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
- sourceApplicationSecurityGroups
- IList<ApplicationSecurityGroup>
The application security group specified as source.
- destinationAddressPrefix
- String
The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
The destination address prefixes. CIDR or destination IP ranges.
- destinationApplicationSecurityGroups
- IList<ApplicationSecurityGroup>
The application security group specified as destination.
The priority of the rule. The value can be between 100 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.
- provisioningState
- String
The provisioning state of the security rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
- name
- String
The name of the resource that is unique within a resource group. This name can be used to access the resource.
- etag
- String
A unique read-only string that changes whenever the resource is updated.