ArmNetworkModelFactory.AzureFirewallNetworkRule 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.
public static Azure.ResourceManager.Network.Models.AzureFirewallNetworkRule AzureFirewallNetworkRule(string name = default, string description = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.AzureFirewallNetworkRuleProtocol> protocols = default, System.Collections.Generic.IEnumerable<string> sourceAddresses = default, System.Collections.Generic.IEnumerable<string> destinationAddresses = default, System.Collections.Generic.IEnumerable<string> destinationPorts = default, System.Collections.Generic.IEnumerable<string> destinationFqdns = default, System.Collections.Generic.IEnumerable<string> sourceIpGroups = default, System.Collections.Generic.IEnumerable<string> destinationIpGroups = default);
static member AzureFirewallNetworkRule : string * string * seq<Azure.ResourceManager.Network.Models.AzureFirewallNetworkRuleProtocol> * seq<string> * seq<string> * seq<string> * seq<string> * seq<string> * seq<string> -> Azure.ResourceManager.Network.Models.AzureFirewallNetworkRule
Public Shared Function AzureFirewallNetworkRule (Optional name As String = Nothing, Optional description As String = Nothing, Optional protocols As IEnumerable(Of AzureFirewallNetworkRuleProtocol) = Nothing, Optional sourceAddresses As IEnumerable(Of String) = Nothing, Optional destinationAddresses As IEnumerable(Of String) = Nothing, Optional destinationPorts As IEnumerable(Of String) = Nothing, Optional destinationFqdns As IEnumerable(Of String) = Nothing, Optional sourceIpGroups As IEnumerable(Of String) = Nothing, Optional destinationIpGroups As IEnumerable(Of String) = Nothing) As AzureFirewallNetworkRule
Parameters
- name
- String
Name of the network rule.
- description
- String
Description of the rule.
- protocols
- IEnumerable<AzureFirewallNetworkRuleProtocol>
Array of AzureFirewallNetworkRuleProtocols.
- sourceAddresses
- IEnumerable<String>
List of source IP addresses for this rule.
- destinationAddresses
- IEnumerable<String>
List of destination IP addresses.
- destinationPorts
- IEnumerable<String>
List of destination ports.
- destinationFqdns
- IEnumerable<String>
List of destination FQDNs.
- sourceIpGroups
- IEnumerable<String>
List of source IpGroups for this rule.
- destinationIpGroups
- IEnumerable<String>
List of destination IpGroups for this rule.
Returns
A new AzureFirewallNetworkRule instance for mocking.