The gitlab_groups
data source allows details of multiple groups to be retrieved given some optional filter criteria.
Upstream API: GitLab REST API docs
data "gitlab_groups" "example" {
sort = "desc"
order_by = "name"
}
data "gitlab_groups" "example-two" {
search = "GitLab"
}
order_by
(String) Order the groups' list by id
, name
, path
, or similarity
. (Requires administrator privileges)search
(String) Search groups by name or path.sort
(String) Sort groups' list in asc or desc order. (Requires administrator privileges)top_level_only
(Boolean) Limit to top level groups, excluding all subgroups.groups
(List of Object) The list of groups. (see below for nested schema)id
(String) The ID of this resource.groups
Read-Only:
default_branch_protection
(Number)description
(String)full_name
(String)full_path
(String)group_id
(Number)lfs_enabled
(Boolean)name
(String)parent_id
(Number)path
(String)prevent_forking_outside_group
(Boolean)request_access_enabled
(Boolean)runners_token
(String)shared_runners_setting
(String)visibility_level
(String)web_url
(String)wiki_access_level
(String)