RspContentRewriteRule

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

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

integer As int32 As int32
index
Optional

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

string
name
Optional

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

pairs
Optional

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