1. Packages
  2. Gitlab Provider
  3. API Docs
  4. getGroup
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi

gitlab.getGroup

Explore with Pulumi AI

GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi

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

Using getGroup

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 getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
function getGroupOutput(args: GetGroupOutputArgs, opts?: InvokeOptions): Output<GetGroupResult>
Copy
def get_group(full_path: Optional[str] = None,
              group_id: Optional[int] = None,
              opts: Optional[InvokeOptions] = None) -> GetGroupResult
def get_group_output(full_path: Optional[pulumi.Input[str]] = None,
              group_id: Optional[pulumi.Input[int]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetGroupResult]
Copy
func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput
Copy

> Note: This function is named LookupGroup in the Go SDK.

public static class GetGroup 
{
    public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gitlab:index/getGroup:getGroup
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FullPath string
The full path of the group.
GroupId int
The ID of the group.
FullPath string
The full path of the group.
GroupId int
The ID of the group.
fullPath String
The full path of the group.
groupId Integer
The ID of the group.
fullPath string
The full path of the group.
groupId number
The ID of the group.
full_path str
The full path of the group.
group_id int
The ID of the group.
fullPath String
The full path of the group.
groupId Number
The ID of the group.

getGroup Result

The following output properties are available:

DefaultBranch string
The default branch of the group.
DefaultBranchProtection int
Whether developers and maintainers can push to the applicable default branch.
Description string
The description of the group.
ExtraSharedRunnersMinutesLimit int
Can be set by administrators only. Additional CI/CD minutes for this group.
FullName string
The full name of the group.
FullPath string
The full path of the group.
GroupId int
The ID of the group.
Id string
The provider-assigned unique ID for this managed resource.
LfsEnabled bool
Boolean, is LFS enabled for projects in this group.
MembershipLock bool
Users cannot be added to projects in this group.
Name string
The name of this group.
ParentId int
Integer, ID of the parent group.
Path string
The path of the group.
PreventForkingOutsideGroup bool
When enabled, users can not fork projects from this group to external namespaces.
RequestAccessEnabled bool
Boolean, is request for access enabled to the group.
RunnersToken string
The group level registration token to use during runner setup.
SharedRunnersMinutesLimit int
Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0.
SharedRunnersSetting string
Enable or disable shared runners for a group’s subgroups and projects. Valid values are: enabled, disabled_and_overridable, disabled_and_unoverridable, disabled_with_override.
SharedWithGroups List<Pulumi.GitLab.Outputs.GetGroupSharedWithGroup>
Describes groups which have access shared to this group.
VisibilityLevel string
Visibility level of the group. Possible values are private, internal, public.
WebUrl string
Web URL of the group.
WikiAccessLevel string
The group's wiki access level. Only available on Premium and Ultimate plans. Valid values are disabled, private, enabled.
DefaultBranch string
The default branch of the group.
DefaultBranchProtection int
Whether developers and maintainers can push to the applicable default branch.
Description string
The description of the group.
ExtraSharedRunnersMinutesLimit int
Can be set by administrators only. Additional CI/CD minutes for this group.
FullName string
The full name of the group.
FullPath string
The full path of the group.
GroupId int
The ID of the group.
Id string
The provider-assigned unique ID for this managed resource.
LfsEnabled bool
Boolean, is LFS enabled for projects in this group.
MembershipLock bool
Users cannot be added to projects in this group.
Name string
The name of this group.
ParentId int
Integer, ID of the parent group.
Path string
The path of the group.
PreventForkingOutsideGroup bool
When enabled, users can not fork projects from this group to external namespaces.
RequestAccessEnabled bool
Boolean, is request for access enabled to the group.
RunnersToken string
The group level registration token to use during runner setup.
SharedRunnersMinutesLimit int
Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0.
SharedRunnersSetting string
Enable or disable shared runners for a group’s subgroups and projects. Valid values are: enabled, disabled_and_overridable, disabled_and_unoverridable, disabled_with_override.
SharedWithGroups []GetGroupSharedWithGroup
Describes groups which have access shared to this group.
VisibilityLevel string
Visibility level of the group. Possible values are private, internal, public.
WebUrl string
Web URL of the group.
WikiAccessLevel string
The group's wiki access level. Only available on Premium and Ultimate plans. Valid values are disabled, private, enabled.
defaultBranch String
The default branch of the group.
defaultBranchProtection Integer
Whether developers and maintainers can push to the applicable default branch.
description String
The description of the group.
extraSharedRunnersMinutesLimit Integer
Can be set by administrators only. Additional CI/CD minutes for this group.
fullName String
The full name of the group.
fullPath String
The full path of the group.
groupId Integer
The ID of the group.
id String
The provider-assigned unique ID for this managed resource.
lfsEnabled Boolean
Boolean, is LFS enabled for projects in this group.
membershipLock Boolean
Users cannot be added to projects in this group.
name String
The name of this group.
parentId Integer
Integer, ID of the parent group.
path String
The path of the group.
preventForkingOutsideGroup Boolean
When enabled, users can not fork projects from this group to external namespaces.
requestAccessEnabled Boolean
Boolean, is request for access enabled to the group.
runnersToken String
The group level registration token to use during runner setup.
sharedRunnersMinutesLimit Integer
Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0.
sharedRunnersSetting String
Enable or disable shared runners for a group’s subgroups and projects. Valid values are: enabled, disabled_and_overridable, disabled_and_unoverridable, disabled_with_override.
sharedWithGroups List<GetGroupSharedWithGroup>
Describes groups which have access shared to this group.
visibilityLevel String
Visibility level of the group. Possible values are private, internal, public.
webUrl String
Web URL of the group.
wikiAccessLevel String
The group's wiki access level. Only available on Premium and Ultimate plans. Valid values are disabled, private, enabled.
defaultBranch string
The default branch of the group.
defaultBranchProtection number
Whether developers and maintainers can push to the applicable default branch.
description string
The description of the group.
extraSharedRunnersMinutesLimit number
Can be set by administrators only. Additional CI/CD minutes for this group.
fullName string
The full name of the group.
fullPath string
The full path of the group.
groupId number
The ID of the group.
id string
The provider-assigned unique ID for this managed resource.
lfsEnabled boolean
Boolean, is LFS enabled for projects in this group.
membershipLock boolean
Users cannot be added to projects in this group.
name string
The name of this group.
parentId number
Integer, ID of the parent group.
path string
The path of the group.
preventForkingOutsideGroup boolean
When enabled, users can not fork projects from this group to external namespaces.
requestAccessEnabled boolean
Boolean, is request for access enabled to the group.
runnersToken string
The group level registration token to use during runner setup.
sharedRunnersMinutesLimit number
Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0.
sharedRunnersSetting string
Enable or disable shared runners for a group’s subgroups and projects. Valid values are: enabled, disabled_and_overridable, disabled_and_unoverridable, disabled_with_override.
sharedWithGroups GetGroupSharedWithGroup[]
Describes groups which have access shared to this group.
visibilityLevel string
Visibility level of the group. Possible values are private, internal, public.
webUrl string
Web URL of the group.
wikiAccessLevel string
The group's wiki access level. Only available on Premium and Ultimate plans. Valid values are disabled, private, enabled.
default_branch str
The default branch of the group.
default_branch_protection int
Whether developers and maintainers can push to the applicable default branch.
description str
The description of the group.
extra_shared_runners_minutes_limit int
Can be set by administrators only. Additional CI/CD minutes for this group.
full_name str
The full name of the group.
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.
lfs_enabled bool
Boolean, is LFS enabled for projects in this group.
membership_lock bool
Users cannot be added to projects in this group.
name str
The name of this group.
parent_id int
Integer, ID of the parent group.
path str
The path of the group.
prevent_forking_outside_group bool
When enabled, users can not fork projects from this group to external namespaces.
request_access_enabled bool
Boolean, is request for access enabled to the group.
runners_token str
The group level registration token to use during runner setup.
shared_runners_minutes_limit int
Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0.
shared_runners_setting str
Enable or disable shared runners for a group’s subgroups and projects. Valid values are: enabled, disabled_and_overridable, disabled_and_unoverridable, disabled_with_override.
shared_with_groups Sequence[GetGroupSharedWithGroup]
Describes groups which have access shared to this group.
visibility_level str
Visibility level of the group. Possible values are private, internal, public.
web_url str
Web URL of the group.
wiki_access_level str
The group's wiki access level. Only available on Premium and Ultimate plans. Valid values are disabled, private, enabled.
defaultBranch String
The default branch of the group.
defaultBranchProtection Number
Whether developers and maintainers can push to the applicable default branch.
description String
The description of the group.
extraSharedRunnersMinutesLimit Number
Can be set by administrators only. Additional CI/CD minutes for this group.
fullName String
The full name of the group.
fullPath String
The full path of the group.
groupId Number
The ID of the group.
id String
The provider-assigned unique ID for this managed resource.
lfsEnabled Boolean
Boolean, is LFS enabled for projects in this group.
membershipLock Boolean
Users cannot be added to projects in this group.
name String
The name of this group.
parentId Number
Integer, ID of the parent group.
path String
The path of the group.
preventForkingOutsideGroup Boolean
When enabled, users can not fork projects from this group to external namespaces.
requestAccessEnabled Boolean
Boolean, is request for access enabled to the group.
runnersToken String
The group level registration token to use during runner setup.
sharedRunnersMinutesLimit Number
Can be set by administrators only. Maximum number of monthly CI/CD minutes for this group. Can be nil (default; inherit system default), 0 (unlimited), or > 0.
sharedRunnersSetting String
Enable or disable shared runners for a group’s subgroups and projects. Valid values are: enabled, disabled_and_overridable, disabled_and_unoverridable, disabled_with_override.
sharedWithGroups List<Property Map>
Describes groups which have access shared to this group.
visibilityLevel String
Visibility level of the group. Possible values are private, internal, public.
webUrl String
Web URL of the group.
wikiAccessLevel String
The group's wiki access level. Only available on Premium and Ultimate plans. Valid values are disabled, private, enabled.

Supporting Types

GetGroupSharedWithGroup

ExpiresAt This property is required. string
Share with group expiration date.
GroupAccessLevel This property is required. int
The access_level permission level of the shared group.
GroupFullPath This property is required. string
The full path of the group shared with.
GroupId This property is required. int
The ID of the group shared with.
GroupName This property is required. string
The name of the group shared with.
ExpiresAt This property is required. string
Share with group expiration date.
GroupAccessLevel This property is required. int
The access_level permission level of the shared group.
GroupFullPath This property is required. string
The full path of the group shared with.
GroupId This property is required. int
The ID of the group shared with.
GroupName This property is required. string
The name of the group shared with.
expiresAt This property is required. String
Share with group expiration date.
groupAccessLevel This property is required. Integer
The access_level permission level of the shared group.
groupFullPath This property is required. String
The full path of the group shared with.
groupId This property is required. Integer
The ID of the group shared with.
groupName This property is required. String
The name of the group shared with.
expiresAt This property is required. string
Share with group expiration date.
groupAccessLevel This property is required. number
The access_level permission level of the shared group.
groupFullPath This property is required. string
The full path of the group shared with.
groupId This property is required. number
The ID of the group shared with.
groupName This property is required. string
The name of the group shared with.
expires_at This property is required. str
Share with group expiration date.
group_access_level This property is required. int
The access_level permission level of the shared group.
group_full_path This property is required. str
The full path of the group shared with.
group_id This property is required. int
The ID of the group shared with.
group_name This property is required. str
The name of the group shared with.
expiresAt This property is required. String
Share with group expiration date.
groupAccessLevel This property is required. Number
The access_level permission level of the shared group.
groupFullPath This property is required. String
The full path of the group shared with.
groupId This property is required. Number
The ID of the group shared with.
groupName This property is required. String
The name of the group shared with.

Package Details

Repository
GitLab pulumi/pulumi-gitlab
License
Apache-2.0
Notes
This Pulumi package is based on the gitlab Terraform Provider.
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi