Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleCustomPageAssets = cloudflare.getCustomPageAssets({
accountId: "account_id",
zoneId: "zone_id",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_custom_page_assets = cloudflare.get_custom_page_assets(account_id="account_id",
zone_id="zone_id")
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.GetCustomPageAssets(ctx, &cloudflare.LookupCustomPageAssetsArgs{
AccountId: pulumi.StringRef("account_id"),
ZoneId: pulumi.StringRef("zone_id"),
}, 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 exampleCustomPageAssets = Cloudflare.Index.GetCustomPageAssets.Invoke(new()
{
AccountId = "account_id",
ZoneId = "zone_id",
});
});
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.GetCustomPageAssetsArgs;
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 exampleCustomPageAssets = CloudflareFunctions.getCustomPageAssets(GetCustomPageAssetsArgs.builder()
.accountId("account_id")
.zoneId("zone_id")
.build());
}
}
variables:
exampleCustomPageAssets:
fn::invoke:
function: cloudflare:getCustomPageAssets
arguments:
accountId: account_id
zoneId: zone_id
Using getCustomPageAssets
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 getCustomPageAssets(args: GetCustomPageAssetsArgs, opts?: InvokeOptions): Promise<GetCustomPageAssetsResult>
function getCustomPageAssetsOutput(args: GetCustomPageAssetsOutputArgs, opts?: InvokeOptions): Output<GetCustomPageAssetsResult>def get_custom_page_assets(account_id: Optional[str] = None,
max_items: Optional[int] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCustomPageAssetsResult
def get_custom_page_assets_output(account_id: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCustomPageAssetsResult]func LookupCustomPageAssets(ctx *Context, args *LookupCustomPageAssetsArgs, opts ...InvokeOption) (*LookupCustomPageAssetsResult, error)
func LookupCustomPageAssetsOutput(ctx *Context, args *LookupCustomPageAssetsOutputArgs, opts ...InvokeOption) LookupCustomPageAssetsResultOutput> Note: This function is named LookupCustomPageAssets in the Go SDK.
public static class GetCustomPageAssets
{
public static Task<GetCustomPageAssetsResult> InvokeAsync(GetCustomPageAssetsArgs args, InvokeOptions? opts = null)
public static Output<GetCustomPageAssetsResult> Invoke(GetCustomPageAssetsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCustomPageAssetsResult> getCustomPageAssets(GetCustomPageAssetsArgs args, InvokeOptions options)
public static Output<GetCustomPageAssetsResult> getCustomPageAssets(GetCustomPageAssetsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getCustomPageAssets:getCustomPageAssets
arguments:
# arguments dictionaryThe following arguments are supported:
- account_
id str - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- max_
items int - Max items to fetch, default: 1000
- zone_
id str - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
getCustomPageAssets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Custom Page Assets Result> - The items returned by the data source
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Max
Items int - Max items to fetch, default: 1000
- Zone
Id 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.
- Results
[]Get
Custom Page Assets Result - The items returned by the data source
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Max
Items int - Max items to fetch, default: 1000
- Zone
Id 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.
- results
List<Get
Custom Page Assets Result> - The items returned by the data source
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- max
Items Integer - Max items to fetch, default: 1000
- zone
Id 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.
- results
Get
Custom Page Assets Result[] - The items returned by the data source
- account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- max
Items number - Max items to fetch, default: 1000
- zone
Id 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.
- results
Sequence[Get
Custom Page Assets Result] - The items returned by the data source
- account_
id str - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- max_
items int - Max items to fetch, default: 1000
- 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.
- results List<Property Map>
- The items returned by the data source
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- max
Items Number - Max items to fetch, default: 1000
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Supporting Types
GetCustomPageAssetsResult
- Description string
- A short description of the custom asset.
- Id string
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- Last
Updated string - Name string
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- Size
Bytes int - The size of the asset content in bytes.
- Url string
- The URL where the asset content is fetched from.
- Description string
- A short description of the custom asset.
- Id string
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- Last
Updated string - Name string
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- Size
Bytes int - The size of the asset content in bytes.
- Url string
- The URL where the asset content is fetched from.
- description String
- A short description of the custom asset.
- id String
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- last
Updated String - name String
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- size
Bytes Integer - The size of the asset content in bytes.
- url String
- The URL where the asset content is fetched from.
- description string
- A short description of the custom asset.
- id string
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- last
Updated string - name string
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- size
Bytes number - The size of the asset content in bytes.
- url string
- The URL where the asset content is fetched from.
- description str
- A short description of the custom asset.
- id str
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- last_
updated str - name str
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- size_
bytes int - The size of the asset content in bytes.
- url str
- The URL where the asset content is fetched from.
- description String
- A short description of the custom asset.
- id String
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- last
Updated String - name String
- The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).
- size
Bytes Number - The size of the asset content in bytes.
- url String
- The URL where the asset content is fetched from.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
