Skip to main content

project_pages_deployments

Gets or lists a project_pages_deployments resource.

Overview​

Nameproject_pages_deployments
TypeResource
Idgitlab.projects.project_pages_deployments

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
idstringID of the Pages Deployment.
ci_build_idstringID of the CI build that created the deployment.
activebooleanWhether the deployment is currently active.
created_atstringTime the deployment was created.
deleted_atstringTime the deployment was deleted.
expires_atstringTime the deployment will expire.
file_countintegerNumber of files that were published with the deployment.
path_prefixstringURL path Prefix that points to the deployment.
projectobjectProject identity (id, full_path, name)
root_directorystringPath within the build assets that functions as the root directory for Pages sites.
sizeintegerSize of the storage used.
updated_atstringTime the deployment was last updated.
urlstringPublicly accessible URL of the deployment.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfull_path, hostactive, sort, versionedList of the project's Pages Deployments. Generated from the GitLab GraphQL schema field Project.pagesDeployments (connection of PagesDeployment 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)
activebooleanFilter by active or inactive state.
sortstringSort results.
versionedbooleanFilter deployments that are versioned or unversioned.

SELECT examples​

List of the project's Pages Deployments. Generated from the GitLab GraphQL schema field Project.pagesDeployments (connection of PagesDeployment nodes).

SELECT
id,
ci_build_id,
active,
created_at,
deleted_at,
expires_at,
file_count,
path_prefix,
project,
root_directory,
size,
updated_at,
url
FROM gitlab.projects.project_pages_deployments
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND active = '{{ active }}'
AND sort = '{{ sort }}'
AND versioned = '{{ versioned }}'
;