Skip to content

/AWS1/CL_GRF=>LISTWORKSPACESVCACCTTOKENS()

About ListWorkspaceServiceAccountTokens

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.

Method Signature

IMPORTING

Required arguments:

IV_SERVICEACCOUNTID TYPE /AWS1/GRFSTRING /AWS1/GRFSTRING

The ID of the service account for which to return tokens.

IV_WORKSPACEID TYPE /AWS1/GRFWORKSPACEID /AWS1/GRFWORKSPACEID

The ID of the workspace for which to return tokens.

Optional arguments:

IV_MAXRESULTS TYPE /AWS1/GRFINTEGER /AWS1/GRFINTEGER

The maximum number of tokens to include in the results.

IV_NEXTTOKEN TYPE /AWS1/GRFPAGINATIONTOKEN /AWS1/GRFPAGINATIONTOKEN

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

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_GRFLSTWORKSPACESVCA03 /AWS1/CL_GRFLSTWORKSPACESVCA03