EdgeVirtualServiceHttpRewriteLocationHeaderAction
EdgeVirtualServiceHttpRewriteLocationHeaderAction
Defines the action to rewrite location header in the HTTP response.
JSON Example
{
"protocol": "string",
"host": "string",
"port": 0,
"path": "string",
"keepQuery": false
}
string
As ^(?!\s+$).+
protocol
Required
HTTP or HTTPS protocol. Must be non-blank.
string
host
Optional
Constraints:
maxLength: 255
Host to which redirect the request. Default is the original host.
integer As int32
As int32
port
Optional
Constraints:
minimum: 1
maximum: 65535
Port to which redirect the request. Default is 80 for HTTP and 443 for HTTPS protocol.
string
path
Optional
Constraints:
maxLength: 2048
Path to which redirect the request. Default is the original path.
boolean
keepQuery
Optional
Constraints:
default: true
Keep or drop the query of the incoming request URI in the redirected URI.