Freigeben über


NetworkSecurityRule Konstruktoren

Definition

Überlädt

NetworkSecurityRule()

Initialisiert eine neue instance der NetworkSecurityRule-Klasse.

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

Initialisiert eine neue instance der NetworkSecurityRule-Klasse.

NetworkSecurityRule()

Initialisiert eine neue instance der NetworkSecurityRule-Klasse.

public NetworkSecurityRule ();
Public Sub New ()

Gilt für:

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

Initialisiert eine neue instance der NetworkSecurityRule-Klasse.

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)

Parameter

name
String

Name der Netzwerksicherheitsregel.

protocol
String

Netzwerkprotokoll, für das diese Regel gilt. Mögliche Werte: "http", "https", "tcp", "udp", "icmp", "ah", "esp"

access
String

Der Netzwerkdatenverkehr ist zulässig oder verweigert. Mögliche Werte: "allow", "deny"

priority
Int32

Die Priorität der Regel. Der Wert kann im Bereich von 1000 bis 3000 liegen. Werte außerhalb dieses Bereichs sind für Service Fabric ManagerCluster-Ressourcenanbieter reserviert. Die Prioritätsnummer muss für jede Regel in der Auflistung eindeutig sein. Je niedrigere die Prioritätsnummer ist, desto höher ist die Priorität der Regel.

direction
String

Richtung der Netzwerksicherheitsregel. Mögliche Werte: "eingehend", "ausgehend"

description
String

Beschreibung der Netzwerksicherheitsregel.

sourceAddressPrefixes
IList<String>

Die CIDR- oder Quell-IP-Bereiche.

destinationAddressPrefixes
IList<String>

Die Zieladresspräfixe. CIDR- oder Ziel-IP-Bereiche.

sourcePortRanges
IList<String>

Die Quellportbereiche.

destinationPortRanges
IList<String>

Die Zielportbereiche.

Gilt für: