Skip to content

Commit 96c114d

Browse files
dprokopclaude
andcommitted
Fix: Rename v1beta1 example directory to v1
The SDK bump graduated the dashboard resource from v1beta1 to v1, but the example directory was not renamed. This caused TestAccExamples to fail looking for examples/resources/grafana_apps_dashboard_dashboard_v1/. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 25aeda6 commit 96c114d

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

docs/resources/apps_dashboard_dashboard_v1.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,25 @@ Manages Grafana dashboards using the new Grafana APIs.
1414
* [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
1515
* [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/#new-dashboard-apis)
1616

17-
17+
## Example Usage
18+
19+
```terraform
20+
resource "grafana_apps_dashboard_dashboard_v1beta1" "example" {
21+
metadata {
22+
uid = "example-dashboard"
23+
}
24+
25+
spec {
26+
title = "Example Dashboard"
27+
json = jsonencode({
28+
title = "Example Dashboard"
29+
uid = "example-dashboard"
30+
panels = []
31+
schemaVersion = 42
32+
})
33+
}
34+
}
35+
```
1836

1937
<!-- schema generated by tfplugindocs -->
2038
## Schema

examples/resources/grafana_apps_dashboard_dashboard_v1beta1/resource.tf renamed to examples/resources/grafana_apps_dashboard_dashboard_v1/resource.tf

File renamed without changes.

0 commit comments

Comments
 (0)