Denis Mikhaylov
Denis Mikhaylov

Reputation: 2045

What Consul API to use to query list of services?

I have a service that needs to query a list of service from Consul.
However I don't need this service to be registered in Consul.
What API should I use then?
Do I need to use client agent or it's ok to query Consul servers directly?

Upvotes: 0

Views: 1150

Answers (1)

Bryan Urakawa
Bryan Urakawa

Reputation: 11

From: https://www.consul.io/docs/agent/http/health.html (and verified in our usage), you'd query with:

http[s]://:/v1/catalog/services

Upvotes: 1

Related Questions