getGroup

suspend fun getGroup(argument: GetGroupPlainArgs): GetGroupResult

The gitlab.Group data source allows details of a group to be retrieved by its id or full path. 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.GetGroupArgs;
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 foo = GitlabFunctions.getGroup(GetGroupArgs.builder()
.fullPath("foo/bar")
.build());
}
}

Return

A collection of values returned by getGroup.

Parameters

argument

A collection of arguments for invoking getGroup.


suspend fun getGroup(fullPath: String? = null, groupId: Int? = null): GetGroupResult

Return

A collection of values returned by getGroup.

Parameters

fullPath

The full path of the group.

groupId

The ID of the group.

See also


suspend fun getGroup(argument: suspend GetGroupPlainArgsBuilder.() -> Unit): GetGroupResult

Return

A collection of values returned by getGroup.

Parameters

argument

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

See also