You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.6 KiB
71 lines
1.6 KiB
{
|
|
"services": [
|
|
{
|
|
"id": 123,
|
|
"backend_version": 1,
|
|
"proxy": {
|
|
"api_backend": "http://127.0.0.1:8081",
|
|
"hostname_rewrite": "echo",
|
|
"hosts": [
|
|
"localhost"
|
|
],
|
|
"backend": {
|
|
"endpoint": "http://127.0.0.1:8081",
|
|
"host": "echo"
|
|
},
|
|
"policy_chain": [
|
|
{ "name": "apicast.policy.apicast" },
|
|
{
|
|
"name": "apicast.policy.headers",
|
|
"configuration": {
|
|
"response": [
|
|
{ "op": "set", "header": "X-SVC", "value": "svc1" }
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"proxy_rules": [
|
|
{
|
|
"http_method": "GET",
|
|
"pattern": "/svc1",
|
|
"metric_system_name": "hits",
|
|
"delta": 1
|
|
}
|
|
]
|
|
}
|
|
}, {
|
|
"id": 456,
|
|
"backend_version": 1,
|
|
"proxy": {
|
|
"api_backend": "http://127.0.0.1:8081",
|
|
"hostname_rewrite": "echo",
|
|
"hosts": [
|
|
"localhost"
|
|
],
|
|
"backend": {
|
|
"endpoint": "http://127.0.0.1:8081",
|
|
"host": "echo"
|
|
},
|
|
"policy_chain": [
|
|
{ "name": "apicast.policy.apicast" },
|
|
{
|
|
"name": "apicast.policy.headers",
|
|
"configuration": {
|
|
"response": [
|
|
{ "op": "set", "header": "X-SVC", "value": "svc2" }
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"proxy_rules": [
|
|
{
|
|
"http_method": "GET",
|
|
"pattern": "/svc2",
|
|
"metric_system_name": "hits",
|
|
"delta": 1
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|