Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filtering returned consul.io services on tag

Tags:

consul

I was wondering if there is a way to filter the services consul returns me using tags.

The endpoint:

/v1/catalog/services

returns a map of services to lists of tags and requires me to parse the services after they are returned.

I was wondering if there is some way to pass the tag (or tags) I want as a query parameter to the endpoint and get a map back that is already filtered.

like image 337
mvryan Avatar asked Apr 02 '15 15:04

mvryan


1 Answers

Based on the docs and my own experiments this doesn't appear to be supported, agree that it would be useful.

like image 146
superfell Avatar answered Oct 05 '22 11:10

superfell