Viewing docs for GitLab v10.0.0
published on Friday, Jun 26, 2026 by Pulumi
published on Friday, Jun 26, 2026 by Pulumi
Viewing docs for GitLab v10.0.0
published on Friday, Jun 26, 2026 by Pulumi
published on Friday, Jun 26, 2026 by Pulumi
The gitlab.getGroupProtectedBranches data source allows details of the group-level protected branches of a given group.
This data source requires a GitLab Premium or Ultimate instance.
Upstream API: GitLab REST API docs
Using getGroupProtectedBranches
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 getGroupProtectedBranches(args: GetGroupProtectedBranchesArgs, opts?: InvokeOptions): Promise<GetGroupProtectedBranchesResult>
function getGroupProtectedBranchesOutput(args: GetGroupProtectedBranchesOutputArgs, opts?: InvokeOptions): Output<GetGroupProtectedBranchesResult>def get_group_protected_branches(group: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupProtectedBranchesResult
def get_group_protected_branches_output(group: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupProtectedBranchesResult]func GetGroupProtectedBranches(ctx *Context, args *GetGroupProtectedBranchesArgs, opts ...InvokeOption) (*GetGroupProtectedBranchesResult, error)
func GetGroupProtectedBranchesOutput(ctx *Context, args *GetGroupProtectedBranchesOutputArgs, opts ...InvokeOption) GetGroupProtectedBranchesResultOutput> Note: This function is named GetGroupProtectedBranches in the Go SDK.
public static class GetGroupProtectedBranches
{
public static Task<GetGroupProtectedBranchesResult> InvokeAsync(GetGroupProtectedBranchesArgs args, InvokeOptions? opts = null)
public static Output<GetGroupProtectedBranchesResult> Invoke(GetGroupProtectedBranchesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupProtectedBranchesResult> getGroupProtectedBranches(GetGroupProtectedBranchesArgs args, InvokeOptions options)
public static Output<GetGroupProtectedBranchesResult> getGroupProtectedBranches(GetGroupProtectedBranchesArgs args, InvokeOptions options)
fn::invoke:
function: gitlab:index/getGroupProtectedBranches:getGroupProtectedBranches
arguments:
# arguments dictionarydata "gitlab_getgroupprotectedbranches" "name" {
# arguments
}The following arguments are supported:
- Group string
- The integer or URL-encoded path of the group.
- Group string
- The integer or URL-encoded path of the group.
- group string
- The integer or URL-encoded path of the group.
- group String
- The integer or URL-encoded path of the group.
- group string
- The integer or URL-encoded path of the group.
- group str
- The integer or URL-encoded path of the group.
- group String
- The integer or URL-encoded path of the group.
getGroupProtectedBranches Result
The following output properties are available:
- Group string
- The integer or URL-encoded path of the group.
- Id string
- The ID of this Terraform resource. Equal to the
groupargument. - Protected
Branches List<Pulumi.Git Lab. Outputs. Get Group Protected Branches Protected Branch> - A list of group-level protected branches, as defined below.
- Group string
- The integer or URL-encoded path of the group.
- Id string
- The ID of this Terraform resource. Equal to the
groupargument. - Protected
Branches []GetGroup Protected Branches Protected Branch - A list of group-level protected branches, as defined below.
- group string
- The integer or URL-encoded path of the group.
- id string
- The ID of this Terraform resource. Equal to the
groupargument. - protected_
branches list(object) - A list of group-level protected branches, as defined below.
- group String
- The integer or URL-encoded path of the group.
- id String
- The ID of this Terraform resource. Equal to the
groupargument. - protected
Branches List<GetGroup Protected Branches Protected Branch> - A list of group-level protected branches, as defined below.
- group string
- The integer or URL-encoded path of the group.
- id string
- The ID of this Terraform resource. Equal to the
groupargument. - protected
Branches GetGroup Protected Branches Protected Branch[] - A list of group-level protected branches, as defined below.
- group str
- The integer or URL-encoded path of the group.
- id str
- The ID of this Terraform resource. Equal to the
groupargument. - protected_
branches Sequence[GetGroup Protected Branches Protected Branch] - A list of group-level protected branches, as defined below.
- group String
- The integer or URL-encoded path of the group.
- id String
- The ID of this Terraform resource. Equal to the
groupargument. - protected
Branches List<Property Map> - A list of group-level protected branches, as defined below.
Supporting Types
GetGroupProtectedBranchesProtectedBranch
- Allow
Force boolPush - Whether force push is allowed.
- Code
Owner boolApproval Required - Reject code pushes that change files listed in the CODEOWNERS file.
- Id int
- The ID of this resource.
- Merge
Access List<Pulumi.Levels Git Lab. Inputs. Get Group Protected Branches Protected Branch Merge Access Level> - Array of merge access levels/users/groups allowed for the protected branch.
- Name string
- The name of the protected branch.
- Push
Access List<Pulumi.Levels Git Lab. Inputs. Get Group Protected Branches Protected Branch Push Access Level> - Array of push access levels/users/groups/deploy keys allowed for the protected branch.
- Unprotect
Access List<Pulumi.Levels Git Lab. Inputs. Get Group Protected Branches Protected Branch Unprotect Access Level> - Array of unprotect access levels/users/groups allowed for the protected branch.
- Allow
Force boolPush - Whether force push is allowed.
- Code
Owner boolApproval Required - Reject code pushes that change files listed in the CODEOWNERS file.
- Id int
- The ID of this resource.
- Merge
Access []GetLevels Group Protected Branches Protected Branch Merge Access Level - Array of merge access levels/users/groups allowed for the protected branch.
- Name string
- The name of the protected branch.
- Push
Access []GetLevels Group Protected Branches Protected Branch Push Access Level - Array of push access levels/users/groups/deploy keys allowed for the protected branch.
- Unprotect
Access []GetLevels Group Protected Branches Protected Branch Unprotect Access Level - Array of unprotect access levels/users/groups allowed for the protected branch.
- allow_
force_ boolpush - Whether force push is allowed.
- code_
owner_ boolapproval_ required - Reject code pushes that change files listed in the CODEOWNERS file.
- id number
- The ID of this resource.
- merge_
access_ list(object)levels - Array of merge access levels/users/groups allowed for the protected branch.
- name string
- The name of the protected branch.
- push_
access_ list(object)levels - Array of push access levels/users/groups/deploy keys allowed for the protected branch.
- unprotect_
access_ list(object)levels - Array of unprotect access levels/users/groups allowed for the protected branch.
- allow
Force BooleanPush - Whether force push is allowed.
- code
Owner BooleanApproval Required - Reject code pushes that change files listed in the CODEOWNERS file.
- id Integer
- The ID of this resource.
- merge
Access List<GetLevels Group Protected Branches Protected Branch Merge Access Level> - Array of merge access levels/users/groups allowed for the protected branch.
- name String
- The name of the protected branch.
- push
Access List<GetLevels Group Protected Branches Protected Branch Push Access Level> - Array of push access levels/users/groups/deploy keys allowed for the protected branch.
- unprotect
Access List<GetLevels Group Protected Branches Protected Branch Unprotect Access Level> - Array of unprotect access levels/users/groups allowed for the protected branch.
- allow
Force booleanPush - Whether force push is allowed.
- code
Owner booleanApproval Required - Reject code pushes that change files listed in the CODEOWNERS file.
- id number
- The ID of this resource.
- merge
Access GetLevels Group Protected Branches Protected Branch Merge Access Level[] - Array of merge access levels/users/groups allowed for the protected branch.
- name string
- The name of the protected branch.
- push
Access GetLevels Group Protected Branches Protected Branch Push Access Level[] - Array of push access levels/users/groups/deploy keys allowed for the protected branch.
- unprotect
Access GetLevels Group Protected Branches Protected Branch Unprotect Access Level[] - Array of unprotect access levels/users/groups allowed for the protected branch.
- allow_
force_ boolpush - Whether force push is allowed.
- code_
owner_ boolapproval_ required - Reject code pushes that change files listed in the CODEOWNERS file.
- id int
- The ID of this resource.
- merge_
access_ Sequence[Getlevels Group Protected Branches Protected Branch Merge Access Level] - Array of merge access levels/users/groups allowed for the protected branch.
- name str
- The name of the protected branch.
- push_
access_ Sequence[Getlevels Group Protected Branches Protected Branch Push Access Level] - Array of push access levels/users/groups/deploy keys allowed for the protected branch.
- unprotect_
access_ Sequence[Getlevels Group Protected Branches Protected Branch Unprotect Access Level] - Array of unprotect access levels/users/groups allowed for the protected branch.
- allow
Force BooleanPush - Whether force push is allowed.
- code
Owner BooleanApproval Required - Reject code pushes that change files listed in the CODEOWNERS file.
- id Number
- The ID of this resource.
- merge
Access List<Property Map>Levels - Array of merge access levels/users/groups allowed for the protected branch.
- name String
- The name of the protected branch.
- push
Access List<Property Map>Levels - Array of push access levels/users/groups/deploy keys allowed for the protected branch.
- unprotect
Access List<Property Map>Levels - Array of unprotect access levels/users/groups allowed for the protected branch.
GetGroupProtectedBranchesProtectedBranchMergeAccessLevel
- Access
Level string - Access level allowed to perform the relevant action.
- Access
Level stringDescription - Readable description of access level.
- Group
Id int - The ID of a GitLab group allowed to perform the relevant action.
- User
Id int - The ID of a GitLab user allowed to perform the relevant action.
- Access
Level string - Access level allowed to perform the relevant action.
- Access
Level stringDescription - Readable description of access level.
- Group
Id int - The ID of a GitLab group allowed to perform the relevant action.
- User
Id int - The ID of a GitLab user allowed to perform the relevant action.
- access_
level string - Access level allowed to perform the relevant action.
- access_
level_ stringdescription - Readable description of access level.
- group_
id number - The ID of a GitLab group allowed to perform the relevant action.
- user_
id number - The ID of a GitLab user allowed to perform the relevant action.
- access
Level String - Access level allowed to perform the relevant action.
- access
Level StringDescription - Readable description of access level.
- group
Id Integer - The ID of a GitLab group allowed to perform the relevant action.
- user
Id Integer - The ID of a GitLab user allowed to perform the relevant action.
- access
Level string - Access level allowed to perform the relevant action.
- access
Level stringDescription - Readable description of access level.
- group
Id number - The ID of a GitLab group allowed to perform the relevant action.
- user
Id number - The ID of a GitLab user allowed to perform the relevant action.
- access_
level str - Access level allowed to perform the relevant action.
- access_
level_ strdescription - Readable description of access level.
- group_
id int - The ID of a GitLab group allowed to perform the relevant action.
- user_
id int - The ID of a GitLab user allowed to perform the relevant action.
- access
Level String - Access level allowed to perform the relevant action.
- access
Level StringDescription - Readable description of access level.
- group
Id Number - The ID of a GitLab group allowed to perform the relevant action.
- user
Id Number - The ID of a GitLab user allowed to perform the relevant action.
GetGroupProtectedBranchesProtectedBranchPushAccessLevel
- Access
Level string - Access level allowed to perform the relevant action.
- Access
Level stringDescription - Readable description of access level.
- Deploy
Key intId - The ID of a GitLab deploy key allowed to perform the relevant action.
- Group
Id int - The ID of a GitLab group allowed to perform the relevant action.
- User
Id int - The ID of a GitLab user allowed to perform the relevant action.
- Access
Level string - Access level allowed to perform the relevant action.
- Access
Level stringDescription - Readable description of access level.
- Deploy
Key intId - The ID of a GitLab deploy key allowed to perform the relevant action.
- Group
Id int - The ID of a GitLab group allowed to perform the relevant action.
- User
Id int - The ID of a GitLab user allowed to perform the relevant action.
- access_
level string - Access level allowed to perform the relevant action.
- access_
level_ stringdescription - Readable description of access level.
- deploy_
key_ numberid - The ID of a GitLab deploy key allowed to perform the relevant action.
- group_
id number - The ID of a GitLab group allowed to perform the relevant action.
- user_
id number - The ID of a GitLab user allowed to perform the relevant action.
- access
Level String - Access level allowed to perform the relevant action.
- access
Level StringDescription - Readable description of access level.
- deploy
Key IntegerId - The ID of a GitLab deploy key allowed to perform the relevant action.
- group
Id Integer - The ID of a GitLab group allowed to perform the relevant action.
- user
Id Integer - The ID of a GitLab user allowed to perform the relevant action.
- access
Level string - Access level allowed to perform the relevant action.
- access
Level stringDescription - Readable description of access level.
- deploy
Key numberId - The ID of a GitLab deploy key allowed to perform the relevant action.
- group
Id number - The ID of a GitLab group allowed to perform the relevant action.
- user
Id number - The ID of a GitLab user allowed to perform the relevant action.
- access_
level str - Access level allowed to perform the relevant action.
- access_
level_ strdescription - Readable description of access level.
- deploy_
key_ intid - The ID of a GitLab deploy key allowed to perform the relevant action.
- group_
id int - The ID of a GitLab group allowed to perform the relevant action.
- user_
id int - The ID of a GitLab user allowed to perform the relevant action.
- access
Level String - Access level allowed to perform the relevant action.
- access
Level StringDescription - Readable description of access level.
- deploy
Key NumberId - The ID of a GitLab deploy key allowed to perform the relevant action.
- group
Id Number - The ID of a GitLab group allowed to perform the relevant action.
- user
Id Number - The ID of a GitLab user allowed to perform the relevant action.
GetGroupProtectedBranchesProtectedBranchUnprotectAccessLevel
- Access
Level string - Access level allowed to perform the relevant action.
- Access
Level stringDescription - Readable description of access level.
- Group
Id int - The ID of a GitLab group allowed to perform the relevant action.
- User
Id int - The ID of a GitLab user allowed to perform the relevant action.
- Access
Level string - Access level allowed to perform the relevant action.
- Access
Level stringDescription - Readable description of access level.
- Group
Id int - The ID of a GitLab group allowed to perform the relevant action.
- User
Id int - The ID of a GitLab user allowed to perform the relevant action.
- access_
level string - Access level allowed to perform the relevant action.
- access_
level_ stringdescription - Readable description of access level.
- group_
id number - The ID of a GitLab group allowed to perform the relevant action.
- user_
id number - The ID of a GitLab user allowed to perform the relevant action.
- access
Level String - Access level allowed to perform the relevant action.
- access
Level StringDescription - Readable description of access level.
- group
Id Integer - The ID of a GitLab group allowed to perform the relevant action.
- user
Id Integer - The ID of a GitLab user allowed to perform the relevant action.
- access
Level string - Access level allowed to perform the relevant action.
- access
Level stringDescription - Readable description of access level.
- group
Id number - The ID of a GitLab group allowed to perform the relevant action.
- user
Id number - The ID of a GitLab user allowed to perform the relevant action.
- access_
level str - Access level allowed to perform the relevant action.
- access_
level_ strdescription - Readable description of access level.
- group_
id int - The ID of a GitLab group allowed to perform the relevant action.
- user_
id int - The ID of a GitLab user allowed to perform the relevant action.
- access
Level String - Access level allowed to perform the relevant action.
- access
Level StringDescription - Readable description of access level.
- group
Id Number - The ID of a GitLab group allowed to perform the relevant action.
- user
Id Number - The ID of a GitLab user allowed to perform the relevant action.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.
Viewing docs for GitLab v10.0.0
published on Friday, Jun 26, 2026 by Pulumi
published on Friday, Jun 26, 2026 by Pulumi