Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getPagesProjects
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const examplePagesProjects = cloudflare.getPagesProjects({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_pages_projects = cloudflare.get_pages_projects(account_id="023e105f4ecef8ad9ca31a8372d0c353")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.LookupPagesProjects(ctx, &cloudflare.LookupPagesProjectsArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var examplePagesProjects = Cloudflare.GetPagesProjects.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetPagesProjectsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var examplePagesProjects = CloudflareFunctions.getPagesProjects(GetPagesProjectsArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
examplePagesProjects:
fn::invoke:
function: cloudflare:getPagesProjects
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
Using getPagesProjects
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPagesProjects(args: GetPagesProjectsArgs, opts?: InvokeOptions): Promise<GetPagesProjectsResult>
function getPagesProjectsOutput(args: GetPagesProjectsOutputArgs, opts?: InvokeOptions): Output<GetPagesProjectsResult>
def get_pages_projects(account_id: Optional[str] = None,
max_items: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetPagesProjectsResult
def get_pages_projects_output(account_id: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPagesProjectsResult]
func LookupPagesProjects(ctx *Context, args *LookupPagesProjectsArgs, opts ...InvokeOption) (*LookupPagesProjectsResult, error)
func LookupPagesProjectsOutput(ctx *Context, args *LookupPagesProjectsOutputArgs, opts ...InvokeOption) LookupPagesProjectsResultOutput
> Note: This function is named LookupPagesProjects
in the Go SDK.
public static class GetPagesProjects
{
public static Task<GetPagesProjectsResult> InvokeAsync(GetPagesProjectsArgs args, InvokeOptions? opts = null)
public static Output<GetPagesProjectsResult> Invoke(GetPagesProjectsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPagesProjectsResult> getPagesProjects(GetPagesProjectsArgs args, InvokeOptions options)
public static Output<GetPagesProjectsResult> getPagesProjects(GetPagesProjectsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getPagesProjects:getPagesProjects
arguments:
# arguments dictionary
The following arguments are supported:
- account_
id str - Identifier
- max_
items int - Max items to fetch, default: 1000
getPagesProjects Result
The following output properties are available:
- Account
Id string - Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Pages Projects Result> - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- Account
Id string - Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Pages Projects Result - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- account
Id String - Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Pages Projects Result> - The items returned by the data source
- max
Items Integer - Max items to fetch, default: 1000
- account
Id string - Identifier
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Pages Projects Result[] - The items returned by the data source
- max
Items number - Max items to fetch, default: 1000
- account_
id str - Identifier
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Pages Projects Result] - The items returned by the data source
- max_
items int - Max items to fetch, default: 1000
- account
Id String - Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetPagesProjectsResult
- Aliases List<string>
- A list of alias URLs pointing to this deployment.
- Build
Config GetPages Projects Result Build Config - Configs for the project build process.
- Created
On string - When the deployment was created.
- Deployment
Trigger GetPages Projects Result Deployment Trigger - Info about what caused the deployment.
- Env
Vars Dictionary<string, GetPages Projects Result Env Vars> - Environment variables used for builds and Pages Functions.
- Environment string
- Type of deploy. Available values: "preview", "production".
- Id string
- Id of the deployment.
- Is
Skipped bool - If the deployment has been skipped.
- Latest
Stage GetPages Projects Result Latest Stage - The status of the deployment.
- Modified
On string - When the deployment was last modified.
- Project
Id string - Id of the project.
- Project
Name string - Name of the project.
- Short
Id string - Short Id (8 character) of the deployment.
- Source
Get
Pages Projects Result Source - Stages
List<Get
Pages Projects Result Stage> - List of past stages.
- Url string
- The live URL to view this deployment.
- Aliases []string
- A list of alias URLs pointing to this deployment.
- Build
Config GetPages Projects Result Build Config - Configs for the project build process.
- Created
On string - When the deployment was created.
- Deployment
Trigger GetPages Projects Result Deployment Trigger - Info about what caused the deployment.
- Env
Vars map[string]GetPages Projects Result Env Vars - Environment variables used for builds and Pages Functions.
- Environment string
- Type of deploy. Available values: "preview", "production".
- Id string
- Id of the deployment.
- Is
Skipped bool - If the deployment has been skipped.
- Latest
Stage GetPages Projects Result Latest Stage - The status of the deployment.
- Modified
On string - When the deployment was last modified.
- Project
Id string - Id of the project.
- Project
Name string - Name of the project.
- Short
Id string - Short Id (8 character) of the deployment.
- Source
Get
Pages Projects Result Source - Stages
[]Get
Pages Projects Result Stage - List of past stages.
- Url string
- The live URL to view this deployment.
- aliases List<String>
- A list of alias URLs pointing to this deployment.
- build
Config GetPages Projects Result Build Config - Configs for the project build process.
- created
On String - When the deployment was created.
- deployment
Trigger GetPages Projects Result Deployment Trigger - Info about what caused the deployment.
- env
Vars Map<String,GetPages Projects Result Env Vars> - Environment variables used for builds and Pages Functions.
- environment String
- Type of deploy. Available values: "preview", "production".
- id String
- Id of the deployment.
- is
Skipped Boolean - If the deployment has been skipped.
- latest
Stage GetPages Projects Result Latest Stage - The status of the deployment.
- modified
On String - When the deployment was last modified.
- project
Id String - Id of the project.
- project
Name String - Name of the project.
- short
Id String - Short Id (8 character) of the deployment.
- source
Get
Pages Projects Result Source - stages
List<Get
Pages Projects Result Stage> - List of past stages.
- url String
- The live URL to view this deployment.
- aliases string[]
- A list of alias URLs pointing to this deployment.
- build
Config GetPages Projects Result Build Config - Configs for the project build process.
- created
On string - When the deployment was created.
- deployment
Trigger GetPages Projects Result Deployment Trigger - Info about what caused the deployment.
- env
Vars {[key: string]: GetPages Projects Result Env Vars} - Environment variables used for builds and Pages Functions.
- environment string
- Type of deploy. Available values: "preview", "production".
- id string
- Id of the deployment.
- is
Skipped boolean - If the deployment has been skipped.
- latest
Stage GetPages Projects Result Latest Stage - The status of the deployment.
- modified
On string - When the deployment was last modified.
- project
Id string - Id of the project.
- project
Name string - Name of the project.
- short
Id string - Short Id (8 character) of the deployment.
- source
Get
Pages Projects Result Source - stages
Get
Pages Projects Result Stage[] - List of past stages.
- url string
- The live URL to view this deployment.
- aliases Sequence[str]
- A list of alias URLs pointing to this deployment.
- build_
config GetPages Projects Result Build Config - Configs for the project build process.
- created_
on str - When the deployment was created.
- deployment_
trigger GetPages Projects Result Deployment Trigger - Info about what caused the deployment.
- env_
vars Mapping[str, GetPages Projects Result Env Vars] - Environment variables used for builds and Pages Functions.
- environment str
- Type of deploy. Available values: "preview", "production".
- id str
- Id of the deployment.
- is_
skipped bool - If the deployment has been skipped.
- latest_
stage GetPages Projects Result Latest Stage - The status of the deployment.
- modified_
on str - When the deployment was last modified.
- project_
id str - Id of the project.
- project_
name str - Name of the project.
- short_
id str - Short Id (8 character) of the deployment.
- source
Get
Pages Projects Result Source - stages
Sequence[Get
Pages Projects Result Stage] - List of past stages.
- url str
- The live URL to view this deployment.
- aliases List<String>
- A list of alias URLs pointing to this deployment.
- build
Config Property Map - Configs for the project build process.
- created
On String - When the deployment was created.
- deployment
Trigger Property Map - Info about what caused the deployment.
- env
Vars Map<Property Map> - Environment variables used for builds and Pages Functions.
- environment String
- Type of deploy. Available values: "preview", "production".
- id String
- Id of the deployment.
- is
Skipped Boolean - If the deployment has been skipped.
- latest
Stage Property Map - The status of the deployment.
- modified
On String - When the deployment was last modified.
- project
Id String - Id of the project.
- project
Name String - Name of the project.
- short
Id String - Short Id (8 character) of the deployment.
- source Property Map
- stages List<Property Map>
- List of past stages.
- url String
- The live URL to view this deployment.
GetPagesProjectsResultBuildConfig
- Build
Caching bool - Enable build caching for the project.
- Build
Command string - Command used to build project.
- Destination
Dir string - Output directory of the build.
- Root
Dir string - Directory to run the command.
- Web
Analytics stringTag - The classifying tag for analytics.
- Web
Analytics stringToken - The auth token for analytics.
- Build
Caching bool - Enable build caching for the project.
- Build
Command string - Command used to build project.
- Destination
Dir string - Output directory of the build.
- Root
Dir string - Directory to run the command.
- Web
Analytics stringTag - The classifying tag for analytics.
- Web
Analytics stringToken - The auth token for analytics.
- build
Caching Boolean - Enable build caching for the project.
- build
Command String - Command used to build project.
- destination
Dir String - Output directory of the build.
- root
Dir String - Directory to run the command.
- web
Analytics StringTag - The classifying tag for analytics.
- web
Analytics StringToken - The auth token for analytics.
- build
Caching boolean - Enable build caching for the project.
- build
Command string - Command used to build project.
- destination
Dir string - Output directory of the build.
- root
Dir string - Directory to run the command.
- web
Analytics stringTag - The classifying tag for analytics.
- web
Analytics stringToken - The auth token for analytics.
- build_
caching bool - Enable build caching for the project.
- build_
command str - Command used to build project.
- destination_
dir str - Output directory of the build.
- root_
dir str - Directory to run the command.
- web_
analytics_ strtag - The classifying tag for analytics.
- web_
analytics_ strtoken - The auth token for analytics.
- build
Caching Boolean - Enable build caching for the project.
- build
Command String - Command used to build project.
- destination
Dir String - Output directory of the build.
- root
Dir String - Directory to run the command.
- web
Analytics StringTag - The classifying tag for analytics.
- web
Analytics StringToken - The auth token for analytics.
GetPagesProjectsResultDeploymentTrigger
- Metadata
Get
Pages Projects Result Deployment Trigger Metadata - Additional info about the trigger.
- Type string
- What caused the deployment. Available values: "push", "ad_hoc".
- Metadata
Get
Pages Projects Result Deployment Trigger Metadata - Additional info about the trigger.
- Type string
- What caused the deployment. Available values: "push", "ad_hoc".
- metadata
Get
Pages Projects Result Deployment Trigger Metadata - Additional info about the trigger.
- type String
- What caused the deployment. Available values: "push", "ad_hoc".
- metadata
Get
Pages Projects Result Deployment Trigger Metadata - Additional info about the trigger.
- type string
- What caused the deployment. Available values: "push", "ad_hoc".
- metadata
Get
Pages Projects Result Deployment Trigger Metadata - Additional info about the trigger.
- type str
- What caused the deployment. Available values: "push", "ad_hoc".
- metadata Property Map
- Additional info about the trigger.
- type String
- What caused the deployment. Available values: "push", "ad_hoc".
GetPagesProjectsResultDeploymentTriggerMetadata
- Branch string
- Where the trigger happened.
- Commit
Hash string - Hash of the deployment trigger commit.
- Commit
Message string - Message of the deployment trigger commit.
- Branch string
- Where the trigger happened.
- Commit
Hash string - Hash of the deployment trigger commit.
- Commit
Message string - Message of the deployment trigger commit.
- branch String
- Where the trigger happened.
- commit
Hash String - Hash of the deployment trigger commit.
- commit
Message String - Message of the deployment trigger commit.
- branch string
- Where the trigger happened.
- commit
Hash string - Hash of the deployment trigger commit.
- commit
Message string - Message of the deployment trigger commit.
- branch str
- Where the trigger happened.
- commit_
hash str - Hash of the deployment trigger commit.
- commit_
message str - Message of the deployment trigger commit.
- branch String
- Where the trigger happened.
- commit
Hash String - Hash of the deployment trigger commit.
- commit
Message String - Message of the deployment trigger commit.
GetPagesProjectsResultEnvVars
GetPagesProjectsResultLatestStage
- ended_
on str - When the stage ended.
- name str
- The current build stage. Available values: "queued", "initialize", "clone_repo", "build", "deploy".
- started_
on str - When the stage started.
- status str
- State of the current stage. Available values: "success", "idle", "active", "failure", "canceled".
GetPagesProjectsResultSource
- config Property Map
- type String
GetPagesProjectsResultSourceConfig
- Deployments
Enabled bool - Owner string
- Path
Excludes List<string> - Path
Includes List<string> - Pr
Comments boolEnabled - Preview
Branch List<string>Excludes - Preview
Branch List<string>Includes - Preview
Deployment stringSetting - Available values: "all", "none", "custom".
- Production
Branch string - Production
Deployments boolEnabled - Repo
Name string
- Deployments
Enabled bool - Owner string
- Path
Excludes []string - Path
Includes []string - Pr
Comments boolEnabled - Preview
Branch []stringExcludes - Preview
Branch []stringIncludes - Preview
Deployment stringSetting - Available values: "all", "none", "custom".
- Production
Branch string - Production
Deployments boolEnabled - Repo
Name string
- deployments
Enabled Boolean - owner String
- path
Excludes List<String> - path
Includes List<String> - pr
Comments BooleanEnabled - preview
Branch List<String>Excludes - preview
Branch List<String>Includes - preview
Deployment StringSetting - Available values: "all", "none", "custom".
- production
Branch String - production
Deployments BooleanEnabled - repo
Name String
- deployments
Enabled boolean - owner string
- path
Excludes string[] - path
Includes string[] - pr
Comments booleanEnabled - preview
Branch string[]Excludes - preview
Branch string[]Includes - preview
Deployment stringSetting - Available values: "all", "none", "custom".
- production
Branch string - production
Deployments booleanEnabled - repo
Name string
- deployments_
enabled bool - owner str
- path_
excludes Sequence[str] - path_
includes Sequence[str] - pr_
comments_ boolenabled - preview_
branch_ Sequence[str]excludes - preview_
branch_ Sequence[str]includes - preview_
deployment_ strsetting - Available values: "all", "none", "custom".
- production_
branch str - production_
deployments_ boolenabled - repo_
name str
- deployments
Enabled Boolean - owner String
- path
Excludes List<String> - path
Includes List<String> - pr
Comments BooleanEnabled - preview
Branch List<String>Excludes - preview
Branch List<String>Includes - preview
Deployment StringSetting - Available values: "all", "none", "custom".
- production
Branch String - production
Deployments BooleanEnabled - repo
Name String
GetPagesProjectsResultStage
- ended_
on str - When the stage ended.
- name str
- The current build stage. Available values: "queued", "initialize", "clone_repo", "build", "deploy".
- started_
on str - When the stage started.
- status str
- State of the current stage. Available values: "success", "idle", "active", "failure", "canceled".
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.