/version

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 GET request to the /version API endpoint:

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

The request results in a successful HTTP/1.1 200 OK response and a JSON map that contains Sensu version data:

{
  "etcd": {
    "etcdserver": "3.5.0",
    "etcdcluster": "3.5.0"
  },
  "sensu_backend": "6.4.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.5.0",
    "etcdcluster": "3.5.0"
  },
  "sensu_backend": "6.4.0"
}