1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getPagesDomain
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getPagesDomain

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const examplePagesDomain = cloudflare.getPagesDomain({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        projectName: "this-is-my-project-01",
        domainName: "this-is-my-domain-01.com",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_pages_domain = cloudflare.get_pages_domain(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        project_name="this-is-my-project-01",
        domain_name="this-is-my-domain-01.com")
    
    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.LookupPagesDomain(ctx, &cloudflare.LookupPagesDomainArgs{
    			AccountId:   "023e105f4ecef8ad9ca31a8372d0c353",
    			ProjectName: "this-is-my-project-01",
    			DomainName:  pulumi.StringRef("this-is-my-domain-01.com"),
    		}, 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 examplePagesDomain = Cloudflare.GetPagesDomain.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            ProjectName = "this-is-my-project-01",
            DomainName = "this-is-my-domain-01.com",
        });
    
    });
    
    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.GetPagesDomainArgs;
    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 examplePagesDomain = CloudflareFunctions.getPagesDomain(GetPagesDomainArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .projectName("this-is-my-project-01")
                .domainName("this-is-my-domain-01.com")
                .build());
    
        }
    }
    
    variables:
      examplePagesDomain:
        fn::invoke:
          function: cloudflare:getPagesDomain
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            projectName: this-is-my-project-01
            domainName: this-is-my-domain-01.com
    

    Using getPagesDomain

    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 getPagesDomain(args: GetPagesDomainArgs, opts?: InvokeOptions): Promise<GetPagesDomainResult>
    function getPagesDomainOutput(args: GetPagesDomainOutputArgs, opts?: InvokeOptions): Output<GetPagesDomainResult>
    def get_pages_domain(account_id: Optional[str] = None,
                         domain_name: Optional[str] = None,
                         project_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetPagesDomainResult
    def get_pages_domain_output(account_id: Optional[pulumi.Input[str]] = None,
                         domain_name: Optional[pulumi.Input[str]] = None,
                         project_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetPagesDomainResult]
    func LookupPagesDomain(ctx *Context, args *LookupPagesDomainArgs, opts ...InvokeOption) (*LookupPagesDomainResult, error)
    func LookupPagesDomainOutput(ctx *Context, args *LookupPagesDomainOutputArgs, opts ...InvokeOption) LookupPagesDomainResultOutput

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

    public static class GetPagesDomain 
    {
        public static Task<GetPagesDomainResult> InvokeAsync(GetPagesDomainArgs args, InvokeOptions? opts = null)
        public static Output<GetPagesDomainResult> Invoke(GetPagesDomainInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPagesDomainResult> getPagesDomain(GetPagesDomainArgs args, InvokeOptions options)
    public static Output<GetPagesDomainResult> getPagesDomain(GetPagesDomainArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getPagesDomain:getPagesDomain
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier
    ProjectName string
    Name of the project.
    DomainName string
    Name of the domain.
    AccountId string
    Identifier
    ProjectName string
    Name of the project.
    DomainName string
    Name of the domain.
    accountId String
    Identifier
    projectName String
    Name of the project.
    domainName String
    Name of the domain.
    accountId string
    Identifier
    projectName string
    Name of the project.
    domainName string
    Name of the domain.
    account_id str
    Identifier
    project_name str
    Name of the project.
    domain_name str
    Name of the domain.
    accountId String
    Identifier
    projectName String
    Name of the project.
    domainName String
    Name of the domain.

    getPagesDomain Result

    The following output properties are available:

    AccountId string
    Identifier
    CertificateAuthority string
    Available values: "google", "lets_encrypt".
    CreatedOn string
    DomainId string
    Id string
    Name of the domain.
    Name string
    ProjectName string
    Name of the project.
    Status string
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    ValidationData GetPagesDomainValidationData
    VerificationData GetPagesDomainVerificationData
    ZoneTag string
    DomainName string
    Name of the domain.
    AccountId string
    Identifier
    CertificateAuthority string
    Available values: "google", "lets_encrypt".
    CreatedOn string
    DomainId string
    Id string
    Name of the domain.
    Name string
    ProjectName string
    Name of the project.
    Status string
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    ValidationData GetPagesDomainValidationData
    VerificationData GetPagesDomainVerificationData
    ZoneTag string
    DomainName string
    Name of the domain.
    accountId String
    Identifier
    certificateAuthority String
    Available values: "google", "lets_encrypt".
    createdOn String
    domainId String
    id String
    Name of the domain.
    name String
    projectName String
    Name of the project.
    status String
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    validationData GetPagesDomainValidationData
    verificationData GetPagesDomainVerificationData
    zoneTag String
    domainName String
    Name of the domain.
    accountId string
    Identifier
    certificateAuthority string
    Available values: "google", "lets_encrypt".
    createdOn string
    domainId string
    id string
    Name of the domain.
    name string
    projectName string
    Name of the project.
    status string
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    validationData GetPagesDomainValidationData
    verificationData GetPagesDomainVerificationData
    zoneTag string
    domainName string
    Name of the domain.
    account_id str
    Identifier
    certificate_authority str
    Available values: "google", "lets_encrypt".
    created_on str
    domain_id str
    id str
    Name of the domain.
    name str
    project_name str
    Name of the project.
    status str
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    validation_data GetPagesDomainValidationData
    verification_data GetPagesDomainVerificationData
    zone_tag str
    domain_name str
    Name of the domain.
    accountId String
    Identifier
    certificateAuthority String
    Available values: "google", "lets_encrypt".
    createdOn String
    domainId String
    id String
    Name of the domain.
    name String
    projectName String
    Name of the project.
    status String
    Available values: "initializing", "pending", "active", "deactivated", "blocked", "error".
    validationData Property Map
    verificationData Property Map
    zoneTag String
    domainName String
    Name of the domain.

    Supporting Types

    GetPagesDomainValidationData

    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

    GetPagesDomainVerificationData

    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.1.2 published on Monday, Apr 28, 2025 by Pulumi