Skip to content

Instantly share code, notes, and snippets.

@pranavcode
Created March 10, 2019 08:10
Show Gist options
  • Save pranavcode/c78d6a2d9787394cd35ebfd3ea457843 to your computer and use it in GitHub Desktop.
Save pranavcode/c78d6a2d9787394cd35ebfd3ea457843 to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 1 - Consul HTTP API
$ curl localhost:8500/v1/catalog/nodes
[
{
"ID": "ef46ebb7-3496-346f-f67a-30117cfec0ad",
"Node": "devcube",
"Address": "127.0.0.1",
"Datacenter": "dc1",
"TaggedAddresses": {
"lan": "127.0.0.1",
"wan": "127.0.0.1"
},
"Meta": {
"consul-network-segment": ""
},
"CreateIndex": 9,
"ModifyIndex": 10
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment