v1

latestOpenAPI 3.0.32026-07-14314472448.6 KB
service_accounts

Get single serviceaccount by Id

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

get/serviceaccounts/{serviceAccountId}

Path parameters

serviceAccountIdinteger required

Response

(empty)

accessControlobject
avatarUrlstring
idinteger
isDisabledboolean
isExternalboolean
loginstring
namestring
orgIdinteger
rolestring
tokensinteger
uidstring

Example response

{
  "accessControl": {
    "serviceaccounts:delete": true,
    "serviceaccounts:read": true,
    "serviceaccounts:write": true
  },
  "avatarUrl": "/avatar/85ec38023d90823d3e5b43ef35646af9",
  "login": "sa-grafana",
  "name": "grafana",
  "orgId": 1,
  "role": "Viewer",
  "uid": "fe1xejlha91xce"
}