You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @gt-tech this is currently not possible via those endpoints (see #1781 and #294). The only way to do this currently is using prepared queries but those require a little state to be set up beforehand (create the query for multiple tags and then execute it). Closing this as a dup - please watch #1781 for updates on the other endpoints!
I have a service registered with 2 different service instance id with some variations in tag, see below on how it looks like
If I fire a request to filter the service with filtering by just one tag it works fine ....
http://consul-server/v1/catalog/service/api-server?tag=dev - works
http://consul-server/v1/catalog/service/api-server?tag=provider-abc - works
http://consul-server/v1/catalog/service/api-server?tag=dev&tag=junk - still works but shouldn't since there's no service that has both the provided tags, it just filters on tag: dev?
Surprisingly continuing with previous example -
http://consul-server/v1/catalog/service/api-server?tag=junk&tag=provider-abc- doesn't work so it seems that filtering is only done by the first value of "tag" in query parameters.
What's the best way to filter a specific service instance with filtering done using more than one "tags", if i am guessing it's possible.
The text was updated successfully, but these errors were encountered: