EdgeVirtualServiceHttpResponseMatchCriteria
EdgeVirtualServiceHttpResponseMatchCriteria
Defines a response match criteria. If multiple matches are configured, it is treated as logically AND operation. All match types must be true for the response match criteria to be satisfied.
JSON Example
{
"clientIpMatch": {
"matchCriteria": "string",
"addresses": [
"string"
]
},
"servicePortMatch": {
"matchCriteria": "string",
"ports": [
0
]
},
"methodMatch": {
"matchCriteria": "string",
"methods": [
"string"
]
},
"protocol": "string",
"pathMatch": {
"matchCriteria": "string",
"matchStrings": [
"string"
]
},
"queryMatch": [
"string"
],
"cookieMatch": {
"matchCriteria": "string",
"key": "string",
"value": "string"
},
"locationHeaderMatch": {
"matchCriteria": "string",
"value": [
"string"
]
},
"requestHeaderMatch": [
{
"matchCriteria": "string",
"value": [
"string"
],
"key": "string"
}
],
"responseHeaderMatch": [
{
"matchCriteria": "string",
"value": [
"string"
],
"key": "string"
}
],
"statusCodeMatch": {
"matchCriteria": "string",
"statusCodes": [
"200",
"302",
"400-450"
]
}
}
string As ^(?!\s+$).+
protocol
Optional
Defines match criteria based on HTTP or HTTPS protocol.
array of string
queryMatch
Optional
Defines match criteria based on query strings which are in key=value format.
array of EdgeVirtualServiceHeaderMatch
requestHeaderMatch
Optional
Defines match criteria based on the request headers.
array of EdgeVirtualServiceHeaderMatch
responseHeaderMatch
Optional
Defines match criteria based on the response headers.