service_accounts
CreateNewToken adds a token to a service account
Required permissions (See note in the introduction for an explanation): action: serviceaccounts:write scope: serviceaccounts:id:1 (single service account)
post/serviceaccounts/{serviceAccountId}/tokens
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/serviceaccounts/{serviceAccountId}/tokens
- Auth
- HTTP basic
- or API key in header Authorization
Path parameters
serviceAccountIdinteger required
Request body
Response
(empty)
Example response
{
"id": 1,
"key": "glsa_yscW25imSKJIuav8zF37RZmnbiDvB05G_fcaaf58a",
"name": "grafana"
}Changes
No recorded changes to this operation across all 2 revisions of this API.