Version API

Get the Sensu backend and etcd versions

The /version API endpoint provides HTTP GET access to the Sensu backend and etcd versions for the Sensu instance.

Example

The following example demonstrates a request to the /version API endpoint, resulting in a JSON map that contains Sensu version data.

curl -X GET \
http://127.0.0.1:8080/version

HTTP/1.1 200 OK
{
  "etcd": {
    "etcdserver": "3.3.22",
    "etcdcluster": "3.3.0"
  },
  "sensu_backend": "6.0.0"
}

API Specification

/version (GET)
description Returns the etcd server version and Sensu backend version. For clustered Sensu installations with the default embedded etcd, also returns the etcd cluster version (which may not match the etcd server version or the cluster versions of other backends in the cluster).
example url http://hostname:8080/version
response type Map
response codes
  • Success: 200 (OK)
  • Error: 500 (Internal Server Error)
output
{
  "etcd": {
    "etcdserver": "3.3.22",
    "etcdcluster": "3.3.0"
  },
  "sensu_backend": "6.x.x"
}