Provides a resource which manages Cloudflare custom error pages.
resource "cloudflare_custom_pages" "example" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
type = "basic_challenge"
url = "https://example.com/challenge.html"
state = "customized"
}
type
(String) The type of custom page you wish to update. Available values: basic_challenge
, waf_challenge
, waf_block
, ratelimit_block
, country_challenge
, ip_block
, under_attack
, 500_errors
, 1000_errors
, managed_challenge
.url
(String) URL of where the custom page source is located.account_id
(String) The account identifier to target for the resource. Conflicts with zone_id
.state
(String) Managed state of the custom page. Available values: default
, customized
.zone_id
(String) The zone identifier to target for the resource. Conflicts with account_id
.id
(String) The ID of this resource.Import is supported using the following syntax:
$ terraform import cloudflare_custom_pages.example <resource_level>/<resource_id>/<custom_page_type>