Created
June 11, 2020 09:03
-
-
Save velotiotech/42a368f5114a113418cee856f8b016cc to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 1 - Consul HTTP Service Catalog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl http://localhost:8500/v1/catalog/service/web | |
[ | |
{ | |
"ID": "810f4804-dbce-03b1-056a-a81269ca90c1", | |
"Node": "devcube", | |
"Address": "127.0.0.1", | |
"Datacenter": "dc1", | |
"TaggedAddresses": { | |
"lan": "127.0.0.1", | |
"wan": "127.0.0.1" | |
}, | |
"NodeMeta": { | |
"consul-network-segment": "" | |
}, | |
"ServiceKind": "", | |
"ServiceID": "web", | |
"ServiceName": "web", | |
"ServiceTags": [ | |
"django" | |
], | |
"ServiceAddress": "", | |
"ServiceWeights": { | |
"Passing": 1, | |
"Warning": 1 | |
}, | |
"ServiceMeta": {}, | |
"ServicePort": 80, | |
"ServiceEnableTagOverride": false, | |
"ServiceProxyDestination": "", | |
"ServiceProxy": {}, | |
"ServiceConnect": {}, | |
"CreateIndex": 10, | |
"ModifyIndex": 10 | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment