# Pages

## Projects

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Deployment">Deployment</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Project">Project</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Stage">Stage</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeleteResponse">ProjectDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectPurgeBuildCacheResponse">ProjectPurgeBuildCacheResponse</a>

Methods:

- <code title="post /accounts/{account_id}/pages/projects">client.Pages.Projects.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectNewParams">ProjectNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Project">Project</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/pages/projects">client.Pages.Projects.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectListParams">ProjectListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Project">Project</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/pages/projects/{project_name}">client.Pages.Projects.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeleteParams">ProjectDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeleteResponse">ProjectDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /accounts/{account_id}/pages/projects/{project_name}">client.Pages.Projects.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectEditParams">ProjectEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Project">Project</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/pages/projects/{project_name}">client.Pages.Projects.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectGetParams">ProjectGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Project">Project</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/pages/projects/{project_name}/purge_build_cache">client.Pages.Projects.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectService.PurgeBuildCache">PurgeBuildCache</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectPurgeBuildCacheParams">ProjectPurgeBuildCacheParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectPurgeBuildCacheResponse">ProjectPurgeBuildCacheResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Deployments

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentDeleteResponse">ProjectDeploymentDeleteResponse</a>

Methods:

- <code title="post /accounts/{account_id}/pages/projects/{project_name}/deployments">client.Pages.Projects.Deployments.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentNewParams">ProjectDeploymentNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Deployment">Deployment</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/pages/projects/{project_name}/deployments">client.Pages.Projects.Deployments.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentListParams">ProjectDeploymentListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Deployment">Deployment</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}">client.Pages.Projects.Deployments.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, deploymentID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentDeleteParams">ProjectDeploymentDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentDeleteResponse">ProjectDeploymentDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}">client.Pages.Projects.Deployments.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, deploymentID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentGetParams">ProjectDeploymentGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Deployment">Deployment</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/retry">client.Pages.Projects.Deployments.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentService.Retry">Retry</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, deploymentID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentRetryParams">ProjectDeploymentRetryParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Deployment">Deployment</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/rollback">client.Pages.Projects.Deployments.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentService.Rollback">Rollback</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, deploymentID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentRollbackParams">ProjectDeploymentRollbackParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#Deployment">Deployment</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

#### History

##### Logs

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentHistoryLogGetResponse">ProjectDeploymentHistoryLogGetResponse</a>

Methods:

- <code title="get /accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/history/logs">client.Pages.Projects.Deployments.History.Logs.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentHistoryLogService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, deploymentID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentHistoryLogGetParams">ProjectDeploymentHistoryLogGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDeploymentHistoryLogGetResponse">ProjectDeploymentHistoryLogGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Domains

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainNewResponse">ProjectDomainNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainListResponse">ProjectDomainListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainDeleteResponse">ProjectDomainDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainEditResponse">ProjectDomainEditResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainGetResponse">ProjectDomainGetResponse</a>

Methods:

- <code title="post /accounts/{account_id}/pages/projects/{project_name}/domains">client.Pages.Projects.Domains.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainNewParams">ProjectDomainNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainNewResponse">ProjectDomainNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/pages/projects/{project_name}/domains">client.Pages.Projects.Domains.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainListParams">ProjectDomainListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainListResponse">ProjectDomainListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}">client.Pages.Projects.Domains.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, domainName <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainDeleteParams">ProjectDomainDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainDeleteResponse">ProjectDomainDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}">client.Pages.Projects.Domains.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, domainName <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainEditParams">ProjectDomainEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainEditResponse">ProjectDomainEditResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}">client.Pages.Projects.Domains.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, projectName <a href="https://pkg.go.dev/builtin#string">string</a>, domainName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainGetParams">ProjectDomainGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages">pages</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/pages#ProjectDomainGetResponse">ProjectDomainGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
