resource "grafana_dashboard" "test" {
config_json = jsonencode({
id = 12345,
uid = "test-ds-dashboard-uid"
title = "Production Overview",
tags = ["templated"],
timezone = "browser",
schemaVersion = 16,
version = 0,
refresh = "25s"
})
}
data "grafana_dashboard" "from_id" {
dashboard_id = grafana_dashboard.test.dashboard_id
}
data "grafana_dashboard" "from_uid" {
depends_on = [
grafana_dashboard.test
]
uid = "test-ds-dashboard-uid"
}
dashboard_id
(Number) The numerical ID of the Grafana dashboard. Specify either this or uid
. Defaults to -1
.org_id
(String) The Organization ID. If not set, the Org ID defined in the provider block will be used.uid
(String) The uid of the Grafana dashboard. Specify either this or dashboard_id
. Defaults to ``.config_json
(String) The complete dashboard model JSON.folder
(Number, Deprecated) Deprecated. Use folder_uid
insteadfolder_uid
(String) The UID of the folder where the Grafana dashboard is found.id
(String) The ID of this resource.is_starred
(Boolean) Whether or not the Grafana dashboard is starred. Starred Dashboards will show up on your own Home Dashboard by default, and are a convenient way to mark Dashboards that you’re interested in.slug
(String) URL slug of the dashboard (deprecated).title
(String) The title of the Grafana dashboard.url
(String) The full URL of the dashboard.version
(Number) The numerical version of the Grafana dashboard.