Skip to content

Server Health Status and Server Version Information

The na-user server has a health status and server version API endpoints at /health and /version which return some useful version and build information. A successful API call to either of those endpoints indicates a healthy server ready for use.

These endpoints are not authenticated.

An example call to, e.g.

curl -k -s 'https://na-user.example.com/health'

Will result in a similar JSON return value:

{
  "api": {
    "code": "0",
    "message": "OK"
  },
  "result": {
    "version": "0.0.1",
    "program": "na-user",
    "revision": "b662a9e",
    "branch": "master",
    "build_date": "2018-03-23T05:31:26Z",
    "go_version": "go1.10",
    "os_arch": "linux/amd64",
    "product_name": "na-user",
    "license_id": "bec10a8e83812ed2b3dbbeba4af06e2b",
    "license_tier": "Standard",
    "license_expire": "2019-05-22T15:55:11-07:00"
  }
}