match
Summary
Matches determine if a request "matches" a specified parameter. In rules
they are used to see if individual requests should be routed to an upstream cluster.
Example object
{
"kind": "/services/example/latest/",
"behavior": "prefix",
"from": "",
"to": ""
}
Fields
kind
kind
One of:
cookie
: matchesfrom.value
against the Cookie keyfrom.key
in the requestheader
: matchesfrom.value
against the Header keyfrom.key
in the requestquery
: matchesfrom.value
against the Query keyfrom.key
in the request
behavior
behavior
One of:
"exact"
"regex"
"range"
"prefix"
"suffix"
Defaults to exact
from
from
{"key": "", "value": ""}
pair specifying the source of the match.
to
to
{"key": "", "value": ""}
pair specifying the new location to set based off the match.
Last updated
Was this helpful?