Share via


ServiceFabricManagedNetworkSecurityRule Constructor

Definition

Initializes a new instance of ServiceFabricManagedNetworkSecurityRule.

public ServiceFabricManagedNetworkSecurityRule (string name, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol protocol, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess access, int priority, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection direction);
new Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule : string * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess * int * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection -> Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule
Public Sub New (name As String, protocol As ServiceFabricManagedNsgProtocol, access As ServiceFabricManagedNetworkTrafficAccess, priority As Integer, direction As ServiceFabricManagedNetworkSecurityRuleDirection)

Parameters

name
String

Network security rule name.

protocol
ServiceFabricManagedNsgProtocol

Network protocol this rule applies to.

access
ServiceFabricManagedNetworkTrafficAccess

The network traffic is allowed or denied.

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
ServiceFabricManagedNetworkSecurityRuleDirection

Network security rule direction.

Exceptions

name is null.

Applies to