Skip to main content

group_root_storage_statistics

Gets or lists a group_root_storage_statistics resource.

Overview​

Namegroup_root_storage_statistics
TypeResource
Idgitlab.groups.group_root_storage_statistics

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
build_artifacts_sizenumberCI artifacts size in bytes.
container_registry_sizenumberContainer registry size in bytes.
container_registry_size_is_estimatedbooleanIndicates whether the deduplicated container registry size for the namespace is an estimated value or not.
dependency_proxy_sizenumberDependency Proxy sizes in bytes.
lfs_objects_sizenumberLFS objects size in bytes.
packages_sizenumberPackages size in bytes.
pipeline_artifacts_sizenumberCI pipeline artifacts size in bytes.
repository_sizenumberGit repository size in bytes.
snippets_sizenumberSnippets size in bytes.
storage_sizenumberTotal storage in bytes.
uploads_sizenumberUploads size in bytes.
wiki_sizenumberWiki size in bytes.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfull_path, hostAggregated storage statistics of the namespace. Only available for root namespaces. Generated from the GitLab GraphQL schema field Group.rootStorageStatistics (RootStorageStatistics).

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​

Aggregated storage statistics of the namespace. Only available for root namespaces. Generated from the GitLab GraphQL schema field Group.rootStorageStatistics (RootStorageStatistics).

SELECT
build_artifacts_size,
container_registry_size,
container_registry_size_is_estimated,
dependency_proxy_size,
lfs_objects_size,
packages_size,
pipeline_artifacts_size,
repository_size,
snippets_size,
storage_size,
uploads_size,
wiki_size
FROM gitlab.groups.group_root_storage_statistics
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
;