Manages a single permission item for a folder. Conflicts with the "grafana_folder_permission" resource which manages the entire set of permissions for a folder. * Official documentation * HTTP API
resource "grafana_team" "team" {
name = "Team Name"
}
resource "grafana_user" "user" {
email = "user.name@example.com"
login = "user.name"
password = "my-password"
}
resource "grafana_folder" "collection" {
title = "Folder Title"
}
resource "grafana_folder_permission_item" "on_role" {
folder_uid = grafana_folder.collection.uid
role = "Viewer"
permission = "Edit"
}
resource "grafana_folder_permission_item" "on_team" {
folder_uid = grafana_folder.collection.uid
team = grafana_team.team.id
permission = "View"
}
resource "grafana_folder_permission_item" "on_user" {
folder_uid = grafana_folder.collection.uid
user = grafana_user.user.id
permission = "Admin"
}
folder_uid
(String) The UID of the folder.permission
(String) the permission to be assignedorg_id
(String) The Organization ID. If not set, the Org ID defined in the provider block will be used.role
(String) the role onto which the permission is to be assignedteam
(String) the team onto which the permission is to be assigneduser
(String) the user or service account onto which the permission is to be assignedid
(String) The ID of this resource.Import is supported using the following syntax:
terraform import grafana_folder_permission_item.name "{{ folderUID }}:{{ type (role, team, or user) }}:{{ identifier }}"
terraform import grafana_folder_permission_item.name "{{ orgID }}:{{ folderUID }}:{{ type (role, team, or user) }}:{{ identifier }}"