2015-12-16 05:05:05 +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
|
|
|
|
|
2015-12-19 17:56:18 +03:00
|
|
|
etcd provides a `/health` endpoint to verify the health of a particular member.
|
2015-12-16 05:05:05 +03:00
|
|
|
|
|
|
|
```sh
|
|
|
|
curl http://10.0.0.10:2379/health
|
|
|
|
```
|
|
|
|
|
|
|
|
```json
|
|
|
|
{"health": "true"}
|
|
|
|
```
|