mirror of https://github.com/status-im/consul.git
commit
f6e042b6f2
|
@ -136,7 +136,7 @@ In addition to the DNS API, the HTTP API can be used to query services:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ curl http://localhost:8500/v1/catalog/service/web
|
$ curl http://localhost:8500/v1/catalog/service/web
|
||||||
[{"Node":"agent-one","Address":"172.20.20.11","ServiceID":"web", \
|
[{"Node":"Armons-MacBook-Air","Address":"172.20.20.11","ServiceID":"web", \
|
||||||
"ServiceName":"web","ServiceTags":["rails"],"ServicePort":80}]
|
"ServiceName":"web","ServiceTags":["rails"],"ServicePort":80}]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue