2017-06-30 02:07:45 +03:00
|
|
|
**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**
|
|
|
|
|
|
|
|
[v3-docs]: ../docs.md#documentation
|
|
|
|
|
|
|
|
|
2016-04-26 22:58:49 +03:00
|
|
|
# Miscellaneous APIs
|
|
|
|
|
|
|
|
* [Getting the etcd version](#getting-the-etcd-version)
|
|
|
|
* [Checking health of an etcd member node](#checking-health-of-an-etcd-member-node)
|
|
|
|
|
|
|
|
## Getting the etcd version
|
|
|
|
|
|
|
|
The etcd version of a specific instance can be obtained from the `/version` endpoint.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
curl -L http://127.0.0.1:2379/version
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
etcd 2.0.12
|
|
|
|
```
|
|
|
|
|
|
|
|
## Checking health of an etcd member node
|
|
|
|
|
|
|
|
etcd provides a `/health` endpoint to verify the health of a particular member.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
curl http://10.0.0.10:2379/health
|
|
|
|
```
|
|
|
|
|
|
|
|
```json
|
2017-07-26 23:47:50 +03:00
|
|
|
{"health":true}
|
2016-04-26 22:58:49 +03:00
|
|
|
```
|