Skip to content

Returns a list of service accounts for a workspace

Description

Returns a list of service accounts for a workspace.

Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.

Usage

managedgrafana_list_workspace_service_accounts(maxResults, nextToken,
  workspaceId)

Arguments

  • maxResults

    The maximum number of service accounts 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_accounts operation.)

  • workspaceId

    [required] The workspace for which to list service accounts.

Value

A list with the following syntax:

list(
  nextToken = "string",
  serviceAccounts = list(
    list(
      id = "string",
      name = "string",
      isDisabled = "string",
      grafanaRole = "ADMIN"|"EDITOR"|"VIEWER"
    )
  ),
  workspaceId = "string"
)

Request syntax

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