Skip to content

Delete Workspace Service Account

managedgrafana_delete_workspace_service_account R Documentation

Deletes a workspace service account from the workspace

Description

Deletes a workspace service account from the workspace.

This will delete any tokens created for the service account, as well. If the tokens are currently in use, the will fail to authenticate / authorize after they are deleted.

Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.

Usage

managedgrafana_delete_workspace_service_account(serviceAccountId,
  workspaceId)

Arguments

serviceAccountId

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

workspaceId

[required] The ID of the workspace where the service account resides.

Value

A list with the following syntax:

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

Request syntax

svc$delete_workspace_service_account(
  serviceAccountId = "string",
  workspaceId = "string"
)