Skip to content

List Workspace Service Account Tokens

managedgrafana_list_workspace_service_account_tokens R Documentation

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

maxResults

The maximum number of tokens to include in the results.

nextToken

The token for the next set of service accounts to return. (You receive this token from a previous list_workspace_service_account_tokens operation.)

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",
  serviceAccountId = "string",
  serviceAccountTokens = list(
    list(
      createdAt = as.POSIXct(
        "2015-01-01"
      ),
      expiresAt = as.POSIXct(
        "2015-01-01"
      ),
      id = "string",
      lastUsedAt = as.POSIXct(
        "2015-01-01"
      ),
      name = "string"
    )
  ),
  workspaceId = "string"
)

Request syntax

svc$list_workspace_service_account_tokens(
  maxResults = 123,
  nextToken = "string",
  serviceAccountId = "string",
  workspaceId = "string"
)