From 0593a5210788645932399770105dec81a1575701 Mon Sep 17 00:00:00 2001 From: Wes Morgan Date: Tue, 8 Jul 2014 17:26:47 -0400 Subject: [PATCH] add the /version endpoint to the API docs I had to find this by accident. It should be documented here. --- Documentation/api.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/api.md b/Documentation/api.md index 3b2ead450..173749445 100644 --- a/Documentation/api.md +++ b/Documentation/api.md @@ -13,6 +13,14 @@ This will bring up etcd listening on default ports (4001 for client communicatio The `-data-dir machine0` argument tells etcd to write machine configuration, logs and snapshots to the `./machine0/` directory. The `-name machine0` tells the rest of the cluster that this machine is named machine0. +## Getting the etcd version + +The etcd version can be obtained from the `/version` endpoint. + +```sh +curl -L http://127.0.0.1:4001/version +``` + ## Key Space Operations The primary API of etcd is a hierarchical key space.