Skip to main content

project_fork_targets

Gets or lists a project_fork_targets resource.

Overview​

Nameproject_fork_targets
TypeResource
Idgitlab.projects.project_fork_targets

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
idstringID of the namespace.
namestringName of the namespace.
full_namestringFull name of the namespace.
actual_repository_size_limitnumberSize limit for repositories in the namespace in bytes. This limit only applies to namespaces under Project limit enforcement.
actual_size_limitnumberThe actual storage size limit (in bytes) based on the enforcement type of either repository or namespace. This limit is agnostic of enforcement type.
additional_purchased_storage_sizenumberAdditional storage purchased for the root namespace in bytes.
avatar_urlstringURL to avatar image file of the namespace.
contains_locked_projectsbooleanIncludes at least one project where the repository size exceeds the limit. This only applies to namespaces under Project limit enforcement.
cross_project_pipeline_availablebooleanIndicates if the cross_project_pipeline feature is available for the namespace.
descriptionstringDescription of the namespace.
full_pathstringFull path of the namespace.
lfs_enabledbooleanIndicates if Large File Storage (LFS) is enabled for namespace.
pathstringPath of the namespace.
repository_size_excess_project_countintegerNumber of projects in the root namespace where the repository size exceeds the limit. This only applies to namespaces under Project limit enforcement.
request_access_enabledbooleanIndicates if users can request access to namespace.
shared_runners_settingstringShared runners availability for the namespace and its descendants. (DISABLED_AND_UNOVERRIDABLE, DISABLED_AND_OVERRIDABLE, ENABLED)
storage_size_limitnumberThe storage limit (in bytes) included with the root namespace plan. This limit only applies to namespaces under namespace limit enforcement.
total_repository_sizenumberTotal repository size of all projects in the root namespace in bytes.
total_repository_size_excessnumberTotal excess repository size of all projects in the root namespace in bytes. This only applies to namespaces under Project limit enforcement.
visibilitystringVisibility of the namespace.
web_urlstringURL of the namespace.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfull_path, hostsearchNamespaces in which the current user can fork the project into. Generated from the GitLab GraphQL schema field Project.forkTargets (connection of Namespace nodes).

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 project, for example gitlab-org/gitlab
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​

Namespaces in which the current user can fork the project into. Generated from the GitLab GraphQL schema field Project.forkTargets (connection of Namespace nodes).

SELECT
id,
name,
full_name,
actual_repository_size_limit,
actual_size_limit,
additional_purchased_storage_size,
avatar_url,
contains_locked_projects,
cross_project_pipeline_available,
description,
full_path,
lfs_enabled,
path,
repository_size_excess_project_count,
request_access_enabled,
shared_runners_setting,
storage_size_limit,
total_repository_size,
total_repository_size_excess,
visibility,
web_url
FROM gitlab.projects.project_fork_targets
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND search = '{{ search }}'
;