Skip to content
Start here

Custom Pages

resource cloudflare_custom_pages

required Expand Collapse
identifier: String

Error Page Types

state: String

The custom page state.

url: String

The URL associated with the custom page.

optional Expand Collapse
account_id?: String

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id?: String

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

computed Expand Collapse
id: String

Error Page Types

created_on: Time
description: String
modified_on: Time
preview_target: String
required_tokens: List[String]

cloudflare_custom_pages

resource "cloudflare_custom_pages" "example_custom_pages" {
  identifier = "ratelimit_block"
  state = "default"
  url = "http://www.example.com"
  zone_id = "zone_id"
}

data cloudflare_custom_pages

required Expand Collapse
identifier: String

Error Page Types

optional Expand Collapse
account_id?: String

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id?: String

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

computed Expand Collapse
id: String

Error Page Types

created_on: Time
description: String
modified_on: Time
preview_target: String
state: String

The custom page state.

url: String

The URL associated with the custom page.

required_tokens: List[String]

cloudflare_custom_pages

data "cloudflare_custom_pages" "example_custom_pages" {
  identifier = "ratelimit_block"
  account_id = "account_id"
  zone_id = "zone_id"
}

data cloudflare_custom_pages_list

optional Expand Collapse
account_id?: String

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id?: String

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String
created_on: Time
description: String
modified_on: Time
preview_target: String
required_tokens: List[String]
state: String

The custom page state.

url: String

The URL associated with the custom page.

cloudflare_custom_pages_list

data "cloudflare_custom_pages_list" "example_custom_pages_list" {
  account_id = "account_id"
  zone_id = "zone_id"
}