Create Workspace Service Account
managedgrafana_create_workspace_service_account | R Documentation |
Creates a service account for the workspace¶
Description¶
Creates a service account for the workspace. A service account can be
used to call Grafana HTTP APIs, and run automated workloads. After
creating the service account with the correct GrafanaRole
for your use
case, use create_workspace_service_account_token
to create a token
that can be used to authenticate and authorize Grafana HTTP API calls.
You can only create service accounts for workspaces that are compatible with Grafana version 9 and above.
For more information about service accounts, see Service accounts in the Amazon Managed Grafana User Guide.
For more information about the Grafana HTTP APIs, see Using Grafana HTTP APIs in the Amazon Managed Grafana User Guide.
Usage¶
Arguments¶
grafanaRole
[required] The permission level to use for this service account.
For more information about the roles and the permissions each has, see User roles in the Amazon Managed Grafana User Guide.
name
[required] A name for the service account. The name must be unique within the workspace, as it determines the ID associated with the service account.
workspaceId
[required] The ID of the workspace within which to create the service account.
Value¶
A list with the following syntax:
list(
grafanaRole = "ADMIN"|"EDITOR"|"VIEWER",
id = "string",
name = "string",
workspaceId = "string"
)