EdgeVirtualServiceHttpRewriteUrlAction
EdgeVirtualServiceHttpRewriteUrlAction
Defines the action to rewrite the HTTP request URL.
JSON Example
{
"host": "string",
"path": "string",
"query": "string",
"keepQuery": false
}
string
As ^(?!\s+$).+
host
Optional
Constraints:
maxLength: 255
Host to use for the rewritten URL. If omitted, the existing host will be used.
string
As ^(?!\s+$).+
path
Optional
Constraints:
maxLength: 2048
Path to use for the rewritten URL. If omitted, the existing path will be used.
string
As ^(?!\s+$).+
query
Optional
Constraints:
maxLength: 2048
Query string to use or append to the existing query string in the rewritten URL.
boolean
keepQuery
Optional
Constraints:
default: true
Whether or not to keep the existing query string when rewriting the URL. Defaults to true.