You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/project.md
+2
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ data "gitlab_project" "example" {
47
47
-`build_timeout` (Number) The maximum amount of time, in seconds, that a job can run.
48
48
-`builds_access_level` (String) Set the builds access level. Valid values are `disabled`, `private`, `enabled`.
49
49
-`ci_config_path` (String) CI config file path for the project.
50
+
-`ci_separated_caches` (Boolean) Use separate caches for protected branches.
50
51
-`container_expiration_policy` (List of Object) Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. (see [below for nested schema](#nestedatt--container_expiration_policy))
51
52
-`container_registry_access_level` (String) Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`.
52
53
-`default_branch` (String) The default branch for the project.
@@ -76,6 +77,7 @@ data "gitlab_project" "example" {
76
77
-`request_access_enabled` (Boolean) Allow users to request member access.
77
78
-`requirements_access_level` (String) Set the requirements access level. Valid values are `disabled`, `private`, `enabled`.
78
79
-`resolve_outdated_diff_discussions` (Boolean) Automatically resolve merge request diffs discussions on lines changed with a push.
80
+
-`restrict_user_defined_variables` (Boolean) Allow only users with the Maintainer role to pass user-defined variables when triggering a pipeline.
79
81
-`runners_token` (String) Registration token to use during runner setup.
80
82
-`security_and_compliance_access_level` (String) Set the security and compliance access level. Valid values are `disabled`, `private`, `enabled`.
81
83
-`snippets_access_level` (String) Set the snippets access level. Valid values are `disabled`, `private`, `enabled`.
-`token` (String) The OAuth2 Token, Project, Group, Personal Access Token or CI Job Token used to connect to GitLab. The OAuth method is used in this provider for authentication (using Bearer authorization token). See https://docs.gitlab.com/ee/api/#authentication for details. It may be sourced from the `GITLAB_TOKEN` environment variable.
75
-
76
72
### Optional
77
73
78
74
-`base_url` (String) This is the target GitLab base API endpoint. Providing a value is a requirement when working with GitLab CE or GitLab Enterprise e.g. `https://my.gitlab.server/api/v4/`. It is optional to provide this value and it can also be sourced from the `GITLAB_BASE_URL` environment variable. The value must end with a slash.
79
75
-`cacert_file` (String) This is a file containing the ca cert to verify the gitlab instance. This is available for use when working with GitLab CE or Gitlab Enterprise with a locally-issued or self-signed certificate chain.
80
76
-`client_cert` (String) File path to client certificate when GitLab instance is behind company proxy. File must contain PEM encoded data.
81
77
-`client_key` (String) File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data. Required when `client_cert` is set.
82
-
-`early_auth_check` (Boolean) (Experimental) By default the provider does a dummy request to get the current user in order to verify that the provider configuration is correct and the GitLab API is reachable. Turn it off, to skip this check. This may be useful if the GitLab instance does not yet exist and is created within the same terraform module. This is an experimental feature and may change in the future. Please make sure to always keep backups of your state.
78
+
-`early_auth_check` (Boolean) (Experimental) By default the provider does a dummy request to get the current user in order to verify that the provider configuration is correct and the GitLab API is reachable. Set this to `false` to skip this check. This may be useful if the GitLab instance does not yet exist and is created within the same terraform module. This is an experimental feature and may change in the future. Please make sure to always keep backups of your state.
83
79
-`insecure` (Boolean) When set to true this disables SSL verification of the connection to the GitLab instance.
80
+
-`token` (String, Sensitive) The OAuth2 Token, Project, Group, Personal Access Token or CI Job Token used to connect to GitLab. The OAuth method is used in this provider for authentication (using Bearer authorization token). See https://docs.gitlab.com/ee/api/#authentication for details. It may be sourced from the `GITLAB_TOKEN` environment variable.
-`auto_devops_enabled` (Boolean) Defaults to false. Default to Auto DevOps pipeline for all projects within this group.
47
+
-`avatar` (String) A local path to the avatar image to upload. **Note**: not available for imported resources.
48
+
-`avatar_hash` (String) The hash of the avatar image. Use `filesha256("path/to/avatar.png")` whenever possible. **Note**: this is used to trigger an update of the avatar. If it's not given, but an avatar is given, the avatar will be updated each time.
47
49
-`default_branch_protection` (Number) Defaults to 2. See https://docs.gitlab.com/ee/api/groups.html#options-for-default_branch_protection
48
50
-`description` (String) The description of the group.
49
51
-`emails_disabled` (Boolean) Defaults to false. Disable email notifications.
-`auto_devops_deploy_strategy` (String) Auto Deploy strategy. Valid values are `continuous`, `manual`, `timed_incremental`.
85
85
-`auto_devops_enabled` (Boolean) Enable Auto DevOps for this project.
86
86
-`autoclose_referenced_issues` (Boolean) Set whether auto-closing referenced issues on default branch.
87
+
-`avatar` (String) A local path to the avatar image to upload. **Note**: not available for imported resources.
88
+
-`avatar_hash` (String) The hash of the avatar image. Use `filesha256("path/to/avatar.png")` whenever possible. **Note**: this is used to trigger an update of the avatar. If it's not given, but an avatar is given, the avatar will be updated each time.
87
89
-`build_coverage_regex` (String, Deprecated) Test coverage parsing for the project. This is deprecated feature in GitLab 15.0.
88
90
-`build_git_strategy` (String) The Git strategy. Defaults to fetch.
89
91
-`build_timeout` (Number) The maximum amount of time, in seconds, that a job can run.
90
92
-`builds_access_level` (String) Set the builds access level. Valid values are `disabled`, `private`, `enabled`.
91
93
-`ci_config_path` (String) Custom Path to CI config file.
92
94
-`ci_default_git_depth` (Number) Default number of revisions for shallow cloning.
93
95
-`ci_forward_deployment_enabled` (Boolean) When a new deployment job starts, skip older deployment jobs that are still pending.
96
+
-`ci_separated_caches` (Boolean) Use separate caches for protected branches.
94
97
-`container_expiration_policy` (Block List, Max: 1) Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. (see [below for nested schema](#nestedblock--container_expiration_policy))
95
98
-`container_registry_access_level` (String) Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`.
96
-
-`container_registry_enabled` (Boolean) Enable container registry for the project.
99
+
-`container_registry_enabled` (Boolean, Deprecated) Enable container registry for the project.
97
100
-`default_branch` (String) The default branch for the project.
98
101
-`description` (String) A description of the project.
-`external_authorization_classification_label` (String) The classification label for the project.
104
+
-`forked_from_project_id` (Number) The id of the project to fork. During create the project is forked and during an update the fork relation is changed.
101
105
-`forking_access_level` (String) Set the forking access level. Valid values are `disabled`, `private`, `enabled`.
102
106
-`group_with_project_templates_id` (Number) For group-level custom templates, specifies ID of group from which all the custom project templates are sourced. Leave empty for instance-level templates. Requires use_custom_template to be true (enterprise edition).
103
107
-`import_url` (String) Git URL to a repository to be imported.
-`request_access_enabled` (Boolean) Allow users to request member access.
135
139
-`requirements_access_level` (String) Set the requirements access level. Valid values are `disabled`, `private`, `enabled`.
136
140
-`resolve_outdated_diff_discussions` (Boolean) Automatically resolve merge request diffs discussions on lines changed with a push.
141
+
-`restrict_user_defined_variables` (Boolean) Allow only users with the Maintainer role to pass user-defined variables when triggering a pipeline.
137
142
-`security_and_compliance_access_level` (String) Set the security and compliance access level. Valid values are `disabled`, `private`, `enabled`.
138
143
-`shared_runners_enabled` (Boolean) Enable shared runners for this project.
139
144
-`skip_wait_for_default_branch_protection` (Boolean) If `true`, the default behavior to wait for the default branch protection to be created is skipped.
@@ -156,6 +161,7 @@ This attribute is only used during resource creation, thus changes are suppresse
156
161
157
162
### Read-Only
158
163
164
+
-`avatar_url` (String) The URL of the avatar image.
159
165
-`http_url_to_repo` (String) URL that can be provided to `git clone` to clone the
160
166
-`id` (String) The ID of this resource.
161
167
-`path_with_namespace` (String) The path of the repository with namespace.
-`author_email` (String) Email of the commit author.
77
89
-`author_name` (String) Name of the commit author.
78
90
-`execute_filemode` (Boolean) Enables or disables the execute flag on the file. **Note**: requires GitLab 14.10 or newer.
91
+
-`overwrite_on_create` (Boolean) Enable overwriting existing files, defaults to `false`. This attribute is only used during `create` and must be use carefully. We suggest to use `imports` whenever possible and limit the use of this attribute for when the project was imported on the same `apply`. This attribute is not supported during a resource import.
79
92
-`start_branch` (String) Name of the branch to start the new commit from.
80
93
-`timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
0 commit comments