gitlab.getGroupBillableMemberMemberships
Explore with Pulumi AI
The gitlab.getGroupBillableMemberMemberships data source allows (sub)group- and project-memberships of a billable member of a group to be retrieved by either the user ID, username or email address.
You must be an administrator!
When using the
Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const testUserMembership = gitlab.getGroupBillableMemberMemberships({
    userId: 21,
    groupId: "42",
});
import pulumi
import pulumi_gitlab as gitlab
test_user_membership = gitlab.get_group_billable_member_memberships(user_id=21,
    group_id="42")
package main
import (
	"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gitlab.GetGroupBillableMemberMemberships(ctx, &gitlab.GetGroupBillableMemberMembershipsArgs{
			UserId:  21,
			GroupId: "42",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() => 
{
    var testUserMembership = GitLab.GetGroupBillableMemberMemberships.Invoke(new()
    {
        UserId = 21,
        GroupId = "42",
    });
});
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.GetGroupBillableMemberMembershipsArgs;
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 testUserMembership = GitlabFunctions.getGroupBillableMemberMemberships(GetGroupBillableMemberMembershipsArgs.builder()
            .userId(21)
            .groupId(42)
            .build());
    }
}
variables:
  testUserMembership:
    fn::invoke:
      function: gitlab:getGroupBillableMemberMemberships
      arguments:
        userId: 21
        groupId: 42
