GetProject
Provides details about a specific project in the gitlab provider. The results include the name of the project, path, description, default branch, etc.
Example Usage
using Pulumi;
using GitLab = Pulumi.GitLab;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(GitLab.GetProject.InvokeAsync(new GitLab.GetProjectArgs
{
Id = 30,
}));
}
}
Coming soon!
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_project(id=30)import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = pulumi.output(gitlab.getProject({
id: 30,
}, { async: true }));Using GetProject
function getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>function get_project(archived=None, default_branch=None, description=None, http_url_to_repo=None, id=None, issues_enabled=None, lfs_enabled=None, merge_requests_enabled=None, name=None, namespace_id=None, path=None, pipelines_enabled=None, remove_source_branch_after_merge=None, request_access_enabled=None, runners_token=None, snippets_enabled=None, ssh_url_to_repo=None, visibility_level=None, web_url=None, wiki_enabled=None, opts=None)func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)Note: This function is named
LookupProjectin the Go SDK.
public static class GetProject {
public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Id int
The integer that uniquely identifies the project within the gitlab install.
- Archived bool
Whether the project is in read-only mode (archived).
- Default
Branch string The default branch for the project.
- Description string
A description of the project.
- Http
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via HTTP.- Issues
Enabled bool Enable issue tracking for the project.
- Lfs
Enabled bool Enable LFS for the project.
- Merge
Requests boolEnabled Enable merge requests for the project.
- Name string
- Namespace
Id int The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- Path string
The path of the repository.
- Pipelines
Enabled bool Enable pipelines for the project.
- Remove
Source boolBranch After Merge Enable
Delete source branchoption by default for all new merge requests- Request
Access boolEnabled Allow users to request member access.
- Runners
Token string Registration token to use during runner setup.
- Snippets
Enabled bool Enable snippets for the project.
- Ssh
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via SSH.- Visibility
Level string Repositories are created as private by default.
- Web
Url string URL that can be used to find the project in a browser.
- Wiki
Enabled bool Enable wiki for the project.
- Id int
The integer that uniquely identifies the project within the gitlab install.
- Archived bool
Whether the project is in read-only mode (archived).
- Default
Branch string The default branch for the project.
- Description string
A description of the project.
- Http
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via HTTP.- Issues
Enabled bool Enable issue tracking for the project.
- Lfs
Enabled bool Enable LFS for the project.
- Merge
Requests boolEnabled Enable merge requests for the project.
- Name string
- Namespace
Id int The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- Path string
The path of the repository.
- Pipelines
Enabled bool Enable pipelines for the project.
- Remove
Source boolBranch After Merge Enable
Delete source branchoption by default for all new merge requests- Request
Access boolEnabled Allow users to request member access.
- Runners
Token string Registration token to use during runner setup.
- Snippets
Enabled bool Enable snippets for the project.
- Ssh
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via SSH.- Visibility
Level string Repositories are created as private by default.
- Web
Url string URL that can be used to find the project in a browser.
- Wiki
Enabled bool Enable wiki for the project.
- id number
The integer that uniquely identifies the project within the gitlab install.
- archived boolean
Whether the project is in read-only mode (archived).
- default
Branch string The default branch for the project.
- description string
A description of the project.
- http
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via HTTP.- issues
Enabled boolean Enable issue tracking for the project.
- lfs
Enabled boolean Enable LFS for the project.
- merge
Requests booleanEnabled Enable merge requests for the project.
- name string
- namespace
Id number The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- path string
The path of the repository.
- pipelines
Enabled boolean Enable pipelines for the project.
- remove
Source booleanBranch After Merge Enable
Delete source branchoption by default for all new merge requests- request
Access booleanEnabled Allow users to request member access.
- runners
Token string Registration token to use during runner setup.
- snippets
Enabled boolean Enable snippets for the project.
- ssh
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via SSH.- visibility
Level string Repositories are created as private by default.
- web
Url string URL that can be used to find the project in a browser.
- wiki
Enabled boolean Enable wiki for the project.
- id float
The integer that uniquely identifies the project within the gitlab install.
- archived bool
Whether the project is in read-only mode (archived).
- default_
branch str The default branch for the project.
- description str
A description of the project.
- http_
url_ strto_ repo URL that can be provided to
git cloneto clone the repository via HTTP.- issues_
enabled bool Enable issue tracking for the project.
- lfs_
enabled bool Enable LFS for the project.
- merge_
requests_ boolenabled Enable merge requests for the project.
- name str
- namespace_
id float The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- path str
The path of the repository.
- pipelines_
enabled bool Enable pipelines for the project.
- remove_
source_ boolbranch_ after_ merge Enable
Delete source branchoption by default for all new merge requests- request_
access_ boolenabled Allow users to request member access.
- runners_
token str Registration token to use during runner setup.
- snippets_
enabled bool Enable snippets for the project.
- ssh_
url_ strto_ repo URL that can be provided to
git cloneto clone the repository via SSH.- visibility_
level str Repositories are created as private by default.
- web_
url str URL that can be used to find the project in a browser.
- wiki_
enabled bool Enable wiki for the project.
GetProject Result
The following output properties are available:
- Archived bool
Whether the project is in read-only mode (archived).
- Default
Branch string The default branch for the project.
- Description string
A description of the project.
- Http
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via HTTP.- Id int
Integer that uniquely identifies the project within the gitlab install.
- Issues
Enabled bool Enable issue tracking for the project.
- Lfs
Enabled bool Enable LFS for the project.
- Merge
Requests boolEnabled Enable merge requests for the project.
- Name string
- Namespace
Id int The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- Path string
The path of the repository.
- Pipelines
Enabled bool Enable pipelines for the project.
- Remove
Source boolBranch After Merge Enable
Delete source branchoption by default for all new merge requests- Request
Access boolEnabled Allow users to request member access.
- Runners
Token string Registration token to use during runner setup.
- Snippets
Enabled bool Enable snippets for the project.
- Ssh
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via SSH.- Visibility
Level string Repositories are created as private by default.
- Web
Url string URL that can be used to find the project in a browser.
- Wiki
Enabled bool Enable wiki for the project.
- Archived bool
Whether the project is in read-only mode (archived).
- Default
Branch string The default branch for the project.
- Description string
A description of the project.
- Http
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via HTTP.- Id int
Integer that uniquely identifies the project within the gitlab install.
- Issues
Enabled bool Enable issue tracking for the project.
- Lfs
Enabled bool Enable LFS for the project.
- Merge
Requests boolEnabled Enable merge requests for the project.
- Name string
- Namespace
Id int The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- Path string
The path of the repository.
- Pipelines
Enabled bool Enable pipelines for the project.
- Remove
Source boolBranch After Merge Enable
Delete source branchoption by default for all new merge requests- Request
Access boolEnabled Allow users to request member access.
- Runners
Token string Registration token to use during runner setup.
- Snippets
Enabled bool Enable snippets for the project.
- Ssh
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via SSH.- Visibility
Level string Repositories are created as private by default.
- Web
Url string URL that can be used to find the project in a browser.
- Wiki
Enabled bool Enable wiki for the project.
- archived boolean
Whether the project is in read-only mode (archived).
- default
Branch string The default branch for the project.
- description string
A description of the project.
- http
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via HTTP.- id number
Integer that uniquely identifies the project within the gitlab install.
- issues
Enabled boolean Enable issue tracking for the project.
- lfs
Enabled boolean Enable LFS for the project.
- merge
Requests booleanEnabled Enable merge requests for the project.
- name string
- namespace
Id number The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- path string
The path of the repository.
- pipelines
Enabled boolean Enable pipelines for the project.
- remove
Source booleanBranch After Merge Enable
Delete source branchoption by default for all new merge requests- request
Access booleanEnabled Allow users to request member access.
- runners
Token string Registration token to use during runner setup.
- snippets
Enabled boolean Enable snippets for the project.
- ssh
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via SSH.- visibility
Level string Repositories are created as private by default.
- web
Url string URL that can be used to find the project in a browser.
- wiki
Enabled boolean Enable wiki for the project.
- archived bool
Whether the project is in read-only mode (archived).
- default_
branch str The default branch for the project.
- description str
A description of the project.
- http_
url_ strto_ repo URL that can be provided to
git cloneto clone the repository via HTTP.- id float
Integer that uniquely identifies the project within the gitlab install.
- issues_
enabled bool Enable issue tracking for the project.
- lfs_
enabled bool Enable LFS for the project.
- merge_
requests_ boolenabled Enable merge requests for the project.
- name str
- namespace_
id float The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- path str
The path of the repository.
- pipelines_
enabled bool Enable pipelines for the project.
- remove_
source_ boolbranch_ after_ merge Enable
Delete source branchoption by default for all new merge requests- request_
access_ boolenabled Allow users to request member access.
- runners_
token str Registration token to use during runner setup.
- snippets_
enabled bool Enable snippets for the project.
- ssh_
url_ strto_ repo URL that can be provided to
git cloneto clone the repository via SSH.- visibility_
level str Repositories are created as private by default.
- web_
url str URL that can be used to find the project in a browser.
- wiki_
enabled bool Enable wiki for the project.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.