ArmCdnModelFactory.CustomRuleFrontDoor 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.
Defines contents of a web application rule.
public static Azure.ResourceManager.Cdn.Models.CustomRuleFrontDoor CustomRuleFrontDoor(string name = default, int priority = 0, Azure.ResourceManager.Cdn.Models.CustomRuleEnabledState? enabledState = default, Azure.ResourceManager.Cdn.Models.CdnRuleType ruleType = default, int? rateLimitDurationInMinutes = default, int? rateLimitThreshold = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.RateLimitGroupByVariable> groupBy = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.MatchConditionFrontDoor> matchConditions = default, Azure.ResourceManager.Cdn.Models.OverrideActionType action = default);
static member CustomRuleFrontDoor : string * int * Nullable<Azure.ResourceManager.Cdn.Models.CustomRuleEnabledState> * Azure.ResourceManager.Cdn.Models.CdnRuleType * Nullable<int> * Nullable<int> * seq<Azure.ResourceManager.Cdn.Models.RateLimitGroupByVariable> * seq<Azure.ResourceManager.Cdn.Models.MatchConditionFrontDoor> * Azure.ResourceManager.Cdn.Models.OverrideActionType -> Azure.ResourceManager.Cdn.Models.CustomRuleFrontDoor
Public Shared Function CustomRuleFrontDoor (Optional name As String = Nothing, Optional priority As Integer = 0, Optional enabledState As Nullable(Of CustomRuleEnabledState) = Nothing, Optional ruleType As CdnRuleType = Nothing, Optional rateLimitDurationInMinutes As Nullable(Of Integer) = Nothing, Optional rateLimitThreshold As Nullable(Of Integer) = Nothing, Optional groupBy As IEnumerable(Of RateLimitGroupByVariable) = Nothing, Optional matchConditions As IEnumerable(Of MatchConditionFrontDoor) = Nothing, Optional action As OverrideActionType = Nothing) As CustomRuleFrontDoor
Parameters
- name
- String
Describes the name of the rule.
- priority
- Int32
Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
- enabledState
- Nullable<CustomRuleEnabledState>
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- ruleType
- CdnRuleType
Describes type of rule.
Time window for resetting the rate limit count. Default is 1 minute.
- groupBy
- IEnumerable<RateLimitGroupByVariable>
Describes the list of variables to group the rate limit requests.
- matchConditions
- IEnumerable<MatchConditionFrontDoor>
List of match conditions.
- action
- OverrideActionType
Describes what action to be applied when rule matches.
Returns
A new CustomRuleFrontDoor instance for mocking.