consul-api icon indicating copy to clipboard operation
consul-api copied to clipboard

Filter parameter is not supported

Open fridgebuzz opened this issue 6 years ago • 1 comments

I would like to make calls using the filter parameter, for example:

curl -G localhost:8500/v1/catalog/service/api-internal --data-urlencode 'filter=NodeMeta.os == linux'

is an example of filtering the result of a catalog service request to only those with NodeMeta key "os" with value "linux". I can't see any way to do this with this library. Is it a missing feature or am I missing something about its usage?

fridgebuzz avatar Sep 20 '19 18:09 fridgebuzz

Would be nice to have this one since now Consul is pushing all queries in this direction with filters. Tag and node-meta are deprecated

jdeex avatar Apr 16 '21 19:04 jdeex