ManagedGrafana / Client / delete_workspace_service_account_token
delete_workspace_service_account_token#
- ManagedGrafana.Client.delete_workspace_service_account_token(**kwargs)#
Deletes a token for the workspace service account.
This will disable the key associated with the token. If any automation is currently using the key, it will no longer be authenticated or authorized to perform actions with the Grafana HTTP APIs.
Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.
See also: AWS API Documentation
Request Syntax
response = client.delete_workspace_service_account_token( serviceAccountId='string', tokenId='string', workspaceId='string' )
- Parameters:
serviceAccountId (string) –
[REQUIRED]
The ID of the service account from which to delete the token.
tokenId (string) –
[REQUIRED]
The ID of the token to delete.
workspaceId (string) –
[REQUIRED]
The ID of the workspace from which to delete the token.
- Return type:
dict
- Returns:
Response Syntax
{ 'serviceAccountId': 'string', 'tokenId': 'string', 'workspaceId': 'string' }
Response Structure
(dict) –
serviceAccountId (string) –
The ID of the service account where the token was deleted.
tokenId (string) –
The ID of the token that was deleted.
workspaceId (string) –
The ID of the workspace where the token was deleted.
Exceptions