---
title: Pages
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Pages

#### PagesProjects

##### [List Cloudflare Pages projects](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/list)

client.Pages.Projects.List(ctx, params) (\*V4PagePaginationArray\[[Project](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/pages/projects

##### [Get a Cloudflare Pages project](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/get)

client.Pages.Projects.Get(ctx, projectName, query) (\*[Project](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/pages/projects/{project\_name}

##### [Get upload token](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/get_upload_token)

client.Pages.Projects.GetUploadToken(ctx, projectName, query) (\*[ProjectGetUploadTokenResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20ProjectGetUploadTokenResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/pages/projects/{project\_name}/upload-token

##### [Create a Cloudflare Pages project](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/create)

client.Pages.Projects.New(ctx, params) (\*[Project](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pages/projects

##### [Update a Cloudflare Pages project](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/edit)

client.Pages.Projects.Edit(ctx, projectName, params) (\*[Project](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/pages/projects/{project\_name}

##### [Delete a Cloudflare Pages project](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/delete)

client.Pages.Projects.Delete(ctx, projectName, body) (\*[ProjectDeleteResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20ProjectDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/pages/projects/{project\_name}

##### [Purge the Pages build cache](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/methods/purge_build_cache)

client.Pages.Projects.PurgeBuildCache(ctx, projectName, body) (\*[ProjectPurgeBuildCacheResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20ProjectPurgeBuildCacheResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pages/projects/{project\_name}/purge\_build\_cache

##### ModelsExpand Collapse

<details>

<summary>

type Deployment struct{…}

</summary>

ID string

Id of the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Aliases \[]string

A list of alias URLs pointing to this deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20aliases">Link to this property</a>

<details>

<summary>

BuildConfig DeploymentBuildConfig

Configs for the project build process.

</summary>

WebAnalyticsTag string

The classifying tag for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_tag">Link to this property</a>

WebAnalyticsToken string

The auth token for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_token">Link to this property</a>

BuildCaching boolOptional

Enable build caching for the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_caching">Link to this property</a>

BuildCommand stringOptional

Command used to build project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_command">Link to this property</a>

DestinationDir stringOptional

Assets output directory of the build.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20destination_dir">Link to this property</a>

RootDir stringOptional

Directory to run the command.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20root_dir">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20build_config">Link to this property</a>

CreatedOn Time

When the deployment was created.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

DeploymentTrigger DeploymentDeploymentTrigger

Info about what caused the deployment.

</summary>

<details>

<summary>

Metadata DeploymentDeploymentTriggerMetadata

Additional info about the trigger.

</summary>

Branch string

Where the trigger happened.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20branch">Link to this property</a>

CommitDirty bool

Whether the deployment trigger commit was dirty.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20commit_dirty">Link to this property</a>

CommitHash string

Hash of the deployment trigger commit.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20commit_hash">Link to this property</a>

CommitMessage string

Message of the deployment trigger commit.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata%20%3E%20(property)%20commit_message">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20metadata">Link to this property</a>

<details>

<summary>

Type DeploymentDeploymentTriggerType

What caused the deployment.

</summary>

One of the following:

const DeploymentDeploymentTriggerTypeGitHubPush DeploymentDeploymentTriggerType = "github:push"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const DeploymentDeploymentTriggerTypeADHoc DeploymentDeploymentTriggerType = "ad\_hoc"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

const DeploymentDeploymentTriggerTypeDeployHook DeploymentDeploymentTriggerType = "deploy\_hook"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20deployment_trigger">Link to this property</a>

<details>

<summary>

EnvVars map\[string, DeploymentEnvVar]

Environment variables used for builds and Pages Functions.

</summary>

One of the following:

<details>

<summary>

type DeploymentEnvVarsPagesPlainTextEnvVar struct{…}

A plaintext environment variable.

</summary>

Type DeploymentEnvVarsPagesPlainTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

Value string

Environment variable value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type DeploymentEnvVarsPagesSecretTextEnvVar struct{…}

An encrypted environment variable.

</summary>

Type DeploymentEnvVarsPagesSecretTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

Secret value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20env_vars">Link to this property</a>

<details>

<summary>

Environment DeploymentEnvironment

Type of deploy.

</summary>

One of the following:

const DeploymentEnvironmentPreview DeploymentEnvironment = "preview"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20environment%20%3E%20(member)%200">Link to this property</a>

const DeploymentEnvironmentProduction DeploymentEnvironment = "production"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20environment%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20environment">Link to this property</a>

IsSkipped bool

Whether the deployment was skipped.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20is_skipped">Link to this property</a>

LatestStage <a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)">Stage</a>

The status of the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20latest_stage">Link to this property</a>

ModifiedOn Time

When the deployment was last modified.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

ProjectID string

Id of the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20project_id">Link to this property</a>

ProjectName string

Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20project_name">Link to this property</a>

ShortID string

Short Id (8 character) of the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20short_id">Link to this property</a>

<details>

<summary>

Source DeploymentSource

Configs for the project source control.

</summary>

<details>

<summary>

Config DeploymentSourceConfig

</summary>

DeprecatedDeploymentsEnabled bool

Use <code>production_deployments_enabled</code> and <code>preview_deployment_setting</code> for more granular control.

Whether to enable automatic deployments when pushing to the source repository. When disabled, no deployments (production or preview) will be triggered automatically.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20deployments_enabled">Link to this property</a>

Owner string

The owner of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner">Link to this property</a>

OwnerID string

The owner ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner_id">Link to this property</a>

PathExcludes \[]string

A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_excludes">Link to this property</a>

PathIncludes \[]string

A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_includes">Link to this property</a>

PrCommentsEnabled bool

Whether to enable PR comments.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20pr_comments_enabled">Link to this property</a>

PreviewBranchExcludes \[]string

A list of branches that should not trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_excludes">Link to this property</a>

PreviewBranchIncludes \[]string

A list of branches that should trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_includes">Link to this property</a>

<details>

<summary>

PreviewDeploymentSetting DeploymentSourceConfigPreviewDeploymentSetting

Controls whether commits to preview branches trigger a preview deployment.

</summary>

One of the following:

const DeploymentSourceConfigPreviewDeploymentSettingAll DeploymentSourceConfigPreviewDeploymentSetting = "all"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%200">Link to this property</a>

const DeploymentSourceConfigPreviewDeploymentSettingNone DeploymentSourceConfigPreviewDeploymentSetting = "none"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%201">Link to this property</a>

const DeploymentSourceConfigPreviewDeploymentSettingCustom DeploymentSourceConfigPreviewDeploymentSetting = "custom"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting">Link to this property</a>

ProductionBranch string

The production branch of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_branch">Link to this property</a>

ProductionDeploymentsEnabled bool

Whether to trigger a production deployment on commits to the production branch.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_deployments_enabled">Link to this property</a>

RepoID string

The ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_id">Link to this property</a>

RepoName string

The name of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config">Link to this property</a>

<details>

<summary>

Type DeploymentSourceType

The source control management provider.

</summary>

One of the following:

const DeploymentSourceTypeGitHub DeploymentSourceType = "github"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const DeploymentSourceTypeGitlab DeploymentSourceType = "gitlab"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

<details>

<summary>

Stages \[]<a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)">Stage</a>

List of past stages.

</summary>

EndedOn Time

When the stage ended.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20ended_on">Link to this property</a>

<details>

<summary>

Name StageName

The current build stage.

</summary>

One of the following:

const StageNameQueued StageName = "queued"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%200">Link to this property</a>

const StageNameInitialize StageName = "initialize"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%201">Link to this property</a>

const StageNameCloneRepo StageName = "clone\_repo"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%202">Link to this property</a>

const StageNameBuild StageName = "build"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%203">Link to this property</a>

const StageNameDeploy StageName = "deploy"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

StartedOn Time

When the stage started.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20started_on">Link to this property</a>

<details>

<summary>

Status StageStatus

State of the current stage.

</summary>

One of the following:

const StageStatusSuccess StageStatus = "success"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const StageStatusIdle StageStatus = "idle"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const StageStatusActive StageStatus = "active"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const StageStatusFailure StageStatus = "failure"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const StageStatusCanceled StageStatus = "canceled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const StageStatusSkipped StageStatus = "skipped"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20stages">Link to this property</a>

URL string

The live URL to view this deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

<details>

<summary>

SkipReason DeploymentSkipReasonOptional

Why the deployment was skipped.

</summary>

One of the following:

const DeploymentSkipReasonCommitMessage DeploymentSkipReason = "commit\_message"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%200">Link to this property</a>

const DeploymentSkipReasonPreviewDeploymentsDisabled DeploymentSkipReason = "preview\_deployments\_disabled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%201">Link to this property</a>

const DeploymentSkipReasonProductionDeploymentsDisabled DeploymentSkipReason = "production\_deployments\_disabled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%202">Link to this property</a>

const DeploymentSkipReasonPathConfig DeploymentSkipReason = "path\_config"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%203">Link to this property</a>

const DeploymentSkipReasonBranchConfig DeploymentSkipReason = "branch\_config"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%204">Link to this property</a>

const DeploymentSkipReasonPagesToWorkersConversion DeploymentSkipReason = "pages\_to\_workers\_conversion"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%205">Link to this property</a>

const DeploymentSkipReasonSupersededQueuedBuild DeploymentSkipReason = "superseded\_queued\_build"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20skip_reason">Link to this property</a>

UsesFunctions boolOptional

Whether the deployment uses functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)%20%3E%20(property)%20uses_functions">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)>)

<details>

<summary>

type Project struct{…}

</summary>

ID string

ID of the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CanonicalDeployment <a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)">Deployment</a>

Most recent production deployment of the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20canonical_deployment">Link to this property</a>

CreatedOn Time

When the project was created.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

DeploymentConfigs ProjectDeploymentConfigs

Configs for deployments in a project.

</summary>

<details>

<summary>

Preview ProjectDeploymentConfigsPreview

Configs for preview deploys.

</summary>

AlwaysUseLatestCompatibilityDate bool

Whether to always use the latest compatibility date for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20always_use_latest_compatibility_date">Link to this property</a>

BuildImageMajorVersion int64

The major version of the build image to use for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20build_image_major_version">Link to this property</a>

CompatibilityDate string

Compatibility date used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20compatibility_date">Link to this property</a>

CompatibilityFlags \[]string

Compatibility flags used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20compatibility_flags">Link to this property</a>

<details>

<summary>

EnvVars map\[string, ProjectDeploymentConfigsPreviewEnvVar]

Environment variables used for builds and Pages Functions.

</summary>

One of the following:

<details>

<summary>

type ProjectDeploymentConfigsPreviewEnvVarsPagesPlainTextEnvVar struct{…}

A plaintext environment variable.

</summary>

Type ProjectDeploymentConfigsPreviewEnvVarsPagesPlainTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

Value string

Environment variable value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type ProjectDeploymentConfigsPreviewEnvVarsPagesSecretTextEnvVar struct{…}

An encrypted environment variable.

</summary>

Type ProjectDeploymentConfigsPreviewEnvVarsPagesSecretTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

Secret value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20env_vars">Link to this property</a>

FailOpen bool

Whether to fail open when the deployment config cannot be applied.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20fail_open">Link to this property</a>

<details>

<summary>

DeprecatedUsageModel ProjectDeploymentConfigsPreviewUsageModel

All new projects now use the Standard usage model.

The usage model for Pages Functions.

</summary>

One of the following:

const ProjectDeploymentConfigsPreviewUsageModelStandard ProjectDeploymentConfigsPreviewUsageModel = "standard"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model%20%3E%20(member)%200">Link to this property</a>

const ProjectDeploymentConfigsPreviewUsageModelBundled ProjectDeploymentConfigsPreviewUsageModel = "bundled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model%20%3E%20(member)%201">Link to this property</a>

const ProjectDeploymentConfigsPreviewUsageModelUnbound ProjectDeploymentConfigsPreviewUsageModel = "unbound"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20usage_model">Link to this property</a>

<details>

<summary>

AIBindings map\[string, ProjectDeploymentConfigsPreviewAIBinding]Optional

Constellation bindings used for Pages Functions.

</summary>

ProjectID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20ai_bindings%20%3E%20(items)%20%3E%20(property)%20project_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20ai_bindings">Link to this property</a>

<details>

<summary>

AnalyticsEngineDatasets map\[string, ProjectDeploymentConfigsPreviewAnalyticsEngineDataset]Optional

Analytics Engine bindings used for Pages Functions.

</summary>

Dataset string

Name of the dataset.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20analytics_engine_datasets%20%3E%20(items)%20%3E%20(property)%20dataset">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20analytics_engine_datasets">Link to this property</a>

Browsers map\[string, ProjectDeploymentConfigsPreviewBrowser]Optional

Browser bindings used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20browsers">Link to this property</a>

<details>

<summary>

D1Databases map\[string, ProjectDeploymentConfigsPreviewD1Database]Optional

D1 databases used for Pages Functions.

</summary>

ID string

UUID of the D1 database.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20d1_databases%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20d1_databases">Link to this property</a>

<details>

<summary>

DurableObjectNamespaces map\[string, ProjectDeploymentConfigsPreviewDurableObjectNamespace]Optional

Durable Object namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the Durable Object namespace.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20durable_object_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20durable_object_namespaces">Link to this property</a>

<details>

<summary>

HyperdriveBindings map\[string, ProjectDeploymentConfigsPreviewHyperdriveBinding]Optional

Hyperdrive bindings used for Pages Functions.

</summary>

ID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20hyperdrive_bindings%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20hyperdrive_bindings">Link to this property</a>

<details>

<summary>

KVNamespaces map\[string, ProjectDeploymentConfigsPreviewKVNamespace]Optional

KV namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the KV namespace.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20kv_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20kv_namespaces">Link to this property</a>

<details>

<summary>

Limits ProjectDeploymentConfigsPreviewLimitsOptional

Limits for Pages Functions.

</summary>

CPUMs int64

CPU time limit in milliseconds.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20limits%20%3E%20(property)%20cpu_ms">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20limits">Link to this property</a>

<details>

<summary>

MTLSCertificates map\[string, ProjectDeploymentConfigsPreviewMTLSCertificate]Optional

mTLS bindings used for Pages Functions.

</summary>

CertificateID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20mtls_certificates%20%3E%20(items)%20%3E%20(property)%20certificate_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20mtls_certificates">Link to this property</a>

<details>

<summary>

Placement ProjectDeploymentConfigsPreviewPlacementOptional

Placement setting used for Pages Functions.

</summary>

Mode string

Placement mode.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20placement%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20placement">Link to this property</a>

<details>

<summary>

QueueProducers map\[string, ProjectDeploymentConfigsPreviewQueueProducer]Optional

Queue Producer bindings used for Pages Functions.

</summary>

Name string

Name of the Queue.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20queue_producers%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20queue_producers">Link to this property</a>

<details>

<summary>

R2Buckets map\[string, ProjectDeploymentConfigsPreviewR2Bucket]Optional

R2 buckets used for Pages Functions.

</summary>

Name string

Name of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Jurisdiction stringOptional

Jurisdiction of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20jurisdiction">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20r2_buckets">Link to this property</a>

<details>

<summary>

Services map\[string, ProjectDeploymentConfigsPreviewService]Optional

Services used for Pages Functions.

</summary>

Environment string

The Service environment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20environment">Link to this property</a>

Service string

The Service name.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20service">Link to this property</a>

Entrypoint stringOptional

The entrypoint to bind to.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20entrypoint">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20services">Link to this property</a>

<details>

<summary>

VectorizeBindings map\[string, ProjectDeploymentConfigsPreviewVectorizeBinding]Optional

Vectorize bindings used for Pages Functions.

</summary>

IndexName string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20vectorize_bindings%20%3E%20(items)%20%3E%20(property)%20index_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20vectorize_bindings">Link to this property</a>

WranglerConfigHash stringOptional

Hash of the Wrangler configuration used for the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview%20%3E%20(property)%20wrangler_config_hash">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20preview">Link to this property</a>

<details>

<summary>

Production ProjectDeploymentConfigsProduction

Configs for production deploys.

</summary>

AlwaysUseLatestCompatibilityDate bool

Whether to always use the latest compatibility date for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20always_use_latest_compatibility_date">Link to this property</a>

BuildImageMajorVersion int64

The major version of the build image to use for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20build_image_major_version">Link to this property</a>

CompatibilityDate string

Compatibility date used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20compatibility_date">Link to this property</a>

CompatibilityFlags \[]string

Compatibility flags used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20compatibility_flags">Link to this property</a>

<details>

<summary>

EnvVars map\[string, ProjectDeploymentConfigsProductionEnvVar]

Environment variables used for builds and Pages Functions.

</summary>

One of the following:

<details>

<summary>

type ProjectDeploymentConfigsProductionEnvVarsPagesPlainTextEnvVar struct{…}

A plaintext environment variable.

</summary>

Type ProjectDeploymentConfigsProductionEnvVarsPagesPlainTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

Value string

Environment variable value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type ProjectDeploymentConfigsProductionEnvVarsPagesSecretTextEnvVar struct{…}

An encrypted environment variable.

</summary>

Type ProjectDeploymentConfigsProductionEnvVarsPagesSecretTextEnvVarType

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

Value string

Secret value.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20env_vars">Link to this property</a>

FailOpen bool

Whether to fail open when the deployment config cannot be applied.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20fail_open">Link to this property</a>

<details>

<summary>

DeprecatedUsageModel ProjectDeploymentConfigsProductionUsageModel

All new projects now use the Standard usage model.

The usage model for Pages Functions.

</summary>

One of the following:

const ProjectDeploymentConfigsProductionUsageModelStandard ProjectDeploymentConfigsProductionUsageModel = "standard"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20usage_model%20%3E%20(member)%200">Link to this property</a>

const ProjectDeploymentConfigsProductionUsageModelBundled ProjectDeploymentConfigsProductionUsageModel = "bundled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20usage_model%20%3E%20(member)%201">Link to this property</a>

const ProjectDeploymentConfigsProductionUsageModelUnbound ProjectDeploymentConfigsProductionUsageModel = "unbound"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20usage_model%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20usage_model">Link to this property</a>

<details>

<summary>

AIBindings map\[string, ProjectDeploymentConfigsProductionAIBinding]Optional

Constellation bindings used for Pages Functions.

</summary>

ProjectID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20ai_bindings%20%3E%20(items)%20%3E%20(property)%20project_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20ai_bindings">Link to this property</a>

<details>

<summary>

AnalyticsEngineDatasets map\[string, ProjectDeploymentConfigsProductionAnalyticsEngineDataset]Optional

Analytics Engine bindings used for Pages Functions.

</summary>

Dataset string

Name of the dataset.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20analytics_engine_datasets%20%3E%20(items)%20%3E%20(property)%20dataset">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20analytics_engine_datasets">Link to this property</a>

Browsers map\[string, ProjectDeploymentConfigsProductionBrowser]Optional

Browser bindings used for Pages Functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20browsers">Link to this property</a>

<details>

<summary>

D1Databases map\[string, ProjectDeploymentConfigsProductionD1Database]Optional

D1 databases used for Pages Functions.

</summary>

ID string

UUID of the D1 database.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20d1_databases%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20d1_databases">Link to this property</a>

<details>

<summary>

DurableObjectNamespaces map\[string, ProjectDeploymentConfigsProductionDurableObjectNamespace]Optional

Durable Object namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the Durable Object namespace.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20durable_object_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20durable_object_namespaces">Link to this property</a>

<details>

<summary>

HyperdriveBindings map\[string, ProjectDeploymentConfigsProductionHyperdriveBinding]Optional

Hyperdrive bindings used for Pages Functions.

</summary>

ID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20hyperdrive_bindings%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20hyperdrive_bindings">Link to this property</a>

<details>

<summary>

KVNamespaces map\[string, ProjectDeploymentConfigsProductionKVNamespace]Optional

KV namespaces used for Pages Functions.

</summary>

NamespaceID string

ID of the KV namespace.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20kv_namespaces%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20kv_namespaces">Link to this property</a>

<details>

<summary>

Limits ProjectDeploymentConfigsProductionLimitsOptional

Limits for Pages Functions.

</summary>

CPUMs int64

CPU time limit in milliseconds.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20limits%20%3E%20(property)%20cpu_ms">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20limits">Link to this property</a>

<details>

<summary>

MTLSCertificates map\[string, ProjectDeploymentConfigsProductionMTLSCertificate]Optional

mTLS bindings used for Pages Functions.

</summary>

CertificateID string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20mtls_certificates%20%3E%20(items)%20%3E%20(property)%20certificate_id">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20mtls_certificates">Link to this property</a>

<details>

<summary>

Placement ProjectDeploymentConfigsProductionPlacementOptional

Placement setting used for Pages Functions.

</summary>

Mode string

Placement mode.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20placement%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20placement">Link to this property</a>

<details>

<summary>

QueueProducers map\[string, ProjectDeploymentConfigsProductionQueueProducer]Optional

Queue Producer bindings used for Pages Functions.

</summary>

Name string

Name of the Queue.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20queue_producers%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20queue_producers">Link to this property</a>

<details>

<summary>

R2Buckets map\[string, ProjectDeploymentConfigsProductionR2Bucket]Optional

R2 buckets used for Pages Functions.

</summary>

Name string

Name of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Jurisdiction stringOptional

Jurisdiction of the R2 bucket.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20r2_buckets%20%3E%20(items)%20%3E%20(property)%20jurisdiction">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20r2_buckets">Link to this property</a>

<details>

<summary>

Services map\[string, ProjectDeploymentConfigsProductionService]Optional

Services used for Pages Functions.

</summary>

Environment string

The Service environment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20environment">Link to this property</a>

Service string

The Service name.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20service">Link to this property</a>

Entrypoint stringOptional

The entrypoint to bind to.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20services%20%3E%20(items)%20%3E%20(property)%20entrypoint">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20services">Link to this property</a>

<details>

<summary>

VectorizeBindings map\[string, ProjectDeploymentConfigsProductionVectorizeBinding]Optional

Vectorize bindings used for Pages Functions.

</summary>

IndexName string

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20vectorize_bindings%20%3E%20(items)%20%3E%20(property)%20index_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20vectorize_bindings">Link to this property</a>

WranglerConfigHash stringOptional

Hash of the Wrangler configuration used for the deployment.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production%20%3E%20(property)%20wrangler_config_hash">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs%20%3E%20(property)%20production">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20deployment_configs">Link to this property</a>

Framework string

Framework the project is using.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20framework">Link to this property</a>

FrameworkVersion string

Version of the framework the project is using.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20framework_version">Link to this property</a>

LatestDeployment <a href="https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)">Deployment</a>

Most recent deployment of the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20latest_deployment">Link to this property</a>

Name string

Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

PreviewScriptName string

Name of the preview script.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20preview_script_name">Link to this property</a>

ProductionBranch string

Production branch of the project. Used to identify production deployments.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20production_branch">Link to this property</a>

ProductionScriptName string

Name of the production script.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20production_script_name">Link to this property</a>

UsesFunctions bool

Whether the project uses functions.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20uses_functions">Link to this property</a>

<details>

<summary>

BuildConfig ProjectBuildConfigOptional

Configs for the project build process.

</summary>

WebAnalyticsTag string

The classifying tag for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_tag">Link to this property</a>

WebAnalyticsToken string

The auth token for analytics.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20web_analytics_token">Link to this property</a>

BuildCaching boolOptional

Enable build caching for the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_caching">Link to this property</a>

BuildCommand stringOptional

Command used to build project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20build_command">Link to this property</a>

DestinationDir stringOptional

Assets output directory of the build.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20destination_dir">Link to this property</a>

RootDir stringOptional

Directory to run the command.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config%20%3E%20(property)%20root_dir">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20build_config">Link to this property</a>

Domains \[]stringOptional

A list of associated custom domains for the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20domains">Link to this property</a>

<details>

<summary>

Source ProjectSourceOptional

Configs for the project source control.

</summary>

<details>

<summary>

Config ProjectSourceConfig

</summary>

DeprecatedDeploymentsEnabled bool

Use <code>production_deployments_enabled</code> and <code>preview_deployment_setting</code> for more granular control.

Whether to enable automatic deployments when pushing to the source repository. When disabled, no deployments (production or preview) will be triggered automatically.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20deployments_enabled">Link to this property</a>

Owner string

The owner of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner">Link to this property</a>

OwnerID string

The owner ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20owner_id">Link to this property</a>

PathExcludes \[]string

A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_excludes">Link to this property</a>

PathIncludes \[]string

A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20path_includes">Link to this property</a>

PrCommentsEnabled bool

Whether to enable PR comments.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20pr_comments_enabled">Link to this property</a>

PreviewBranchExcludes \[]string

A list of branches that should not trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_excludes">Link to this property</a>

PreviewBranchIncludes \[]string

A list of branches that should trigger a preview deployment. Wildcard syntax (<code>*</code>) is supported. Must be used with <code>preview_deployment_setting</code> set to <code>custom</code>.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_branch_includes">Link to this property</a>

<details>

<summary>

PreviewDeploymentSetting ProjectSourceConfigPreviewDeploymentSetting

Controls whether commits to preview branches trigger a preview deployment.

</summary>

One of the following:

const ProjectSourceConfigPreviewDeploymentSettingAll ProjectSourceConfigPreviewDeploymentSetting = "all"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%200">Link to this property</a>

const ProjectSourceConfigPreviewDeploymentSettingNone ProjectSourceConfigPreviewDeploymentSetting = "none"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%201">Link to this property</a>

const ProjectSourceConfigPreviewDeploymentSettingCustom ProjectSourceConfigPreviewDeploymentSetting = "custom"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20preview_deployment_setting">Link to this property</a>

ProductionBranch string

The production branch of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_branch">Link to this property</a>

ProductionDeploymentsEnabled bool

Whether to trigger a production deployment on commits to the production branch.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20production_deployments_enabled">Link to this property</a>

RepoID string

The ID of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_id">Link to this property</a>

RepoName string

The name of the repository.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config%20%3E%20(property)%20repo_name">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20config">Link to this property</a>

<details>

<summary>

Type ProjectSourceType

The source control management provider.

</summary>

One of the following:

const ProjectSourceTypeGitHub ProjectSourceType = "github"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const ProjectSourceTypeGitlab ProjectSourceType = "gitlab"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

Subdomain stringOptional

The Cloudflare subdomain associated with the project.

<a href="#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)%20%3E%20(property)%20subdomain">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pages.projects%20%3E%20(model)%20project%20%3E%20(schema)>)

<details>

<summary>

type Stage struct{…}

The status of the deployment.

</summary>

EndedOn Time

When the stage ended.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20ended_on">Link to this property</a>

<details>

<summary>

Name StageName

The current build stage.

</summary>

One of the following:

const StageNameQueued StageName = "queued"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%200">Link to this property</a>

const StageNameInitialize StageName = "initialize"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%201">Link to this property</a>

const StageNameCloneRepo StageName = "clone\_repo"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%202">Link to this property</a>

const StageNameBuild StageName = "build"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%203">Link to this property</a>

const StageNameDeploy StageName = "deploy"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

StartedOn Time

When the stage started.

formatdate-time

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20started_on">Link to this property</a>

<details>

<summary>

Status StageStatus

State of the current stage.

</summary>

One of the following:

const StageStatusSuccess StageStatus = "success"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const StageStatusIdle StageStatus = "idle"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const StageStatusActive StageStatus = "active"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const StageStatusFailure StageStatus = "failure"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const StageStatusCanceled StageStatus = "canceled"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const StageStatusSkipped StageStatus = "skipped"

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pages.projects%20%3E%20(model)%20stage%20%3E%20(schema)>)

#### PagesProjectsDeployments

##### [List Pages deployments](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/deployments/methods/list)

client.Pages.Projects.Deployments.List(ctx, projectName, params) (\*V4PagePaginationArray\[[Deployment](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/pages/projects/{project\_name}/deployments

##### [Get a Pages deployment](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/deployments/methods/get)

client.Pages.Projects.Deployments.Get(ctx, projectName, deploymentID, query) (\*[Deployment](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/pages/projects/{project\_name}/deployments/{deployment\_id}

##### [Create a Pages deployment](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/deployments/methods/create)

client.Pages.Projects.Deployments.New(ctx, projectName, params) (\*[Deployment](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pages/projects/{project\_name}/deployments

##### [Delete a Pages deployment](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/deployments/methods/delete)

client.Pages.Projects.Deployments.Delete(ctx, projectName, deploymentID, params) (\*[ProjectDeploymentDeleteResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects.deployments%20%3E%20(model)%20ProjectDeploymentDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/pages/projects/{project\_name}/deployments/{deployment\_id}

##### [Retry a Pages deployment](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/deployments/methods/retry)

client.Pages.Projects.Deployments.Retry(ctx, projectName, deploymentID, body) (\*[Deployment](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pages/projects/{project\_name}/deployments/{deployment\_id}/retry

##### [Roll back a Pages deployment](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/deployments/methods/rollback)

client.Pages.Projects.Deployments.Rollback(ctx, projectName, deploymentID, body) (\*[Deployment](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects%20%3E%20(model)%20deployment%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pages/projects/{project\_name}/deployments/{deployment\_id}/rollback

#### PagesProjectsDeploymentsHistory

#### PagesProjectsDeploymentsHistoryLogs

##### [Get Pages deployment logs](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/deployments/subresources/history/subresources/logs/methods/get)

client.Pages.Projects.Deployments.History.Logs.Get(ctx, projectName, deploymentID, query) (\*[ProjectDeploymentHistoryLogGetResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects.deployments.history.logs%20%3E%20(model)%20ProjectDeploymentHistoryLogGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/pages/projects/{project\_name}/deployments/{deployment\_id}/history/logs

#### PagesProjectsDeploymentsTails

##### [Create deployment tail](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/deployments/subresources/tails/methods/create)

client.Pages.Projects.Deployments.Tails.New(ctx, projectName, deploymentID, params) (\*[ProjectDeploymentTailNewResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects.deployments.tails%20%3E%20(model)%20ProjectDeploymentTailNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pages/projects/{project\_name}/deployments/{deployment\_id}/tails

##### [Delete deployment tail](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/deployments/subresources/tails/methods/delete)

client.Pages.Projects.Deployments.Tails.Delete(ctx, projectName, deploymentID, tailID, body) (\*[ProjectDeploymentTailDeleteResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects.deployments.tails%20%3E%20(model)%20ProjectDeploymentTailDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/pages/projects/{project\_name}/deployments/{deployment\_id}/tails/{tail\_id}

#### PagesProjectsDomains

##### [List Pages custom domains](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/domains/methods/list)

client.Pages.Projects.Domains.List(ctx, projectName, query) (\*SinglePage\[[ProjectDomainListResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects.domains%20%3E%20(model)%20ProjectDomainListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/pages/projects/{project\_name}/domains

##### [Get a Pages custom domain](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/domains/methods/get)

client.Pages.Projects.Domains.Get(ctx, projectName, domainName, query) (\*[ProjectDomainGetResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects.domains%20%3E%20(model)%20ProjectDomainGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/pages/projects/{project\_name}/domains/{domain\_name}

##### [Add a Pages custom domain](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/domains/methods/create)

client.Pages.Projects.Domains.New(ctx, projectName, params) (\*[ProjectDomainNewResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects.domains%20%3E%20(model)%20ProjectDomainNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pages/projects/{project\_name}/domains

##### [Retry custom domain validation](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/domains/methods/edit)

client.Pages.Projects.Domains.Edit(ctx, projectName, domainName, body) (\*[ProjectDomainEditResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects.domains%20%3E%20(model)%20ProjectDomainEditResponse%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/pages/projects/{project\_name}/domains/{domain\_name}

##### [Delete a Pages custom domain](https://developers.cloudflare.com/api/go/resources/pages/subresources/projects/subresources/domains/methods/delete)

client.Pages.Projects.Domains.Delete(ctx, projectName, domainName, body) (\*[ProjectDomainDeleteResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.projects.domains%20%3E%20(model)%20ProjectDomainDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/pages/projects/{project\_name}/domains/{domain\_name}

#### PagesAssets

##### [Upsert asset hashes](https://developers.cloudflare.com/api/go/resources/pages/subresources/assets/methods/upsert_hashes)

client.Pages.Assets.UpsertHashes(ctx, body) (\*[AssetUpsertHashesResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.assets%20%3E%20(model)%20AssetUpsertHashesResponse%20%3E%20(schema)>), error)

POST/pages/assets/upsert-hashes

##### [Check missing assets](https://developers.cloudflare.com/api/go/resources/pages/subresources/assets/methods/check_missing)

client.Pages.Assets.CheckMissing(ctx, body) (\*SinglePage\[string], error)

POST/pages/assets/check-missing

##### [Upload asset](https://developers.cloudflare.com/api/go/resources/pages/subresources/assets/methods/upload)

client.Pages.Assets.Upload(ctx, body) (\*[AssetUploadResponse](<https://developers.cloudflare.com/api/go/resources/pages#(resource)%20pages.assets%20%3E%20(model)%20AssetUploadResponse%20%3E%20(schema)>), error)

POST/pages/assets/upload