Using getGroupBillableMemberMemberships
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGroupBillableMemberMemberships(args: GetGroupBillableMemberMembershipsArgs, opts?: InvokeOptions): Promise<GetGroupBillableMemberMembershipsResult>
function getGroupBillableMemberMembershipsOutput(args: GetGroupBillableMemberMembershipsOutputArgs, opts?: InvokeOptions): Output<GetGroupBillableMemberMembershipsResult>def get_group_billable_member_memberships(group_id: Optional[str] = None,
                                          user_id: Optional[int] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetGroupBillableMemberMembershipsResult
def get_group_billable_member_memberships_output(group_id: Optional[pulumi.Input[str]] = None,
                                          user_id: Optional[pulumi.Input[int]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetGroupBillableMemberMembershipsResult]func GetGroupBillableMemberMemberships(ctx *Context, args *GetGroupBillableMemberMembershipsArgs, opts ...InvokeOption) (*GetGroupBillableMemberMembershipsResult, error)
func GetGroupBillableMemberMembershipsOutput(ctx *Context, args *GetGroupBillableMemberMembershipsOutputArgs, opts ...InvokeOption) GetGroupBillableMemberMembershipsResultOutput> Note: This function is named GetGroupBillableMemberMemberships in the Go SDK.
public static class GetGroupBillableMemberMemberships 
{
    public static Task<GetGroupBillableMemberMembershipsResult> InvokeAsync(GetGroupBillableMemberMembershipsArgs args, InvokeOptions? opts = null)
    public static Output<GetGroupBillableMemberMembershipsResult> Invoke(GetGroupBillableMemberMembershipsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupBillableMemberMembershipsResult> getGroupBillableMemberMemberships(GetGroupBillableMemberMembershipsArgs args, InvokeOptions options)
public static Output<GetGroupBillableMemberMembershipsResult> getGroupBillableMemberMemberships(GetGroupBillableMemberMembershipsArgs args, InvokeOptions options)
fn::invoke:
  function: gitlab:index/getGroupBillableMemberMemberships:getGroupBillableMemberMemberships
  arguments:
    # arguments dictionaryThe following arguments are supported:
getGroupBillableMemberMemberships Result
The following output properties are available:
- Group
Id string - The ID of the group.
 - Id string
 - The id of the data source. It will always be equal to the user_id
 - Memberships
List<Pulumi.
Git Lab. Outputs. Get Group Billable Member Memberships Membership>  - group- and/or project-memberships of the user.
 - User
Id int - The ID of the user.
 
- Group
Id string - The ID of the group.
 - Id string
 - The id of the data source. It will always be equal to the user_id
 - Memberships
[]Get
Group Billable Member Memberships Membership  - group- and/or project-memberships of the user.
 - User
Id int - The ID of the user.
 
- group
Id String - The ID of the group.
 - id String
 - The id of the data source. It will always be equal to the user_id
 - memberships
List<Get
Group Billable Member Memberships Membership>  - group- and/or project-memberships of the user.
 - user
Id Integer - The ID of the user.
 
- group
Id string - The ID of the group.
 - id string
 - The id of the data source. It will always be equal to the user_id
 - memberships
Get
Group Billable Member Memberships Membership[]  - group- and/or project-memberships of the user.
 - user
Id number - The ID of the user.
 
- group_
id str - The ID of the group.
 - id str
 - The id of the data source. It will always be equal to the user_id
 - memberships
Sequence[Get
Group Billable Member Memberships Membership]  - group- and/or project-memberships of the user.
 - user_
id int - The ID of the user.
 
- group
Id String - The ID of the group.
 - id String
 - The id of the data source. It will always be equal to the user_id
 - memberships List<Property Map>
 - group- and/or project-memberships of the user.
 - user
Id Number - The ID of the user.
 
Supporting Types
GetGroupBillableMemberMembershipsMembership     
- Access
Level string - Access-level of the member. For details see: https://docs.gitlab.com/api/access_requests/#valid-access-levels
 - Created
At string - Datetime when the membership was first added.
 - Expires
At string - Date when the membership will end.
 - Id int
 - The id of the membership.
 - Source
Full stringName  - Breadcrumb-style, full display-name of the group or project.
 - Source
Id int - The id of the group or project, the user is a (direct) member of.
 - Source
Members stringUrl  - URL to the members-page of the group or project.
 
- Access
Level string - Access-level of the member. For details see: https://docs.gitlab.com/api/access_requests/#valid-access-levels
 - Created
At string - Datetime when the membership was first added.
 - Expires
At string - Date when the membership will end.
 - Id int
 - The id of the membership.
 - Source
Full stringName  - Breadcrumb-style, full display-name of the group or project.
 - Source
Id int - The id of the group or project, the user is a (direct) member of.
 - Source
Members stringUrl  - URL to the members-page of the group or project.
 
- access
Level String - Access-level of the member. For details see: https://docs.gitlab.com/api/access_requests/#valid-access-levels
 - created
At String - Datetime when the membership was first added.
 - expires
At String - Date when the membership will end.
 - id Integer
 - The id of the membership.
 - source
Full StringName  - Breadcrumb-style, full display-name of the group or project.
 - source
Id Integer - The id of the group or project, the user is a (direct) member of.
 - source
Members StringUrl  - URL to the members-page of the group or project.
 
- access
Level string - Access-level of the member. For details see: https://docs.gitlab.com/api/access_requests/#valid-access-levels
 - created
At string - Datetime when the membership was first added.
 - expires
At string - Date when the membership will end.
 - id number
 - The id of the membership.
 - source
Full stringName  - Breadcrumb-style, full display-name of the group or project.
 - source
Id number - The id of the group or project, the user is a (direct) member of.
 - source
Members stringUrl  - URL to the members-page of the group or project.
 
- access_
level str - Access-level of the member. For details see: https://docs.gitlab.com/api/access_requests/#valid-access-levels
 - created_
at str - Datetime when the membership was first added.
 - expires_
at str - Date when the membership will end.
 - id int
 - The id of the membership.
 - source_
full_ strname  - Breadcrumb-style, full display-name of the group or project.
 - source_
id int - The id of the group or project, the user is a (direct) member of.
 - source_
members_ strurl  - URL to the members-page of the group or project.
 
- access
Level String - Access-level of the member. For details see: https://docs.gitlab.com/api/access_requests/#valid-access-levels
 - created
At String - Datetime when the membership was first added.
 - expires
At String - Date when the membership will end.
 - id Number
 - The id of the membership.
 - source
Full StringName  - Breadcrumb-style, full display-name of the group or project.
 - source
Id Number - The id of the group or project, the user is a (direct) member of.
 - source
Members StringUrl  - URL to the members-page of the group or project.
 
Package Details
- Repository
 - GitLab pulumi/pulumi-gitlab
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
gitlabTerraform Provider.