Add the ability to get shared_with_groups from a group and a project
New Data Source
Hello, I'm missing a data source to retrieve groups shared with a group.
It could be in a new data source like this :
# By group's full path
data "gitlab_group_shared_with_groups" "foo" {
full_path = "mygroup"
# By group's id
data "gitlab_group_shared_with_groups" "bar" {
group_id = "12345"
}
output "shared_with_groups"{
value = data.gitlab_group_shared_with_groups.foo.shared_with_groups
}
I'm also missing a data source to retrieves groups shared with a project.
Related GitLab APIs
API documentation:
groups : https://docs.gitlab.com/ee/api/groups.html#details-of-a-group
projects : https://docs.gitlab.com/ee/api/projects.html#get-single-project
Additional Details
-
GitLab REST API resources -
go-gitlab
does support the related GitLab API already -
I'd like to contribute it myself ( example )