Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created October 27, 2014 22:43
Show Gist options
  • Save bodepd/bb3dce7aed83d544ca46 to your computer and use it in GitHub Desktop.
Save bodepd/bb3dce7aed83d544ca46 to your computer and use it in GitHub Desktop.
(venv)root@etcd1:/vagrant/venv/src/jiocloud/jiocloud# curl -v http://127.0.0.1:8500/v1/kv/status/
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8500 (#0)
> GET /v1/kv/status/ HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 127.0.0.1:8500
> Accept: */*
>
< HTTP/1.1 404 Not Found
< X-Consul-Index: 534
< X-Consul-Knownleader: true
< X-Consul-Lastcontact: 0
< Date: Mon, 27 Oct 2014 22:42:58 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host 127.0.0.1 left intact
(venv)root@etcd1:/vagrant/venv/src/jiocloud/jiocloud# curl -v http://127.0.0.1:8500/v1/kv/status/?recurse
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8500 (#0)
> GET /v1/kv/status/?recurse HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 127.0.0.1:8500
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: application/json
< X-Consul-Index: 527
< X-Consul-Knownleader: true
< X-Consul-Lastcontact: 0
< Date: Mon, 27 Oct 2014 22:43:02 GMT
< Content-Length: 509
<
* Connection #0 to host 127.0.0.1 left intact
[{"CreateIndex":527,"ModifyIndex":527,"LockIndex":0,"Key":"status/puppet/failed/fo1o2","Flags":0,"Value":"MTQxNDQzODYxNC42Mw=="},{"CreateIndex":524,"ModifyIndex":524,"LockIndex":0,"Key":"status/puppet/failed/fo1o","Flags":0,"Value":"MTQxNDQzODYxMi41Mg=="},{"CreateIndex":521,"ModifyIndex":521,"LockIndex":0,"Key":"status/puppet/failed/foo","Flags":0,"Value":"MTQxNDQzODYxMC4wMg=="},{"CreateIndex":516,"ModifyIndex":516,"LockIndex":0,"Key":"status/validation/success/foo","Flags":0,"Value":"MTQxNDQzODU4MS4w"}](venv)root@etcd1:/vagrant/venv/src/jiocloud/jiocloud#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment