Skip to content

List Workspace Service Accounts

managedgrafana_list_workspace_service_accounts R Documentation

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(
      grafanaRole = "ADMIN"|"EDITOR"|"VIEWER",
      id = "string",
      isDisabled = "string",
      name = "string"
    )
  ),
  workspaceId = "string"
)

Request syntax

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