The gitlab_group_subgroups
data source allows to get subgroups of a group.
Upstream API: GitLab REST API docs
data "gitlab_group_subgroups" "subgroups" {
group_id = "123456"
}
output "subgroups" {
value = data.gitlab_group_subgroups.subgroups
}
group_id
(Number) The ID of the group.all_available
(Boolean) Show all the groups you have access to.min_access_level
(String) Limit to groups where current user has at least this access level.order_by
(String) Order groups by name, path or id.owned
(Boolean) Limit to groups explicitly owned by the current user.search
(String) Return the list of authorized groups matching the search criteria.skip_groups
(List of Number) Skip the group IDs passed.sort
(String) Order groups in asc or desc order.statistics
(Boolean) Include group statistics (administrators only).with_custom_attributes
(Boolean) Include custom attributes in response (administrators only).id
(String) The ID of this resource.subgroups
(List of Object) Subgroups of the parent group. (see below for nested schema)subgroups
Read-Only:
auto_devops_enabled
(Boolean)avatar_url
(String)created_at
(String)default_branch_protection
(Number)description
(String)emails_disabled
(Boolean)emails_enabled
(Boolean)file_template_project_id
(Number)full_name
(String)full_path
(String)group_id
(Number)ip_restriction_ranges
(String)lfs_enabled
(Boolean)mentions_disabled
(Boolean)name
(String)parent_id
(Number)path
(String)project_creation_level
(String)request_access_enabled
(Boolean)require_two_factor_authentication
(Boolean)share_with_group_lock
(Boolean)shared_runners_setting
(String)statistics
(Map of String)subgroup_creation_level
(String)two_factor_grace_period
(Number)visibility
(String)web_url
(String)wiki_access_level
(String)