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
Add optional uid parameter to grafana_folder data source (#2301)
* Make title optional and add uid parameter for more flexible folder lookup.
* Support finding folders by title only, uid only, or both title and uid
* Add comprehensive error handling with specific error messages for different lookup scenarios
* Add extensive test coverage for all lookup combinations and error cases
* Update docs.
Copy file name to clipboardExpand all lines: docs/data-sources/folder.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,17 +27,14 @@ data "grafana_folder" "from_title" {
27
27
<!-- schema generated by tfplugindocs -->
28
28
## Schema
29
29
30
-
### Required
31
-
32
-
-`title` (String) The title of the folder.
33
-
34
30
### Optional
35
31
36
32
-`org_id` (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
33
+
-`title` (String) The title of the folder. If not set, only the uid is used to find the folder.
34
+
-`uid` (String) The uid of the folder. If not set, only the title of the folder is used to find the folder.
37
35
38
36
### Read-Only
39
37
40
38
-`id` (String) The ID of this resource.
41
39
-`parent_folder_uid` (String) The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
0 commit comments