Skip to content

Delete Workspace Service Account Token

managedgrafana_delete_workspace_service_account_token R Documentation

Deletes a token for the workspace service account

Description

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.

Usage

managedgrafana_delete_workspace_service_account_token(serviceAccountId,
  tokenId, workspaceId)

Arguments

serviceAccountId

[required] The ID of the service account from which to delete the token.

tokenId

[required] The ID of the token to delete.

workspaceId

[required] The ID of the workspace from which to delete the token.

Value

A list with the following syntax:

list(
  serviceAccountId = "string",
  tokenId = "string",
  workspaceId = "string"
)

Request syntax

svc$delete_workspace_service_account_token(
  serviceAccountId = "string",
  tokenId = "string",
  workspaceId = "string"
)