/AWS1/CL_GRF=>CREATEWORKSPACESVCACCTTOKEN()
¶
About CreateWorkspaceServiceAccountToken¶
Creates a token that can be used to authenticate and authorize Grafana HTTP API operations for the given workspace service account. The service account acts as a user for the API operations, and defines the permissions that are used by the API.
When you create the service account token, you will receive a key that is used when calling Grafana APIs. Do not lose this key, as it will not be retrievable again.
If you do lose the key, you can delete the token and recreate it to receive a new key. This will disable the initial key.
Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_NAME
TYPE /AWS1/GRFSVCACCOUNTTOKENNAME
/AWS1/GRFSVCACCOUNTTOKENNAME
¶
A name for the token to create.
IV_SECONDSTOLIVE
TYPE /AWS1/GRFINTEGER
/AWS1/GRFINTEGER
¶
Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.
IV_SERVICEACCOUNTID
TYPE /AWS1/GRFSTRING
/AWS1/GRFSTRING
¶
The ID of the service account for which to create a token.
IV_WORKSPACEID
TYPE /AWS1/GRFWORKSPACEID
/AWS1/GRFWORKSPACEID
¶
The ID of the workspace the service account resides within.