I’m using the http call curl -s --get http://MyConsulURL/v1/catalog/services
to list services like so:
<code>"MYSVC": [],
"MYSVC1": ["mytag1","mytag2"],
"MYSVC2": ["mytag3","mytag3"],
"OTHERSVC": [],
...snip...
</code>
<code>"MYSVC": [],
"MYSVC1": ["mytag1","mytag2"],
"MYSVC2": ["mytag3","mytag3"],
"OTHERSVC": [],
...snip...
</code>
"MYSVC": [],
"MYSVC1": ["mytag1","mytag2"],
"MYSVC2": ["mytag3","mytag3"],
"OTHERSVC": [],
...snip...
My question is, is there a way to use the filter option on the http call to return only the services with name containing the string “MYSVC”?
PS. I know I can pipe it into a jq query, but I’m trying to filter the results before they get returned.