You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/dashboard.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,8 @@ data "grafana_dashboard" "from_uid" {
52
52
### Read-Only
53
53
54
54
-`config_json` (String) The complete dashboard model JSON.
55
-
-`folder` (Number) The numerical ID of the folder where the Grafana dashboard is found.
55
+
-`folder` (Number, Deprecated) Deprecated. Use `folder_uid` instead
56
+
-`folder_uid` (String) The UID of the folder where the Grafana dashboard is found.
56
57
-`id` (String) The ID of this resource.
57
58
-`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.
58
59
-`slug` (String) URL slug of the dashboard (deprecated).
// use depends_on to wait for dashboard resource to be created before searching
@@ -98,7 +98,8 @@ data "grafana_dashboards" "wrong_org" {
98
98
99
99
### Optional
100
100
101
-
-`folder_ids` (List of Number) Numerical IDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `[0]` for General folder), or leave blank to get all dashboards in all folders.
101
+
-`folder_ids` (List of Number, Deprecated) Deprecated, use `folder_uids` instead.
102
+
-`folder_uids` (List of String) UIDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `["General"]` for General folder), or leave blank to get all dashboards in all folders.
102
103
-`limit` (Number) Maximum number of dashboard search results to return. Defaults to `5000`.
103
104
-`org_id` (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
104
105
-`tags` (List of String) List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
-`folder_id` (String) ID of the folder where the library panel is stored.
46
+
-`folder_id` (String, Deprecated) Deprecated. Use `folder_uid` instead
47
+
-`folder_uid` (String) Unique ID (UID) of the folder containing the library panel.
47
48
-`org_id` (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
48
49
-`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.
Copy file name to clipboardExpand all lines: internal/resources/grafana/data_source_dashboards.go
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,15 @@ Datasource for retrieving all dashboards. Specify list of folder IDs to search i
26
26
"folder_ids": {
27
27
Type: schema.TypeList,
28
28
Optional: true,
29
-
Description: "Numerical IDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `[0]` for General folder), or leave blank to get all dashboards in all folders.",
29
+
Description: "Deprecated, use `folder_uids` instead.",
30
30
Elem: &schema.Schema{Type: schema.TypeInt},
31
+
Deprecated: "Use `folder_uids` instead.",
32
+
},
33
+
"folder_uids": {
34
+
Type: schema.TypeList,
35
+
Optional: true,
36
+
Description: "UIDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `[\"General\"]` for General folder), or leave blank to get all dashboards in all folders.",
37
+
Elem: &schema.Schema{Type: schema.TypeString},
31
38
},
32
39
"limit": {
33
40
Type: schema.TypeInt,
@@ -81,6 +88,11 @@ func dataSourceReadDashboards(ctx context.Context, d *schema.ResourceData, meta
0 commit comments