共用方式為


NetworkSecurityRule Constructors

Definition

Overloads

NetworkSecurityRule()

Initializes a new instance of the NetworkSecurityRule class.

NetworkSecurityRule(String, String, String, Int32, String, String, IList<String>, IList<String>, IList<String>, IList<String>)

Initializes a new instance of the NetworkSecurityRule class.

NetworkSecurityRule()

Initializes a new instance of the NetworkSecurityRule class.

public NetworkSecurityRule ();
Public Sub New ()

Applies to

NetworkSecurityRule(String, String, String, Int32, String, String, IList<String>, IList<String>, IList<String>, IList<String>)

Initializes a new instance of the NetworkSecurityRule class.

public NetworkSecurityRule (string name, string protocol, string access, int priority, string direction, string description = default, System.Collections.Generic.IList<string> sourceAddressPrefixes = default, System.Collections.Generic.IList<string> destinationAddressPrefixes = default, System.Collections.Generic.IList<string> sourcePortRanges = default, System.Collections.Generic.IList<string> destinationPortRanges = default);
new Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.NetworkSecurityRule : string * string * string * int * 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.ServiceFabricManagedClusters.Models.NetworkSecurityRule
Public Sub New (name As String, protocol As String, access As String, priority As Integer, direction As String, Optional description As String = Nothing, Optional sourceAddressPrefixes As IList(Of String) = Nothing, Optional destinationAddressPrefixes As IList(Of String) = Nothing, Optional sourcePortRanges As IList(Of String) = Nothing, Optional destinationPortRanges As IList(Of String) = Nothing)

Parameters

name
String

Network security rule name.

protocol
String

Network protocol this rule applies to. Possible values include: 'http', 'https', 'tcp', 'udp', 'icmp', 'ah', 'esp'

access
String

The network traffic is allowed or denied. Possible values include: 'allow', 'deny'

priority
Int32

The priority of the rule. The value can be in the range 1000 to 3000. Values outside this range are reserved for Service Fabric ManagerCluster Resource Provider. 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

Network security rule direction. Possible values include: 'inbound', 'outbound'

description
String

Network security rule description.

sourceAddressPrefixes
IList<String>

The CIDR or source IP ranges.

destinationAddressPrefixes
IList<String>

The destination address prefixes. CIDR or destination IP ranges.

sourcePortRanges
IList<String>

The source port ranges.

destinationPortRanges
IList<String>

The destination port ranges.

Applies to