Note: This resource is available only with Grafana Enterprise 8.+.
resource "grafana_role" "test" {
name = "test-role"
description = "test-role description"
uid = "test-ds-role-uid"
version = 1
global = true
hidden = false
permissions {
action = "org.users:add"
scope = "users:*"
}
permissions {
action = "org.users:write"
scope = "users:*"
}
permissions {
action = "org.users:read"
scope = "users:*"
}
}
data "grafana_role" "from_name" {
name = grafana_role.test.name
}
name
(String) Name of the roledescription
(String) Description of the role.display_name
(String) Display name of the role. Available with Grafana 8.5+.global
(Boolean) Boolean to state whether the role is available across all organizations or not.group
(String) Group of the role. Available with Grafana 8.5+.hidden
(Boolean) Boolean to state whether the role should be visible in the Grafana UI or not. Available with Grafana 8.5+.id
(String) The ID of this resource.org_id
(String) The Organization ID. If not set, the Org ID defined in the provider block will be used.permissions
(Set of Object) Specific set of actions granted by the role. (see below for nested schema)uid
(String) Unique identifier of the role. Used for assignments.version
(Number) Version of the role. A role is updated only on version increase. This field or auto_increment_version
should be set.permissions
Read-Only:
action
(String)scope
(String)