Scripts
data cloudflare_page_shield_scripts
cloudflare_page_shield_scripts
data "cloudflare_page_shield_scripts" "example_page_shield_scripts" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
script_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
data cloudflare_page_shield_scripts_list
optional
Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
Includes scripts that match one or more URL-encoded hostnames separated by commas.
Wildcards are supported at the start and end of each hostname to support starts with, ends with and contains. If no wildcards are used, results will be filtered by exact match
The current page number of the paginated results.
We additionally support a special value "all". When "all" is used, the API will return all the scripts with the applied filters in a single page. This feature is best-effort and it may only work for zones with a low number of scripts
Includes scripts that match one or more page URLs (separated by commas) where they were last seen
Wildcards are supported at the start and end of each page URL to support starts with, ends with and contains. If no wildcards are used, results will be filtered by exact match
Filters the returned scripts using a comma-separated list of scripts statuses. Accepted values: active, infrequent, and inactive. The default value is active.
When true, excludes scripts seen in a /cdn-cgi path from the returned scripts. The default value is true.
cloudflare_page_shield_scripts_list
data "cloudflare_page_shield_scripts_list" "example_page_shield_scripts_list" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
direction = "asc"
exclude_urls = "blog.cloudflare.com,www.example"
export = "csv"
hosts = "blog.cloudflare.com,www.example*,*cloudflare.com"
order_by = "first_seen_at"
page = "2"
page_url = "example.com/page,*/checkout,example.com/*,*checkout*"
per_page = 100
prioritize_malicious = true
status = "active,inactive"
urls = "blog.cloudflare.com,www.example"
}