1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getPagesDomains
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

cloudflare.getPagesDomains

Start a Neo task
Explain and create a cloudflare.getPagesDomains resource
cloudflare logo
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const examplePagesDomains = cloudflare.getPagesDomains({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        projectName: "this-is-my-project-01",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_pages_domains = cloudflare.get_pages_domains(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        project_name="this-is-my-project-01")
    
    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.LookupPagesDomains(ctx, &cloudflare.LookupPagesDomainsArgs{
    			AccountId:   "023e105f4ecef8ad9ca31a8372d0c353",
    			ProjectName: "this-is-my-project-01",
    		}, 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 examplePagesDomains = Cloudflare.GetPagesDomains.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            ProjectName = "this-is-my-project-01",
        });
    
    });
    
    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.GetPagesDomainsArgs;
    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 examplePagesDomains = CloudflareFunctions.getPagesDomains(GetPagesDomainsArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .projectName("this-is-my-project-01")
                .build());
    
        }
    }
    
    variables:
      examplePagesDomains:
        fn::invoke:
          function: cloudflare:getPagesDomains
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            projectName: this-is-my-project-01
    

    Using getPagesDomains

    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 getPagesDomains(args: GetPagesDomainsArgs, opts?: InvokeOptions): Promise<GetPagesDomainsResult>
    function getPagesDomainsOutput(args: GetPagesDomainsOutputArgs, opts?: InvokeOptions): Output<GetPagesDomainsResult>
    def get_pages_domains(account_id: Optional[str] = None,
                          max_items: Optional[int] = None,
                          project_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetPagesDomainsResult
    def get_pages_domains_output(account_id: Optional[pulumi.Input[str]] = None,
                          max_items: Optional[pulumi.Input[int]] = None,
                          project_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetPagesDomainsResult]
    func LookupPagesDomains(ctx *Context, args *LookupPagesDomainsArgs, opts ...InvokeOption) (*LookupPagesDomainsResult, error)
    func LookupPagesDomainsOutput(ctx *Context, args *LookupPagesDomainsOutputArgs, opts ...InvokeOption) LookupPagesDomainsResultOutput

    > Note: This function is named LookupPagesDomains in the Go SDK.

    public static class GetPagesDomains 
    {
        public static Task<GetPagesDomainsResult> InvokeAsync(GetPagesDomainsArgs args, InvokeOptions? opts = null)
        public static Output<GetPagesDomainsResult> Invoke(GetPagesDomainsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPagesDomainsResult> getPagesDomains(GetPagesDomainsArgs args, InvokeOptions options)
    public static Output<GetPagesDomainsResult> getPagesDomains(GetPagesDomainsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getPagesDomains:getPagesDomains
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier
    ProjectName string
    Name of the project.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier
    ProjectName string
    Name of the project.
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Identifier
    projectName String
    Name of the project.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier
    projectName string
    Name of the project.
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier
    project_name str
    Name of the project.
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier
    projectName String
    Name of the project.
    maxItems Number
    Max items to fetch, default: 1000

    getPagesDomains Result

    The following output properties are available:

    AccountId string
    Identifier
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectName string
    Name of the project.
    Results List<GetPagesDomainsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectName string
    Name of the project.
    Results []GetPagesDomainsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Identifier
    id String
    The provider-assigned unique ID for this managed resource.
    projectName String
    Name of the project.
    results List<GetPagesDomainsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier
    id string
    The provider-assigned unique ID for this managed resource.
    projectName string
    Name of the project.
    results GetPagesDomainsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier
    id str
    The provider-assigned unique ID for this managed resource.
    project_name str
    Name of the project.
    results Sequence[GetPagesDomainsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier
    id String
    The provider-assigned unique ID for this managed resource.
    projectName String
    Name of the project.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetPagesDomainsResult

    CertificateAuthority string
    Available values: "google", <span pulumi-lang-nodejs=""letsEncrypt"" pulumi-lang-dotnet=""LetsEncrypt"" pulumi-lang-go=""letsEncrypt"" pulumi-lang-python=""lets_encrypt"" pulumi-lang-yaml=""letsEncrypt"" pulumi-lang-java=""letsEncrypt"">"lets_encrypt".
    CreatedOn string
    DomainId string
    Id string
    Name string
    Status string
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    ValidationData GetPagesDomainsResultValidationData
    VerificationData GetPagesDomainsResultVerificationData
    ZoneTag string
    CertificateAuthority string
    Available values: "google", <span pulumi-lang-nodejs=""letsEncrypt"" pulumi-lang-dotnet=""LetsEncrypt"" pulumi-lang-go=""letsEncrypt"" pulumi-lang-python=""lets_encrypt"" pulumi-lang-yaml=""letsEncrypt"" pulumi-lang-java=""letsEncrypt"">"lets_encrypt".
    CreatedOn string
    DomainId string
    Id string
    Name string
    Status string
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    ValidationData GetPagesDomainsResultValidationData
    VerificationData GetPagesDomainsResultVerificationData
    ZoneTag string
    certificateAuthority String
    Available values: "google", <span pulumi-lang-nodejs=""letsEncrypt"" pulumi-lang-dotnet=""LetsEncrypt"" pulumi-lang-go=""letsEncrypt"" pulumi-lang-python=""lets_encrypt"" pulumi-lang-yaml=""letsEncrypt"" pulumi-lang-java=""letsEncrypt"">"lets_encrypt".
    createdOn String
    domainId String
    id String
    name String
    status String
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    validationData GetPagesDomainsResultValidationData
    verificationData GetPagesDomainsResultVerificationData
    zoneTag String
    certificateAuthority string
    Available values: "google", <span pulumi-lang-nodejs=""letsEncrypt"" pulumi-lang-dotnet=""LetsEncrypt"" pulumi-lang-go=""letsEncrypt"" pulumi-lang-python=""lets_encrypt"" pulumi-lang-yaml=""letsEncrypt"" pulumi-lang-java=""letsEncrypt"">"lets_encrypt".
    createdOn string
    domainId string
    id string
    name string
    status string
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    validationData GetPagesDomainsResultValidationData
    verificationData GetPagesDomainsResultVerificationData
    zoneTag string
    certificate_authority str
    Available values: "google", <span pulumi-lang-nodejs=""letsEncrypt"" pulumi-lang-dotnet=""LetsEncrypt"" pulumi-lang-go=""letsEncrypt"" pulumi-lang-python=""lets_encrypt"" pulumi-lang-yaml=""letsEncrypt"" pulumi-lang-java=""letsEncrypt"">"lets_encrypt".
    created_on str
    domain_id str
    id str
    name str
    status str
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    validation_data GetPagesDomainsResultValidationData
    verification_data GetPagesDomainsResultVerificationData
    zone_tag str
    certificateAuthority String
    Available values: "google", <span pulumi-lang-nodejs=""letsEncrypt"" pulumi-lang-dotnet=""LetsEncrypt"" pulumi-lang-go=""letsEncrypt"" pulumi-lang-python=""lets_encrypt"" pulumi-lang-yaml=""letsEncrypt"" pulumi-lang-java=""letsEncrypt"">"lets_encrypt".
    createdOn String
    domainId String
    id String
    name String
    status String
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    validationData Property Map
    verificationData Property Map
    zoneTag String

    GetPagesDomainsResultValidationData

    ErrorMessage string
    Method string
    Available values: "http", "txt".
    Status string
    Available values: "initializing", "pending", "active", "deactivated", "error".
    TxtName string
    TxtValue string
    ErrorMessage string
    Method string
    Available values: "http", "txt".
    Status string
    Available values: "initializing", "pending", "active", "deactivated", "error".
    TxtName string
    TxtValue string
    errorMessage String
    method String
    Available values: "http", "txt".
    status String
    Available values: "initializing", "pending", "active", "deactivated", "error".
    txtName String
    txtValue String
    errorMessage string
    method string
    Available values: "http", "txt".
    status string
    Available values: "initializing", "pending", "active", "deactivated", "error".
    txtName string
    txtValue string
    error_message str
    method str
    Available values: "http", "txt".
    status str
    Available values: "initializing", "pending", "active", "deactivated", "error".
    txt_name str
    txt_value str
    errorMessage String
    method String
    Available values: "http", "txt".
    status String
    Available values: "initializing", "pending", "active", "deactivated", "error".
    txtName String
    txtValue String

    GetPagesDomainsResultVerificationData

    ErrorMessage string
    Status string
    Available values: "pending", "active", "deactivated", "blocked", "error".
    ErrorMessage string
    Status string
    Available values: "pending", "active", "deactivated", "blocked", "error".
    errorMessage String
    status String
    Available values: "pending", "active", "deactivated", "blocked", "error".
    errorMessage string
    status string
    Available values: "pending", "active", "deactivated", "blocked", "error".
    error_message str
    status str
    Available values: "pending", "active", "deactivated", "blocked", "error".
    errorMessage String
    status String
    Available values: "pending", "active", "deactivated", "blocked", "error".

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate