RateLimiterAction

RateLimiterAction
RateLimiterAction
JSON Example
{
    "file": {
        "content_type": "string",
        "file_content": "string",
        "file_length": 0
    },
    "redirect": {
        "add_string": "string",
        "host": {
            "tokens": [
                {
                    "end_index": 0,
                    "start_index": 0,
                    "str_value": "string",
                    "type": "string"
                }
            ],
            "type": "string"
        },
        "keep_query": false,
        "path": {
            "tokens": [
                {
                    "end_index": 0,
                    "start_index": 0,
                    "str_value": "string",
                    "type": "string"
                }
            ],
            "type": "string"
        },
        "port": 0,
        "protocol": "string",
        "status_code": "string"
    },
    "status_code": "string",
    "type": "string"
}
file
Optional

file

redirect
Optional

redirect

string
status_code
Optional
Constraints: default: HTTP_LOCAL_RESPONSE_STATUS_CODE_429

HTTP status code for Local Response rate limit action. Enum options - HTTP_LOCAL_RESPONSE_STATUS_CODE_200, HTTP_LOCAL_RESPONSE_STATUS_CODE_204, HTTP_LOCAL_RESPONSE_STATUS_CODE_403, HTTP_LOCAL_RESPONSE_STATUS_CODE_404, HTTP_LOCAL_RESPONSE_STATUS_CODE_429, HTTP_LOCAL_RESPONSE_STATUS_CODE_501. Allowed in Enterprise edition with any value, Basic edition(Allowed values- HTTP_LOCAL_RESPONSE_STATUS_CODE_429), Essentials, Enterprise with Cloud Services edition.

string
type
Optional
Constraints: default: RL_ACTION_NONE

Type of action to be enforced upon hitting the rate limit. Enum options - RL_ACTION_NONE, RL_ACTION_DROP_CONN, RL_ACTION_RESET_CONN, RL_ACTION_CLOSE_CONN, RL_ACTION_LOCAL_RSP, RL_ACTION_REDIRECT. Allowed in Enterprise edition with any value, Basic edition(Allowed values- RL_ACTION_NONE,RL_ACTION_DROP_CONN), Essentials, Enterprise with Cloud Services edition.