service_accounts

Get service account tokens

Required permissions (See note in the introduction for an explanation): action: serviceaccounts:read scope: global:serviceaccounts:id:1 (single service account)

Requires basic authentication and that the authenticated user is a Grafana Admin.

get/serviceaccounts/{serviceAccountId}/tokens

Request

  • Base URL
    /api (relative, and the document’s source URL is not known)
  • URL
    /api/serviceaccounts/{serviceAccountId}/tokens
  • Auth
    • HTTP basic
    • or API key in header Authorization

Path parameters

serviceAccountIdinteger required

Response

(empty)

createdstring date-time
expirationstring date-time
hasExpiredboolean
idinteger
isRevokedboolean
lastUsedAtstring date-time
namestring
secondsUntilExpirationnumber double

Example response

[
  {
    "created": "2022-03-23T10:31:02Z",
    "expiration": "2022-03-23T10:31:02Z",
    "id": 1,
    "lastUsedAt": "2022-03-23T10:31:02Z",
    "name": "grafana"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.