Frontend Settings API

Get Settings

GET /api/frontend/settings

Example Request:

  1. GET /api/frontend/settings HTTP/1.1
  2. Accept: application/json
  3. Content-Type: application/json
  4. Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk

Example Response:

  1. HTTP/1.1 200
  2. Content-Type: application/json
  3. {
  4. "allowOrgCreate":true,
  5. "appSubUrl":"",
  6. "buildInfo":{
  7. "buildstamp":xxxxxx,
  8. "commit":"vyyyy",
  9. "version":"zzzzz"
  10. },
  11. "datasources":{
  12. "datasourcename":{
  13. "index":"grafana-dash",
  14. "meta":{
  15. "annotations":true,
  16. "module":"plugins/datasource/grafana/datasource",
  17. "name":"Grafana",
  18. "partials":{
  19. "annotations":"app/plugins/datasource/grafana/partials/annotations.editor.html",
  20. "config":"app/plugins/datasource/grafana/partials/config.html"
  21. },
  22. "pluginType":"datasource",
  23. "serviceName":"Grafana",
  24. "type":"grafanasearch"
  25. }
  26. }
  27. },
  28. "defaultDatasource": "Grafana"
  29. }

Login API

GET /api/login/ping

Example Request:

  1. GET /api/login/ping HTTP/1.1
  2. Accept: application/json
  3. Content-Type: application/json
  4. Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk

Example Response:

  1. HTTP/1.1 200
  2. Content-Type: application/json
  3. {"message": "Logged in"}

Health API

Returns health information about Grafana

GET /api/health

Example Request

  1. GET /api/health
  2. Accept: application/json

Example Response:

  1. HTTP/1.1 200 OK
  2. {
  3. "commit": "087143285",
  4. "database": "ok",
  5. "version": "5.1.3"
  6. }