GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi
gitlab.getProjectBranches
Explore with Pulumi AI
The gitlab.getProjectBranches
data source allows details of the branches of a given project to be retrieved.
Upstream API: GitLab REST API docs
Using getProjectBranches
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 getProjectBranches(args: GetProjectBranchesArgs, opts?: InvokeOptions): Promise<GetProjectBranchesResult>
function getProjectBranchesOutput(args: GetProjectBranchesOutputArgs, opts?: InvokeOptions): Output<GetProjectBranchesResult>
def get_project_branches(project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectBranchesResult
def get_project_branches_output(project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectBranchesResult]
func GetProjectBranches(ctx *Context, args *GetProjectBranchesArgs, opts ...InvokeOption) (*GetProjectBranchesResult, error)
func GetProjectBranchesOutput(ctx *Context, args *GetProjectBranchesOutputArgs, opts ...InvokeOption) GetProjectBranchesResultOutput
> Note: This function is named GetProjectBranches
in the Go SDK.
public static class GetProjectBranches
{
public static Task<GetProjectBranchesResult> InvokeAsync(GetProjectBranchesArgs args, InvokeOptions? opts = null)
public static Output<GetProjectBranchesResult> Invoke(GetProjectBranchesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectBranchesResult> getProjectBranches(GetProjectBranchesArgs args, InvokeOptions options)
public static Output<GetProjectBranchesResult> getProjectBranches(GetProjectBranchesArgs args, InvokeOptions options)
fn::invoke:
function: gitlab:index/getProjectBranches:getProjectBranches
arguments:
# arguments dictionary
The following arguments are supported:
- Project
This property is required. string - ID or URL-encoded path of the project owned by the authenticated user.
- Project
This property is required. string - ID or URL-encoded path of the project owned by the authenticated user.
- project
This property is required. String - ID or URL-encoded path of the project owned by the authenticated user.
- project
This property is required. string - ID or URL-encoded path of the project owned by the authenticated user.
- project
This property is required. str - ID or URL-encoded path of the project owned by the authenticated user.
- project
This property is required. String - ID or URL-encoded path of the project owned by the authenticated user.
getProjectBranches Result
The following output properties are available:
- Branches
List<Pulumi.
Git Lab. Outputs. Get Project Branches Branch> - The list of branches of the project, as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project string
- ID or URL-encoded path of the project owned by the authenticated user.
- Branches
[]Get
Project Branches Branch - The list of branches of the project, as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project string
- ID or URL-encoded path of the project owned by the authenticated user.
- branches
List<Get
Project Branches Branch> - The list of branches of the project, as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- project String
- ID or URL-encoded path of the project owned by the authenticated user.
- branches
Get
Project Branches Branch[] - The list of branches of the project, as defined below.
- id string
- The provider-assigned unique ID for this managed resource.
- project string
- ID or URL-encoded path of the project owned by the authenticated user.
- branches
Sequence[Get
Project Branches Branch] - The list of branches of the project, as defined below.
- id str
- The provider-assigned unique ID for this managed resource.
- project str
- ID or URL-encoded path of the project owned by the authenticated user.
- branches List<Property Map>
- The list of branches of the project, as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- project String
- ID or URL-encoded path of the project owned by the authenticated user.
Supporting Types
GetProjectBranchesBranch
- Can
Push This property is required. bool - Bool, true if you can push to the branch.
- Commits
This property is required. List<Pulumi.Git Lab. Inputs. Get Project Branches Branch Commit> - The commit associated with this branch.
- Default
This property is required. bool - Bool, true if branch is the default branch for the project.
- Developers
Can Merge This property is required. bool - Bool, true if developer level access allows to merge branch.
- Developers
Can Push This property is required. bool - Bool, true if developer level access allows git push.
- Merged
This property is required. bool - Bool, true if the branch has been merged into it's parent.
- Name
This property is required. string - The name of the branch.
- Protected
This property is required. bool - Bool, true if branch has branch protection.
- Web
Url This property is required. string - URL that can be used to find the branch in a browser.
- Can
Push This property is required. bool - Bool, true if you can push to the branch.
- Commits
This property is required. []GetProject Branches Branch Commit - The commit associated with this branch.
- Default
This property is required. bool - Bool, true if branch is the default branch for the project.
- Developers
Can Merge This property is required. bool - Bool, true if developer level access allows to merge branch.
- Developers
Can Push This property is required. bool - Bool, true if developer level access allows git push.
- Merged
This property is required. bool - Bool, true if the branch has been merged into it's parent.
- Name
This property is required. string - The name of the branch.
- Protected
This property is required. bool - Bool, true if branch has branch protection.
- Web
Url This property is required. string - URL that can be used to find the branch in a browser.
- can
Push This property is required. Boolean - Bool, true if you can push to the branch.
- commits
This property is required. List<GetProject Branches Branch Commit> - The commit associated with this branch.
- default_
This property is required. Boolean - Bool, true if branch is the default branch for the project.
- developers
Can Merge This property is required. Boolean - Bool, true if developer level access allows to merge branch.
- developers
Can Push This property is required. Boolean - Bool, true if developer level access allows git push.
- merged
This property is required. Boolean - Bool, true if the branch has been merged into it's parent.
- name
This property is required. String - The name of the branch.
- protected_
This property is required. Boolean - Bool, true if branch has branch protection.
- web
Url This property is required. String - URL that can be used to find the branch in a browser.
- can
Push This property is required. boolean - Bool, true if you can push to the branch.
- commits
This property is required. GetProject Branches Branch Commit[] - The commit associated with this branch.
- default
This property is required. boolean - Bool, true if branch is the default branch for the project.
- developers
Can Merge This property is required. boolean - Bool, true if developer level access allows to merge branch.
- developers
Can Push This property is required. boolean - Bool, true if developer level access allows git push.
- merged
This property is required. boolean - Bool, true if the branch has been merged into it's parent.
- name
This property is required. string - The name of the branch.
- protected
This property is required. boolean - Bool, true if branch has branch protection.
- web
Url This property is required. string - URL that can be used to find the branch in a browser.
- can_
push This property is required. bool - Bool, true if you can push to the branch.
- commits
This property is required. Sequence[GetProject Branches Branch Commit] - The commit associated with this branch.
- default
This property is required. bool - Bool, true if branch is the default branch for the project.
- developers_
can_ merge This property is required. bool - Bool, true if developer level access allows to merge branch.
- developers_
can_ push This property is required. bool - Bool, true if developer level access allows git push.
- merged
This property is required. bool - Bool, true if the branch has been merged into it's parent.
- name
This property is required. str - The name of the branch.
- protected
This property is required. bool - Bool, true if branch has branch protection.
- web_
url This property is required. str - URL that can be used to find the branch in a browser.
- can
Push This property is required. Boolean - Bool, true if you can push to the branch.
- commits
This property is required. List<Property Map> - The commit associated with this branch.
- default
This property is required. Boolean - Bool, true if branch is the default branch for the project.
- developers
Can Merge This property is required. Boolean - Bool, true if developer level access allows to merge branch.
- developers
Can Push This property is required. Boolean - Bool, true if developer level access allows git push.
- merged
This property is required. Boolean - Bool, true if the branch has been merged into it's parent.
- name
This property is required. String - The name of the branch.
- protected
This property is required. Boolean - Bool, true if branch has branch protection.
- web
Url This property is required. String - URL that can be used to find the branch in a browser.
GetProjectBranchesBranchCommit
This property is required. string- The email of the author.
This property is required. string- The name of the author.
This property is required. string- The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
- Committed
Date This property is required. string - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
- Committer
Email This property is required. string - The email of the user that committed.
- Committer
Name This property is required. string - The name of the user that committed.
- Id
This property is required. string - The unique id assigned to the commit by Gitlab.
- Message
This property is required. string - The commit message
- Parent
Ids This property is required. List<string> - The id of the parents of the commit
- Short
Id This property is required. string - The short id assigned to the commit by Gitlab.
- Title
This property is required. string - The title of the commit
This property is required. string- The email of the author.
This property is required. string- The name of the author.
This property is required. string- The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
- Committed
Date This property is required. string - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
- Committer
Email This property is required. string - The email of the user that committed.
- Committer
Name This property is required. string - The name of the user that committed.
- Id
This property is required. string - The unique id assigned to the commit by Gitlab.
- Message
This property is required. string - The commit message
- Parent
Ids This property is required. []string - The id of the parents of the commit
- Short
Id This property is required. string - The short id assigned to the commit by Gitlab.
- Title
This property is required. string - The title of the commit
This property is required. String- The email of the author.
This property is required. String- The name of the author.
This property is required. String- The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
- committed
Date This property is required. String - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
- committer
Email This property is required. String - The email of the user that committed.
- committer
Name This property is required. String - The name of the user that committed.
- id
This property is required. String - The unique id assigned to the commit by Gitlab.
- message
This property is required. String - The commit message
- parent
Ids This property is required. List<String> - The id of the parents of the commit
- short
Id This property is required. String - The short id assigned to the commit by Gitlab.
- title
This property is required. String - The title of the commit
This property is required. string- The email of the author.
This property is required. string- The name of the author.
This property is required. string- The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
- committed
Date This property is required. string - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
- committer
Email This property is required. string - The email of the user that committed.
- committer
Name This property is required. string - The name of the user that committed.
- id
This property is required. string - The unique id assigned to the commit by Gitlab.
- message
This property is required. string - The commit message
- parent
Ids This property is required. string[] - The id of the parents of the commit
- short
Id This property is required. string - The short id assigned to the commit by Gitlab.
- title
This property is required. string - The title of the commit
This property is required. str- The email of the author.
This property is required. str- The name of the author.
This property is required. str- The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
- committed_
date This property is required. str - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
- committer_
email This property is required. str - The email of the user that committed.
- committer_
name This property is required. str - The name of the user that committed.
- id
This property is required. str - The unique id assigned to the commit by Gitlab.
- message
This property is required. str - The commit message
- parent_
ids This property is required. Sequence[str] - The id of the parents of the commit
- short_
id This property is required. str - The short id assigned to the commit by Gitlab.
- title
This property is required. str - The title of the commit
This property is required. String- The email of the author.
This property is required. String- The name of the author.
This property is required. String- The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
- committed
Date This property is required. String - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
- committer
Email This property is required. String - The email of the user that committed.
- committer
Name This property is required. String - The name of the user that committed.
- id
This property is required. String - The unique id assigned to the commit by Gitlab.
- message
This property is required. String - The commit message
- parent
Ids This property is required. List<String> - The id of the parents of the commit
- short
Id This property is required. String - The short id assigned to the commit by Gitlab.
- title
This property is required. String - The title of the commit
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlab
Terraform Provider.