Project
Create a Project Resource
new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);def Project(resource_name, opts=None, approvals_before_merge=None, archived=None, container_registry_enabled=None, default_branch=None, description=None, initialize_with_readme=None, issues_enabled=None, lfs_enabled=None, merge_method=None, merge_requests_enabled=None, name=None, namespace_id=None, only_allow_merge_if_all_discussions_are_resolved=None, only_allow_merge_if_pipeline_succeeds=None, path=None, pipelines_enabled=None, remove_source_branch_after_merge=None, request_access_enabled=None, shared_runners_enabled=None, shared_with_groups=None, snippets_enabled=None, tags=None, visibility_level=None, wiki_enabled=None, __props__=None);func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Project Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Project resource accepts the following input properties:
- Approvals
Before intMerge Number of merge request approvals required for merging. Default is 0.
- Archived bool
Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
- Container
Registry boolEnabled Enable container registry for the project.
- Default
Branch string The default branch for the project.
- Description string
A description of the project.
- Initialize
With boolReadme Create master branch with first commit containing a README.md file.
- Issues
Enabled bool Enable issue tracking for the project.
- Lfs
Enabled bool Enable LFS for the project.
- Merge
Method string Set to
ffto create fast-forward merges Valid values aremerge,rebase_merge,ffRepositories are created withmergeby default- Merge
Requests boolEnabled Enable merge requests for the project.
- Name string
The name of the project.
- Namespace
Id int The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- Only
Allow boolMerge If All Discussions Are Resolved Set to true if you want allow merges only if all discussions are resolved.
- Only
Allow boolMerge If Pipeline Succeeds Set to true if you want allow merges only if a pipeline succeeds.
- 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.
- bool
Enable shared runners for this project.
-
List<Pulumi.
Git Lab. Inputs. Project Shared With Group Args> Enable sharing the project with a list of groups (maps).
- Snippets
Enabled bool Enable snippets for the project.
- List<string>
Tags (topics) of the project.
- Visibility
Level string Set to
publicto create a public project. Valid values areprivate,internal,public. Repositories are created as private by default.- Wiki
Enabled bool Enable wiki for the project.
- Approvals
Before intMerge Number of merge request approvals required for merging. Default is 0.
- Archived bool
Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
- Container
Registry boolEnabled Enable container registry for the project.
- Default
Branch string The default branch for the project.
- Description string
A description of the project.
- Initialize
With boolReadme Create master branch with first commit containing a README.md file.
- Issues
Enabled bool Enable issue tracking for the project.
- Lfs
Enabled bool Enable LFS for the project.
- Merge
Method string Set to
ffto create fast-forward merges Valid values aremerge,rebase_merge,ffRepositories are created withmergeby default- Merge
Requests boolEnabled Enable merge requests for the project.
- Name string
The name of the project.
- Namespace
Id int The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- Only
Allow boolMerge If All Discussions Are Resolved Set to true if you want allow merges only if all discussions are resolved.
- Only
Allow boolMerge If Pipeline Succeeds Set to true if you want allow merges only if a pipeline succeeds.
- 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.
- bool
Enable shared runners for this project.
-
[]Project
Shared With Group Enable sharing the project with a list of groups (maps).
- Snippets
Enabled bool Enable snippets for the project.
- []string
Tags (topics) of the project.
- Visibility
Level string Set to
publicto create a public project. Valid values areprivate,internal,public. Repositories are created as private by default.- Wiki
Enabled bool Enable wiki for the project.
- approvals
Before numberMerge Number of merge request approvals required for merging. Default is 0.
- archived boolean
Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
- container
Registry booleanEnabled Enable container registry for the project.
- default
Branch string The default branch for the project.
- description string
A description of the project.
- initialize
With booleanReadme Create master branch with first commit containing a README.md file.
- issues
Enabled boolean Enable issue tracking for the project.
- lfs
Enabled boolean Enable LFS for the project.
- merge
Method string Set to
ffto create fast-forward merges Valid values aremerge,rebase_merge,ffRepositories are created withmergeby default- merge
Requests booleanEnabled Enable merge requests for the project.
- name string
The name of the project.
- namespace
Id number The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- only
Allow booleanMerge If All Discussions Are Resolved Set to true if you want allow merges only if all discussions are resolved.
- only
Allow booleanMerge If Pipeline Succeeds Set to true if you want allow merges only if a pipeline succeeds.
- 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.
- boolean
Enable shared runners for this project.
-
Project
Shared With Group[] Enable sharing the project with a list of groups (maps).
- snippets
Enabled boolean Enable snippets for the project.
- string[]
Tags (topics) of the project.
- visibility
Level string Set to
publicto create a public project. Valid values areprivate,internal,public. Repositories are created as private by default.- wiki
Enabled boolean Enable wiki for the project.
- approvals_
before_ floatmerge Number of merge request approvals required for merging. Default is 0.
- archived bool
Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
- container_
registry_ boolenabled Enable container registry for the project.
- default_
branch str The default branch for the project.
- description str
A description of the project.
- initialize_
with_ boolreadme Create master branch with first commit containing a README.md file.
- issues_
enabled bool Enable issue tracking for the project.
- lfs_
enabled bool Enable LFS for the project.
- merge_
method str Set to
ffto create fast-forward merges Valid values aremerge,rebase_merge,ffRepositories are created withmergeby default- merge_
requests_ boolenabled Enable merge requests for the project.
- name str
The name of the project.
- namespace_
id float The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- only_
allow_ boolmerge_ if_ all_ discussions_ are_ resolved Set to true if you want allow merges only if all discussions are resolved.
- only_
allow_ boolmerge_ if_ pipeline_ succeeds Set to true if you want allow merges only if a pipeline succeeds.
- 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.
- bool
Enable shared runners for this project.
-
List[Project
Shared With Group] Enable sharing the project with a list of groups (maps).
- snippets_
enabled bool Enable snippets for the project.
- List[str]
Tags (topics) of the project.
- visibility_
level str Set to
publicto create a public project. Valid values areprivate,internal,public. Repositories are created as private by default.- wiki_
enabled bool Enable wiki for the project.
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
- Http
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via HTTP.- Id string
- The provider-assigned unique ID for this managed resource.
- Runners
Token string Registration token to use during runner setup.
- Ssh
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via SSH.- Web
Url string URL that can be used to find the project in a browser.
- Http
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via HTTP.- Id string
- The provider-assigned unique ID for this managed resource.
- Runners
Token string Registration token to use during runner setup.
- Ssh
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via SSH.- Web
Url string URL that can be used to find the project in a browser.
- http
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via HTTP.- id string
- The provider-assigned unique ID for this managed resource.
- runners
Token string Registration token to use during runner setup.
- ssh
Url stringTo Repo URL that can be provided to
git cloneto clone the repository via SSH.- web
Url string URL that can be used to find the project in a browser.
- http_
url_ strto_ repo URL that can be provided to
git cloneto clone the repository via HTTP.- id str
- The provider-assigned unique ID for this managed resource.
- runners_
token str Registration token to use during runner setup.
- ssh_
url_ strto_ repo URL that can be provided to
git cloneto clone the repository via SSH.- web_
url str URL that can be used to find the project in a browser.
Look up an Existing Project Resource
Get an existing Project resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProjectState, opts?: CustomResourceOptions): Projectstatic get(resource_name, id, opts=None, approvals_before_merge=None, archived=None, container_registry_enabled=None, default_branch=None, description=None, http_url_to_repo=None, initialize_with_readme=None, issues_enabled=None, lfs_enabled=None, merge_method=None, merge_requests_enabled=None, name=None, namespace_id=None, only_allow_merge_if_all_discussions_are_resolved=None, only_allow_merge_if_pipeline_succeeds=None, path=None, pipelines_enabled=None, remove_source_branch_after_merge=None, request_access_enabled=None, runners_token=None, shared_runners_enabled=None, shared_with_groups=None, snippets_enabled=None, ssh_url_to_repo=None, tags=None, visibility_level=None, web_url=None, wiki_enabled=None, __props__=None);func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Approvals
Before intMerge Number of merge request approvals required for merging. Default is 0.
- Archived bool
Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
- Container
Registry boolEnabled Enable container registry for the project.
- 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.- Initialize
With boolReadme Create master branch with first commit containing a README.md file.
- Issues
Enabled bool Enable issue tracking for the project.
- Lfs
Enabled bool Enable LFS for the project.
- Merge
Method string Set to
ffto create fast-forward merges Valid values aremerge,rebase_merge,ffRepositories are created withmergeby default- Merge
Requests boolEnabled Enable merge requests for the project.
- Name string
The name of the project.
- Namespace
Id int The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- Only
Allow boolMerge If All Discussions Are Resolved Set to true if you want allow merges only if all discussions are resolved.
- Only
Allow boolMerge If Pipeline Succeeds Set to true if you want allow merges only if a pipeline succeeds.
- 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.
- bool
Enable shared runners for this project.
-
List<Pulumi.
Git Lab. Inputs. Project Shared With Group Args> Enable sharing the project with a list of groups (maps).
- 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.- List<string>
Tags (topics) of the project.
- Visibility
Level string Set to
publicto create a public project. Valid values areprivate,internal,public. 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.
- Approvals
Before intMerge Number of merge request approvals required for merging. Default is 0.
- Archived bool
Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
- Container
Registry boolEnabled Enable container registry for the project.
- 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.- Initialize
With boolReadme Create master branch with first commit containing a README.md file.
- Issues
Enabled bool Enable issue tracking for the project.
- Lfs
Enabled bool Enable LFS for the project.
- Merge
Method string Set to
ffto create fast-forward merges Valid values aremerge,rebase_merge,ffRepositories are created withmergeby default- Merge
Requests boolEnabled Enable merge requests for the project.
- Name string
The name of the project.
- Namespace
Id int The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- Only
Allow boolMerge If All Discussions Are Resolved Set to true if you want allow merges only if all discussions are resolved.
- Only
Allow boolMerge If Pipeline Succeeds Set to true if you want allow merges only if a pipeline succeeds.
- 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.
- bool
Enable shared runners for this project.
-
[]Project
Shared With Group Enable sharing the project with a list of groups (maps).
- 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.- []string
Tags (topics) of the project.
- Visibility
Level string Set to
publicto create a public project. Valid values areprivate,internal,public. 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.
- approvals
Before numberMerge Number of merge request approvals required for merging. Default is 0.
- archived boolean
Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
- container
Registry booleanEnabled Enable container registry for the project.
- 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.- initialize
With booleanReadme Create master branch with first commit containing a README.md file.
- issues
Enabled boolean Enable issue tracking for the project.
- lfs
Enabled boolean Enable LFS for the project.
- merge
Method string Set to
ffto create fast-forward merges Valid values aremerge,rebase_merge,ffRepositories are created withmergeby default- merge
Requests booleanEnabled Enable merge requests for the project.
- name string
The name of the project.
- namespace
Id number The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- only
Allow booleanMerge If All Discussions Are Resolved Set to true if you want allow merges only if all discussions are resolved.
- only
Allow booleanMerge If Pipeline Succeeds Set to true if you want allow merges only if a pipeline succeeds.
- 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.
- boolean
Enable shared runners for this project.
-
Project
Shared With Group[] Enable sharing the project with a list of groups (maps).
- 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.- string[]
Tags (topics) of the project.
- visibility
Level string Set to
publicto create a public project. Valid values areprivate,internal,public. 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.
- approvals_
before_ floatmerge Number of merge request approvals required for merging. Default is 0.
- archived bool
Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
- container_
registry_ boolenabled Enable container registry for the project.
- 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.- initialize_
with_ boolreadme Create master branch with first commit containing a README.md file.
- issues_
enabled bool Enable issue tracking for the project.
- lfs_
enabled bool Enable LFS for the project.
- merge_
method str Set to
ffto create fast-forward merges Valid values aremerge,rebase_merge,ffRepositories are created withmergeby default- merge_
requests_ boolenabled Enable merge requests for the project.
- name str
The name of the project.
- namespace_
id float The namespace (group or user) of the project. Defaults to your user. See
gitlab..Groupfor an example.- only_
allow_ boolmerge_ if_ all_ discussions_ are_ resolved Set to true if you want allow merges only if all discussions are resolved.
- only_
allow_ boolmerge_ if_ pipeline_ succeeds Set to true if you want allow merges only if a pipeline succeeds.
- 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.
- bool
Enable shared runners for this project.
-
List[Project
Shared With Group] Enable sharing the project with a list of groups (maps).
- 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.- List[str]
Tags (topics) of the project.
- visibility_
level str Set to
publicto create a public project. Valid values areprivate,internal,public. 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.
Supporting Types
ProjectSharedWithGroup
Package Details
- Repository
- https://github.com/pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.