Returns a list of tokens for a workspace service account¶
Description¶
Returns a list of tokens for a workspace service account.
This does not return the key for each token. You cannot access keys after they are created. To create a new key, delete the token and recreate it.
Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.
Usage¶
managedgrafana_list_workspace_service_account_tokens(maxResults,
nextToken, serviceAccountId, workspaceId)
Arguments¶
-
maxResultsThe maximum number of tokens to include in the results.
-
nextTokenThe token for the next set of service accounts to return. (You receive this token from a previous
list_workspace_service_account_tokensoperation.) -
serviceAccountId[required] The ID of the service account for which to return tokens.
-
workspaceId[required] The ID of the workspace for which to return tokens.
Value¶
A list with the following syntax:
list(
nextToken = "string",
serviceAccountTokens = list(
list(
id = "string",
name = "string",
createdAt = as.POSIXct(
"2015-01-01"
),
expiresAt = as.POSIXct(
"2015-01-01"
),
lastUsedAt = as.POSIXct(
"2015-01-01"
)
)
),
serviceAccountId = "string",
workspaceId = "string"
)