Udostępnij przez


SecurityRulePropertiesFormat Constructors

Definition

Overloads

SecurityRulePropertiesFormat()

Initializes a new instance of the SecurityRulePropertiesFormat class.

public SecurityRulePropertiesFormat();
Public Sub New ()

Applies to

SecurityRulePropertiesFormat(String, String, String, String, String, String, String, IList<String>, IList<ApplicationSecurityGroup>, String, IList<String>, IList<ApplicationSecurityGroup>, IList<String>, IList<String>, Nullable<Int32>, String)

Initializes a new instance of the SecurityRulePropertiesFormat class.

public SecurityRulePropertiesFormat(string protocol, string access, string direction, 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);
new Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SecurityRulePropertiesFormat : 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 -> Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SecurityRulePropertiesFormat
Public Sub New (protocol As String, access As String, direction As String, 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)

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'

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.

sourceAddressPrefixes
IList<String>

The CIDR or source IP ranges.

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.

destinationAddressPrefixes
IList<String>

The destination address prefixes. CIDR or destination IP ranges.

destinationApplicationSecurityGroups
IList<ApplicationSecurityGroup>

The application security group specified as destination.

sourcePortRanges
IList<String>

The source port ranges.

destinationPortRanges
IList<String>

The destination port ranges.

priority
Nullable<Int32>

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'

Applies to