Get Security Policy Rule Rate Limit Option
Constructors
Properties
Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'banDurationSec' when the number of requests that exceed the 'rateLimitThreshold' also exceed this 'banThreshold'.
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
Determines the key to enforce the rateLimitThreshold on
Enforce On Key Config of this security policy
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.
Threshold at which to begin ratelimiting.