group_package_settings
Gets or lists a group_package_settings resource.
Overview​
| Name | group_package_settings |
| Type | Resource |
| Id | gitlab.packages.group_package_settings |
Fields​
The following fields are returned by SELECT queries:
- get
GraphQL response envelope
| Name | Datatype | Description |
|---|---|---|
audit_events_enabled | boolean | Indicates whether audit events are created when publishing or deleting a package in the namespace (Premium and Ultimate only). |
generic_duplicate_exception_regex | string | When generic_duplicates_allowed is false, you can publish duplicate packages with names that match this regex. Otherwise, this setting has no effect. |
generic_duplicates_allowed | boolean | Indicates whether duplicate generic packages are allowed for the namespace. |
lock_maven_package_requests_forwarding | boolean | Indicates whether Maven package forwarding is locked for all descendent namespaces. |
lock_npm_package_requests_forwarding | boolean | Indicates whether npm package forwarding is locked for all descendent namespaces. |
lock_pypi_package_requests_forwarding | boolean | Indicates whether PyPI package forwarding is locked for all descendent namespaces. |
maven_duplicate_exception_regex | string | When maven_duplicates_allowed is false, you can publish duplicate packages with names that match this regex. Otherwise, this setting has no effect. |
maven_duplicates_allowed | boolean | Indicates whether duplicate Maven packages are allowed for the namespace. |
maven_package_requests_forwarding | boolean | Indicates whether Maven package forwarding is allowed for the namespace. |
maven_package_requests_forwarding_locked | boolean | Indicates whether Maven package forwarding settings are locked by a parent namespace. |
npm_package_requests_forwarding | boolean | Indicates whether npm package forwarding is allowed for the namespace. |
npm_package_requests_forwarding_locked | boolean | Indicates whether npm package forwarding settings are locked by a parent namespace. |
nuget_duplicate_exception_regex | string | When nuget_duplicates_allowed is false, you can publish duplicate packages with names that match this regex. Otherwise, this setting has no effect. |
nuget_duplicates_allowed | boolean | Indicates whether duplicate NuGet packages are allowed for the namespace. |
nuget_symbol_server_enabled | boolean | Indicates whether the NuGet symbol server is enabled for the namespace. |
pypi_package_requests_forwarding | boolean | Indicates whether PyPI package forwarding is allowed for the namespace. |
pypi_package_requests_forwarding_locked | boolean | Indicates whether PyPI package forwarding settings are locked by a parent namespace. |
terraform_module_duplicate_exception_regex | string | When terraform_module_duplicates_allowed is false, you can publish duplicate packages with names that match this regex. Otherwise, this setting has no effect. |
terraform_module_duplicates_allowed | boolean | Indicates whether duplicate Terraform packages are allowed for the namespace. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | full_path, host | Package settings for the namespace. Generated from the GitLab GraphQL schema field Group.packageSettings (PackageSettings). |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
full_path | string | Full path of the group, for example gitlab-org |
host | string | GitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST) |
SELECT examples​
- get
Package settings for the namespace. Generated from the GitLab GraphQL schema field Group.packageSettings (PackageSettings).
SELECT
audit_events_enabled,
generic_duplicate_exception_regex,
generic_duplicates_allowed,
lock_maven_package_requests_forwarding,
lock_npm_package_requests_forwarding,
lock_pypi_package_requests_forwarding,
maven_duplicate_exception_regex,
maven_duplicates_allowed,
maven_package_requests_forwarding,
maven_package_requests_forwarding_locked,
npm_package_requests_forwarding,
npm_package_requests_forwarding_locked,
nuget_duplicate_exception_regex,
nuget_duplicates_allowed,
nuget_symbol_server_enabled,
pypi_package_requests_forwarding,
pypi_package_requests_forwarding_locked,
terraform_module_duplicate_exception_regex,
terraform_module_duplicates_allowed
FROM gitlab.packages.group_package_settings
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
;