共用方式為


SecurityRuleInner Constructors

Definition

Overloads

SecurityRuleInner()

Initializes a new instance of the SecurityRuleInner class.

SecurityRuleInner(SecurityRuleProtocol, SecurityRuleAccess, SecurityRuleDirection, String, String, String, String, String, IList<String>, IList<ApplicationSecurityGroupInner>, String, IList<String>, IList<ApplicationSecurityGroupInner>, IList<String>, IList<String>, Nullable<Int32>, ProvisioningState, String, String)

Initializes a new instance of the SecurityRuleInner class.

SecurityRuleInner()

Initializes a new instance of the SecurityRuleInner class.

public SecurityRuleInner ();
Public Sub New ()

Applies to

SecurityRuleInner(SecurityRuleProtocol, SecurityRuleAccess, SecurityRuleDirection, String, String, String, String, String, IList<String>, IList<ApplicationSecurityGroupInner>, String, IList<String>, IList<ApplicationSecurityGroupInner>, IList<String>, IList<String>, Nullable<Int32>, ProvisioningState, String, String)

Initializes a new instance of the SecurityRuleInner class.

public SecurityRuleInner (Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleProtocol protocol, Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleAccess access, Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleDirection 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.Management.Network.Fluent.Models.ApplicationSecurityGroupInner> sourceApplicationSecurityGroups = default, string destinationAddressPrefix = default, System.Collections.Generic.IList<string> destinationAddressPrefixes = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Fluent.Models.ApplicationSecurityGroupInner> destinationApplicationSecurityGroups = default, System.Collections.Generic.IList<string> sourcePortRanges = default, System.Collections.Generic.IList<string> destinationPortRanges = default, int? priority = default, Microsoft.Azure.Management.Network.Fluent.Models.ProvisioningState provisioningState = default, string name = default, string etag = default);
new Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleInner : Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleProtocol * Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleAccess * Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleDirection * string * string * string * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Fluent.Models.ApplicationSecurityGroupInner> * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Fluent.Models.ApplicationSecurityGroupInner> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * Nullable<int> * Microsoft.Azure.Management.Network.Fluent.Models.ProvisioningState * string * string -> Microsoft.Azure.Management.Network.Fluent.Models.SecurityRuleInner
Public Sub New (protocol As SecurityRuleProtocol, access As SecurityRuleAccess, direction As SecurityRuleDirection, 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 ApplicationSecurityGroupInner) = Nothing, Optional destinationAddressPrefix As String = Nothing, Optional destinationAddressPrefixes As IList(Of String) = Nothing, Optional destinationApplicationSecurityGroups As IList(Of ApplicationSecurityGroupInner) = 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 ProvisioningState = Nothing, Optional name As String = Nothing, Optional etag As String = Nothing)

Parameters

protocol
SecurityRuleProtocol

Network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', '*', 'Ah'

access
SecurityRuleAccess

The network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'

direction
SecurityRuleDirection

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
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<ApplicationSecurityGroupInner>

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<ApplicationSecurityGroupInner>

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
ProvisioningState

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.

Applies to