ArmServiceFabricManagedClustersModelFactory.ServiceFabricManagedNetworkSecurityRule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes a network security rule.
public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule ServiceFabricManagedNetworkSecurityRule(string name = default, string description = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol protocol = default, System.Collections.Generic.IEnumerable<string> sourceAddressPrefixes = default, System.Collections.Generic.IEnumerable<string> destinationAddressPrefixes = default, System.Collections.Generic.IEnumerable<string> sourcePortRanges = default, System.Collections.Generic.IEnumerable<string> destinationPortRanges = default, string sourceAddressPrefix = default, string destinationAddressPrefix = default, string sourcePortRange = default, string destinationPortRange = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess access = default, int priority = 0, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection direction = default);
static member ServiceFabricManagedNetworkSecurityRule : string * string * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol * seq<string> * seq<string> * seq<string> * seq<string> * string * string * string * string * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess * int * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection -> Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule
Public Shared Function ServiceFabricManagedNetworkSecurityRule (Optional name As String = Nothing, Optional description As String = Nothing, Optional protocol As ServiceFabricManagedNsgProtocol = Nothing, Optional sourceAddressPrefixes As IEnumerable(Of String) = Nothing, Optional destinationAddressPrefixes As IEnumerable(Of String) = Nothing, Optional sourcePortRanges As IEnumerable(Of String) = Nothing, Optional destinationPortRanges As IEnumerable(Of String) = Nothing, Optional sourceAddressPrefix As String = Nothing, Optional destinationAddressPrefix As String = Nothing, Optional sourcePortRange As String = Nothing, Optional destinationPortRange As String = Nothing, Optional access As ServiceFabricManagedNetworkTrafficAccess = Nothing, Optional priority As Integer = 0, Optional direction As ServiceFabricManagedNetworkSecurityRuleDirection = Nothing) As ServiceFabricManagedNetworkSecurityRule
Parameters
- name
- String
Network security rule name.
- description
- String
Network security rule description.
- protocol
- ServiceFabricManagedNsgProtocol
Network protocol this rule applies to.
- sourceAddressPrefixes
- IEnumerable<String>
The CIDR or source IP ranges.
- destinationAddressPrefixes
- IEnumerable<String>
The destination address prefixes. CIDR or destination IP ranges.
- sourcePortRanges
- IEnumerable<String>
The source port ranges.
- destinationPortRanges
- IEnumerable<String>
The destination port ranges.
- 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.
- 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.
- 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
he destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
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.
Network security rule direction.
Returns
A new ServiceFabricManagedNetworkSecurityRule instance for mocking.