RateLimitRule Class

Definition

Defines a rate limiting rule that can be included in a waf policy

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.RateLimitRuleTypeConverter))]
public class RateLimitRule : Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IRateLimitRule, Microsoft.Azure.PowerShell.Cmdlets.Cdn.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.RateLimitRuleTypeConverter))>]
type RateLimitRule = class
    interface IRateLimitRule
    interface IJsonSerializable
    interface ICustomRule
    interface IValidates
Public Class RateLimitRule
Implements IRateLimitRule, IValidates
Inheritance
RateLimitRule
Attributes
Implements

Constructors

Name Description
RateLimitRule()

Creates an new RateLimitRule instance.

Properties

Name Description
Action

Describes what action to be applied when rule matches

EnabledState

Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.

MatchCondition

List of match conditions.

Name

Defines the name of the custom rule

Priority

Defines in what order this rule be evaluated in the overall list of custom rules

RateLimitDurationInMinute

Defines rate limit duration. Default is 1 minute.

RateLimitThreshold

Defines rate limit threshold.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of RateLimitRule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of RateLimitRule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IRateLimitRule.

FromJsonString(String)

Creates a new instance of RateLimitRule, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of RateLimitRule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to