Skip to content

Commit 4cdeb24

Browse files
committed
datasource/gitlab_group_variables: Add missing doc examples
1 parent 5890dc5 commit 4cdeb24

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docs/data-sources/group_variables.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,19 @@ The `gitlab_group_variables` data source allows to retrieve all group-level CI/C
1313

1414
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_level_variables.html)
1515

16-
16+
## Example Usage
17+
18+
```terraform
19+
data "gitlab_group_variables" "vars" {
20+
group = "my/example/group"
21+
}
22+
23+
# Using an environment scope
24+
data "gitlab_group_variables" "staging_vars" {
25+
group = "my/example/group"
26+
environment_scope = "staging/*"
27+
}
28+
```
1729

1830
<!-- schema generated by tfplugindocs -->
1931
## Schema
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
data "gitlab_group_variables" "vars" {
2+
group = "my/example/group"
3+
}
4+
5+
# Using an environment scope
6+
data "gitlab_group_variables" "staging_vars" {
7+
group = "my/example/group"
8+
environment_scope = "staging/*"
9+
}

0 commit comments

Comments
 (0)