GitLab v8.5.0 published on Friday, Oct 18, 2024 by Pulumi
gitlab.getGroupMembership
Explore with Pulumi AI
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
Using getGroupMembership
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 getGroupMembership(args: GetGroupMembershipArgs, opts?: InvokeOptions): Promise<GetGroupMembershipResult>
function getGroupMembershipOutput(args: GetGroupMembershipOutputArgs, opts?: InvokeOptions): Output<GetGroupMembershipResult>
def get_group_membership(access_level: Optional[str] = None,
full_path: Optional[str] = None,
group_id: Optional[int] = None,
inherited: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupMembershipResult
def get_group_membership_output(access_level: Optional[pulumi.Input[str]] = None,
full_path: Optional[pulumi.Input[str]] = None,
group_id: Optional[pulumi.Input[int]] = None,
inherited: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupMembershipResult]
func LookupGroupMembership(ctx *Context, args *LookupGroupMembershipArgs, opts ...InvokeOption) (*LookupGroupMembershipResult, error)
func LookupGroupMembershipOutput(ctx *Context, args *LookupGroupMembershipOutputArgs, opts ...InvokeOption) LookupGroupMembershipResultOutput
> Note: This function is named LookupGroupMembership
in the Go SDK.
public static class GetGroupMembership
{
public static Task<GetGroupMembershipResult> InvokeAsync(GetGroupMembershipArgs args, InvokeOptions? opts = null)
public static Output<GetGroupMembershipResult> Invoke(GetGroupMembershipInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGroupMembershipResult> getGroupMembership(GetGroupMembershipArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gitlab:index/getGroupMembership:getGroupMembership
arguments:
# arguments dictionary
The following arguments are supported:
- Access
Level string - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - Full
Path string - The full path of the group.
- Group
Id int - The ID of the group.
- Inherited bool
- Return all project members including members through ancestor groups.
- Access
Level string - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - Full
Path string - The full path of the group.
- Group
Id int - The ID of the group.
- Inherited bool
- Return all project members including members through ancestor groups.
- access
Level String - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - full
Path String - The full path of the group.
- group
Id Integer - The ID of the group.
- inherited Boolean
- Return all project members including members through ancestor groups.
- access
Level string - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - full
Path string - The full path of the group.
- group
Id number - The ID of the group.
- inherited boolean
- Return all project members including members through ancestor groups.
- access_
level str - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - full_
path str - The full path of the group.
- group_
id int - The ID of the group.
- inherited bool
- Return all project members including members through ancestor groups.
- access
Level String - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - full
Path String - The full path of the group.
- group
Id Number - The ID of the group.
- inherited Boolean
- Return all project members including members through ancestor groups.
getGroupMembership Result
The following output properties are available:
- Access
Level string - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - Full
Path string - The full path of the group.
- Group
Id int - The ID of the group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Members
List<Pulumi.
Git Lab. Outputs. Get Group Membership Member> - The list of group members.
- Inherited bool
- Return all project members including members through ancestor groups.
- Access
Level string - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - Full
Path string - The full path of the group.
- Group
Id int - The ID of the group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Members
[]Get
Group Membership Member - The list of group members.
- Inherited bool
- Return all project members including members through ancestor groups.
- access
Level String - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - full
Path String - The full path of the group.
- group
Id Integer - The ID of the group.
- id String
- The provider-assigned unique ID for this managed resource.
- members
List<Get
Group Membership Member> - The list of group members.
- inherited Boolean
- Return all project members including members through ancestor groups.
- access
Level string - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - full
Path string - The full path of the group.
- group
Id number - The ID of the group.
- id string
- The provider-assigned unique ID for this managed resource.
- members
Get
Group Membership Member[] - The list of group members.
- inherited boolean
- Return all project members including members through ancestor groups.
- access_
level str - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - full_
path str - The full path of the group.
- group_
id int - The ID of the group.
- id str
- The provider-assigned unique ID for this managed resource.
- members
Sequence[Get
Group Membership Member] - The list of group members.
- inherited bool
- Return all project members including members through ancestor groups.
- access
Level String - Only return members with the desired access level. Acceptable values are:
guest
,reporter
,developer
,maintainer
,owner
. - full
Path String - The full path of the group.
- group
Id Number - The ID of the group.
- id String
- The provider-assigned unique ID for this managed resource.
- members List<Property Map>
- The list of group members.
- inherited Boolean
- Return all project members including members through ancestor groups.
Supporting Types
GetGroupMembershipMember
- Access
Level string - The level of access to the group.
- Avatar
Url string - The avatar URL of the user.
- Expires
At string - Expiration date for the group membership.
- Id int
- The unique id assigned to the user by the gitlab server.
- Name string
- The name of the user.
- State string
- Whether the user is active or blocked.
- Username string
- The username of the user.
- Web
Url string - User's website URL.
- Access
Level string - The level of access to the group.
- Avatar
Url string - The avatar URL of the user.
- Expires
At string - Expiration date for the group membership.
- Id int
- The unique id assigned to the user by the gitlab server.
- Name string
- The name of the user.
- State string
- Whether the user is active or blocked.
- Username string
- The username of the user.
- Web
Url string - User's website URL.
- access
Level String - The level of access to the group.
- avatar
Url String - The avatar URL of the user.
- expires
At String - Expiration date for the group membership.
- id Integer
- The unique id assigned to the user by the gitlab server.
- name String
- The name of the user.
- state String
- Whether the user is active or blocked.
- username String
- The username of the user.
- web
Url String - User's website URL.
- access
Level string - The level of access to the group.
- avatar
Url string - The avatar URL of the user.
- expires
At string - Expiration date for the group membership.
- id number
- The unique id assigned to the user by the gitlab server.
- name string
- The name of the user.
- state string
- Whether the user is active or blocked.
- username string
- The username of the user.
- web
Url string - User's website URL.
- access_
level str - The level of access to the group.
- avatar_
url str - The avatar URL of the user.
- expires_
at str - Expiration date for the group membership.
- id int
- The unique id assigned to the user by the gitlab server.
- name str
- The name of the user.
- state str
- Whether the user is active or blocked.
- username str
- The username of the user.
- web_
url str - User's website URL.
- access
Level String - The level of access to the group.
- avatar
Url String - The avatar URL of the user.
- expires
At String - Expiration date for the group membership.
- id Number
- The unique id assigned to the user by the gitlab server.
- name String
- The name of the user.
- state String
- Whether the user is active or blocked.
- username String
- The username of the user.
- web
Url String - User's website URL.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlab
Terraform Provider.