Skip to main content

group_package_settings

Gets or lists a group_package_settings resource.

Overview​

Namegroup_package_settings
TypeResource
Idgitlab.packages.group_package_settings

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
audit_events_enabledbooleanIndicates whether audit events are created when publishing or deleting a package in the namespace (Premium and Ultimate only).
generic_duplicate_exception_regexstringWhen generic_duplicates_allowed is false, you can publish duplicate packages with names that match this regex. Otherwise, this setting has no effect.
generic_duplicates_allowedbooleanIndicates whether duplicate generic packages are allowed for the namespace.
lock_maven_package_requests_forwardingbooleanIndicates whether Maven package forwarding is locked for all descendent namespaces.
lock_npm_package_requests_forwardingbooleanIndicates whether npm package forwarding is locked for all descendent namespaces.
lock_pypi_package_requests_forwardingbooleanIndicates whether PyPI package forwarding is locked for all descendent namespaces.
maven_duplicate_exception_regexstringWhen maven_duplicates_allowed is false, you can publish duplicate packages with names that match this regex. Otherwise, this setting has no effect.
maven_duplicates_allowedbooleanIndicates whether duplicate Maven packages are allowed for the namespace.
maven_package_requests_forwardingbooleanIndicates whether Maven package forwarding is allowed for the namespace.
maven_package_requests_forwarding_lockedbooleanIndicates whether Maven package forwarding settings are locked by a parent namespace.
npm_package_requests_forwardingbooleanIndicates whether npm package forwarding is allowed for the namespace.
npm_package_requests_forwarding_lockedbooleanIndicates whether npm package forwarding settings are locked by a parent namespace.
nuget_duplicate_exception_regexstringWhen nuget_duplicates_allowed is false, you can publish duplicate packages with names that match this regex. Otherwise, this setting has no effect.
nuget_duplicates_allowedbooleanIndicates whether duplicate NuGet packages are allowed for the namespace.
nuget_symbol_server_enabledbooleanIndicates whether the NuGet symbol server is enabled for the namespace.
pypi_package_requests_forwardingbooleanIndicates whether PyPI package forwarding is allowed for the namespace.
pypi_package_requests_forwarding_lockedbooleanIndicates whether PyPI package forwarding settings are locked by a parent namespace.
terraform_module_duplicate_exception_regexstringWhen 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_allowedbooleanIndicates whether duplicate Terraform packages are allowed for the namespace.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfull_path, hostPackage 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.

NameDatatypeDescription
full_pathstringFull path of the group, for example gitlab-org
hoststringGitLab 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​

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)
;