File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
examples/data-sources/gitlab_group_variable Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,21 @@ The `gitlab_group_variable` data source allows to retrieve details about a group
13
13
14
14
** Upstream API** : [ GitLab REST API docs] ( https://docs.gitlab.com/ee/api/group_level_variables.html )
15
15
16
-
16
+ ## Example Usage
17
+
18
+ ``` terraform
19
+ data "gitlab_group_variable" "foo" {
20
+ group = "my/example/group"
21
+ key = "foo"
22
+ }
23
+
24
+ # Using an environment scope
25
+ data "gitlab_group_variable" "bar" {
26
+ group = "my/example/group"
27
+ key = "bar"
28
+ environment_scope = "staging/*"
29
+ }
30
+ ```
17
31
18
32
<!-- schema generated by tfplugindocs -->
19
33
## Schema
Original file line number Diff line number Diff line change
1
+ data "gitlab_group_variable" "foo" {
2
+ group = " my/example/group"
3
+ key = " foo"
4
+ }
5
+
6
+ # Using an environment scope
7
+ data "gitlab_group_variable" "bar" {
8
+ group = " my/example/group"
9
+ key = " bar"
10
+ environment_scope = " staging/*"
11
+ }
You can’t perform that action at this time.
0 commit comments