File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -249,13 +249,13 @@ Example of routing a request with metadata filtering:
249
249
` ` ` shell
250
250
$ curl http://127.0.0.1:9180/apisix/admin/routes/5 -H "X-API-KEY: $admin_key" -X PUT -i -d '
251
251
{
252
- "uri": "/nacosWithMetadata /*",
252
+ "uri": "/consulWithMetadata /*",
253
253
"upstream": {
254
- "service_name": "APISIX-NACOS ",
254
+ "service_name": "APISIX-CONSUL ",
255
255
"type": "roundrobin",
256
- "discovery_type": "nacos ",
256
+ "discovery_type": "consul ",
257
257
"discovery_args": {
258
- "metadata ": {
258
+ "metadata_match ": {
259
259
"version": ["v1", "v2"]
260
260
}
261
261
}
@@ -270,13 +270,13 @@ For multiple metadata criteria:
270
270
` ` ` shell
271
271
$ curl http://127.0.0.1:9180/apisix/admin/routes/6 -H "X-API-KEY: $admin_key" -X PUT -i -d '
272
272
{
273
- "uri": "/nacosWithMultipleMetadata /*",
273
+ "uri": "/consulWithMultipleMetadata /*",
274
274
"upstream": {
275
- "service_name": "APISIX-NACOS ",
275
+ "service_name": "APISIX-CONSUL ",
276
276
"type": "roundrobin",
277
- "discovery_type": "nacos ",
277
+ "discovery_type": "consul ",
278
278
"discovery_args": {
279
- "metadata ": {
279
+ "metadata_match ": {
280
280
"lane": ["a"],
281
281
"env": ["prod"]
282
282
}
You can’t perform that action at this time.
0 commit comments