Manages Grafana library panels.
resource "grafana_library_panel" "test" {
name = "panel"
model_json = jsonencode({
gridPos = {
x = 0
y = 0
h = 10
w = 10
}
title = "panel"
type = "text"
version = 0
})
}
model_json
(String) The JSON model for the library panel.name
(String) Name of the library panel.folder_id
(String, Deprecated) Deprecated. Use folder_uid
insteadfolder_uid
(String) Unique ID (UID) of the folder containing the library panel.org_id
(String) The Organization ID. If not set, the Org ID defined in the provider block will be used.uid
(String) The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.created
(String) Timestamp when the library panel was created.dashboard_ids
(List of Number) Numerical IDs of Grafana dashboards containing the library panel.description
(String) Description of the library panel.folder_name
(String) Name of the folder containing the library panel.id
(String) The ID of this resource.panel_id
(Number) The numeric ID of the library panel computed by Grafana.type
(String) Type of the library panel (eg. text).updated
(String) Timestamp when the library panel was last modified.version
(Number) Version of the library panel.Import is supported using the following syntax:
terraform import grafana_library_panel.name "{{ uid }}"
terraform import grafana_library_panel.name "{{ orgID }}:{{ uid }}"