ArmNetworkModelFactory.WebApplicationFirewallCustomRule 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.
Initializes a new instance of WebApplicationFirewallCustomRule.
public static Azure.ResourceManager.Network.Models.WebApplicationFirewallCustomRule WebApplicationFirewallCustomRule (string name = default, Azure.ETag? etag = default, int priority = 0, Azure.ResourceManager.Network.Models.WebApplicationFirewallState? state = default, Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration? rateLimitDuration = default, int? rateLimitThreshold = default, Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType ruleType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.MatchCondition> matchConditions = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.GroupByUserSession> groupByUserSession = default, Azure.ResourceManager.Network.Models.WebApplicationFirewallAction action = default);
static member WebApplicationFirewallCustomRule : string * Nullable<Azure.ETag> * int * Nullable<Azure.ResourceManager.Network.Models.WebApplicationFirewallState> * Nullable<Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration> * Nullable<int> * Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType * seq<Azure.ResourceManager.Network.Models.MatchCondition> * seq<Azure.ResourceManager.Network.Models.GroupByUserSession> * Azure.ResourceManager.Network.Models.WebApplicationFirewallAction -> Azure.ResourceManager.Network.Models.WebApplicationFirewallCustomRule
Public Shared Function WebApplicationFirewallCustomRule (Optional name As String = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional priority As Integer = 0, Optional state As Nullable(Of WebApplicationFirewallState) = Nothing, Optional rateLimitDuration As Nullable(Of ApplicationGatewayFirewallRateLimitDuration) = Nothing, Optional rateLimitThreshold As Nullable(Of Integer) = Nothing, Optional ruleType As WebApplicationFirewallRuleType = Nothing, Optional matchConditions As IEnumerable(Of MatchCondition) = Nothing, Optional groupByUserSession As IEnumerable(Of GroupByUserSession) = Nothing, Optional action As WebApplicationFirewallAction = Nothing) As WebApplicationFirewallCustomRule
Parameters
- name
- String
The name of the resource that is unique within a policy. This name can be used to access the resource.
- priority
- Int32
Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- rateLimitDuration
- Nullable<ApplicationGatewayFirewallRateLimitDuration>
Duration over which Rate Limit policy will be applied. Applies only when ruleType is RateLimitRule.
Rate Limit threshold to apply in case ruleType is RateLimitRule. Must be greater than or equal to 1.
- ruleType
- WebApplicationFirewallRuleType
The rule type.
- matchConditions
- IEnumerable<MatchCondition>
List of match conditions.
- groupByUserSession
- IEnumerable<GroupByUserSession>
List of user session identifier group by clauses.
- action
- WebApplicationFirewallAction
Type of Actions.
Returns
A new WebApplicationFirewallCustomRule instance for mocking.
Applies to
Azure SDK for .NET