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
kindOne of:
cookie: matchesfrom.valueagainst the Cookie keyfrom.keyin the requestheader: matchesfrom.valueagainst the Header keyfrom.keyin the requestquery: matchesfrom.valueagainst the Query keyfrom.keyin the request
behavior
behaviorOne 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?