ReqContentRewriteRule

ReqContentRewriteRule
ReqContentRewriteRule
JSON Example
{
    "enable": false,
    "index": 0,
    "name": "string",
    "pairs": [
        {
            "replacement_string": {
                "type": "string",
                "val": "string"
            },
            "search_string": {
                "type": "string",
                "val": "string"
            }
        }
    ],
    "rewritable_content_ref": "string"
}
boolean
enable
Optional

Enable rewrite rule on request body. Field introduced in 31.2.1. Allowed with any value in Enterprise, Enterprise with Cloud Services edition.

integer As int32 As int32
index
Optional

Index of the request rewrite rule. Field introduced in 31.2.1. Allowed with any value in Enterprise, Enterprise with Cloud Services edition.

string
name
Optional

Name of the request rewrite rule. Field introduced in 31.2.1. Allowed with any value in Enterprise, Enterprise with Cloud Services edition.

pairs
Optional

List of search-and-replace string pairs for the request body. For eg. Strings 'foo' and 'bar', where all searches of 'foo' in the request body will be replaced with 'bar'. Field introduced in 31.2.1. Allowed with any value in Enterprise, Enterprise with Cloud Services edition.

string
rewritable_content_ref
Optional

Rewrite only content types listed in this string group. Content types not present in this list are not rewritten. It is a reference to an object of type StringGroup. Field introduced in 31.2.1. Allowed with any value in Enterprise, Enterprise with Cloud Services edition.