getGroupSubgroups

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

argument

A collection of arguments for invoking getGroupSubgroups.


suspend fun getGroupSubgroups(allAvailable: Boolean? = null, groupId: Int, minAccessLevel: String? = null, orderBy: String? = null, owned: Boolean? = null, search: String? = null, skipGroups: List<Int>? = null, sort: String? = null, statistics: Boolean? = null, withCustomAttributes: Boolean? = null): GetGroupSubgroupsResult

Return

A collection of values returned by getGroupSubgroups.

Parameters

allAvailable

Show all the groups you have access to.

groupId

The ID of the group.

minAccessLevel

Limit to groups where current user has at least this access level.

orderBy

Order groups by name, path or id.

owned

Limit to groups explicitly owned by the current user.

search

Return the list of authorized groups matching the search criteria.

skipGroups

Skip the group IDs passed.

sort

Order groups in asc or desc order.

statistics

Include group statistics (administrators only).

withCustomAttributes

Include custom attributes in response (administrators only).

See also


Return

A collection of values returned by getGroupSubgroups.

Parameters

argument

Builder for com.pulumi.gitlab.kotlin.inputs.GetGroupSubgroupsPlainArgs.

See also