Skip to content

Instantly share code, notes, and snippets.

@kenjiskywalker
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenjiskywalker/0b2ff721eb6202f1ac97 to your computer and use it in GitHub Desktop.
Save kenjiskywalker/0b2ff721eb6202f1ac97 to your computer and use it in GitHub Desktop.
['-']% curl -X PUT -d 'bar' http://127.0.0.1:8500/v1/kv/foo
true
['-']%
['-']%
['-']% curl -s http://127.0.0.1:8500/v1/kv/foo | jq .
[
  {
    "CreateIndex": 538,
    "ModifyIndex": 538,
    "LockIndex": 0,
    "Key": "foo",
    "Flags": 0,
    "Value": "YmFy"
  }
]
['-']%
['-']% curl -s http://127.0.0.2:8500/v1/kv/foo | jq .
[
  {
    "CreateIndex": 538,
    "ModifyIndex": 538,
    "LockIndex": 0,
    "Key": "foo",
    "Flags": 0,
    "Value": "YmFy"
  }
]
['-']%
['-']% curl -X PUT -d 'barbar' http://127.0.0.2:8500/v1/kv/foofoo
true
['-']%
['-']% curl -s http://127.0.0.1:8500/v1/kv/foofoo | jq .
[
  {
    "CreateIndex": 540,
    "ModifyIndex": 540,
    "LockIndex": 0,
    "Key": "foofoo",
    "Flags": 0,
    "Value": "YmFyYmFy"
  }
]
['-']%
['-']%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment