1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getCustomPages
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getCustomPages

Explore with Pulumi AI

Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleCustomPages = cloudflare.getCustomPages({
    identifier: "023e105f4ecef8ad9ca31a8372d0c353",
    accountId: "account_id",
    zoneId: "zone_id",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_custom_pages = cloudflare.get_custom_pages(identifier="023e105f4ecef8ad9ca31a8372d0c353",
    account_id="account_id",
    zone_id="zone_id")
Copy
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.LookupCustomPages(ctx, &cloudflare.LookupCustomPagesArgs{
			Identifier: "023e105f4ecef8ad9ca31a8372d0c353",
			AccountId:  pulumi.StringRef("account_id"),
			ZoneId:     pulumi.StringRef("zone_id"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleCustomPages = Cloudflare.GetCustomPages.Invoke(new()
    {
        Identifier = "023e105f4ecef8ad9ca31a8372d0c353",
        AccountId = "account_id",
        ZoneId = "zone_id",
    });

});
Copy
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.GetCustomPagesArgs;
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 exampleCustomPages = CloudflareFunctions.getCustomPages(GetCustomPagesArgs.builder()
            .identifier("023e105f4ecef8ad9ca31a8372d0c353")
            .accountId("account_id")
            .zoneId("zone_id")
            .build());

    }
}
Copy
variables:
  exampleCustomPages:
    fn::invoke:
      function: cloudflare:getCustomPages
      arguments:
        identifier: 023e105f4ecef8ad9ca31a8372d0c353
        accountId: account_id
        zoneId: zone_id
Copy

Using getCustomPages

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 getCustomPages(args: GetCustomPagesArgs, opts?: InvokeOptions): Promise<GetCustomPagesResult>
function getCustomPagesOutput(args: GetCustomPagesOutputArgs, opts?: InvokeOptions): Output<GetCustomPagesResult>
Copy
def get_custom_pages(account_id: Optional[str] = None,
                     identifier: Optional[str] = None,
                     zone_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetCustomPagesResult
def get_custom_pages_output(account_id: Optional[pulumi.Input[str]] = None,
                     identifier: Optional[pulumi.Input[str]] = None,
                     zone_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetCustomPagesResult]
Copy
func LookupCustomPages(ctx *Context, args *LookupCustomPagesArgs, opts ...InvokeOption) (*LookupCustomPagesResult, error)
func LookupCustomPagesOutput(ctx *Context, args *LookupCustomPagesOutputArgs, opts ...InvokeOption) LookupCustomPagesResultOutput
Copy

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

public static class GetCustomPages 
{
    public static Task<GetCustomPagesResult> InvokeAsync(GetCustomPagesArgs args, InvokeOptions? opts = null)
    public static Output<GetCustomPagesResult> Invoke(GetCustomPagesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCustomPagesResult> getCustomPages(GetCustomPagesArgs args, InvokeOptions options)
public static Output<GetCustomPagesResult> getCustomPages(GetCustomPagesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getCustomPages:getCustomPages
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Identifier This property is required. string
Identifier
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Identifier This property is required. string
Identifier
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
identifier This property is required. String
Identifier
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
identifier This property is required. string
Identifier
accountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
identifier This property is required. str
Identifier
account_id str
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zone_id str
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
identifier This property is required. String
Identifier
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

getCustomPages Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Identifier
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Identifier
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
ZoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Identifier
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
id string
The provider-assigned unique ID for this managed resource.
identifier string
Identifier
accountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId string
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
id str
The provider-assigned unique ID for this managed resource.
identifier str
Identifier
account_id str
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zone_id str
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Identifier
accountId String
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi