Policy Custom Rule
data class PolicyCustomRule(val action: String, val enabled: Boolean? = null, val groupRateLimitBy: String? = null, val matchConditions: List<PolicyCustomRuleMatchCondition>, val name: String? = null, val priority: Int, val rateLimitDuration: String? = null, val rateLimitThreshold: Int? = null, val ruleType: String)
Properties
Link copied to clipboard
Specifies what grouping the rate limit will count requests by. Possible values are GeoLocation
, ClientAddr
and None
.
Link copied to clipboard
One or more match_conditions
blocks as defined below.
Link copied to clipboard
Specifies the duration at which the rate limit policy will be applied. Should be used with RateLimitRule
rule type. Possible values are FiveMins
and OneMin
.
Link copied to clipboard
Specifies the threshold value for the rate limit policy. Must be greater than or equal to 1 if provided.