get Group Subgroups
The gitlab.getGroupSubgroups
data source allows to get subgroups of a group. Upstream API: GitLab REST API docs
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GitlabFunctions;
import com.pulumi.gitlab.inputs.GetGroupSubgroupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var subgroupsGroupSubgroups = GitlabFunctions.getGroupSubgroups(GetGroupSubgroupsArgs.builder()
.groupId("123456")
.build());
ctx.export("subgroups", subgroupsGroupSubgroups.applyValue(getGroupSubgroupsResult -> getGroupSubgroupsResult));
}
}
Return
A collection of values returned by getGroupSubgroups.
Parameters
A collection of arguments for invoking getGroupSubgroups.
Return
A collection of values returned by getGroupSubgroups.
Parameters
Show all the groups you have access to.
The ID of the group.
Limit to groups where current user has at least this access level.
Order groups by name, path or id.
Limit to groups explicitly owned by the current user.
Return the list of authorized groups matching the search criteria.
Skip the group IDs passed.
Order groups in asc or desc order.
Include group statistics (administrators only).
Include custom attributes in response (administrators only).
See also
Return
A collection of values returned by getGroupSubgroups.
Parameters
Builder for com.pulumi.gitlab.kotlin.inputs.GetGroupSubgroupsPlainArgs.