get Group Membership
The gitlab.GroupMembership
data source allows to list and filter all members of a group specified by either its id or full path. Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = gitlab.getGroupMembership({
fullPath: "foo/bar",
});
Content copied to clipboard
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_group_membership(full_path="foo/bar")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var example = GitLab.GetGroupMembership.Invoke(new()
{
FullPath = "foo/bar",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.LookupGroupMembership(ctx, &gitlab.LookupGroupMembershipArgs{
FullPath: pulumi.StringRef("foo/bar"),
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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.GetGroupMembershipArgs;
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 example = GitlabFunctions.getGroupMembership(GetGroupMembershipArgs.builder()
.fullPath("foo/bar")
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
Function: gitlab:getGroupMembership
Arguments:
fullPath: foo/bar
Content copied to clipboard
Return
A collection of values returned by getGroupMembership.
Parameters
argument
A collection of arguments for invoking getGroupMembership.
suspend fun getGroupMembership(accessLevel: String? = null, fullPath: String? = null, groupId: Int? = null, inherited: Boolean? = null): GetGroupMembershipResult
Return
A collection of values returned by getGroupMembership.
Parameters
access Level
full Path
The full path of the group.
group Id
The ID of the group.
inherited
Return all project members including members through ancestor groups.
See also
suspend fun getGroupMembership(argument: suspend GetGroupMembershipPlainArgsBuilder.() -> Unit): GetGroupMembershipResult
Return
A collection of values returned by getGroupMembership.
Parameters
argument
Builder for com.pulumi.gitlab.kotlin.inputs.GetGroupMembershipPlainArgs.