Skip to content
Start here

Connections

data cloudflare_page_shield_connections

required Expand Collapse
connection_id: String

Identifier

zone_id: String

Identifier

computed Expand Collapse
added_at: Time
domain_reported_malicious: Bool
first_page_url: String
first_seen_at: Time
host: String
id: String

Identifier

last_seen_at: Time
url: String
url_contains_cdn_cgi_path: Bool
url_reported_malicious: Bool
malicious_domain_categories: List[String]
malicious_url_categories: List[String]
page_urls: List[String]

cloudflare_page_shield_connections

data "cloudflare_page_shield_connections" "example_page_shield_connections" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  connection_id = "023e105f4ecef8ad9ca31a8372d0c353"
}

data cloudflare_page_shield_connections_list

required Expand Collapse
zone_id: String

Identifier

optional Expand Collapse
direction?: String

The direction used to sort returned connections.

exclude_cdn_cgi?: Bool

When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.

exclude_urls?: String

Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.

export?: String

Export the list of connections as a file, limited to 50000 entries.

hosts?: String

Includes connections 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

order_by?: String

The field used to sort returned connections.

page?: String

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 connections 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 connections

page_url?: String

Includes connections 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

per_page?: Float64

The number of results per page.

prioritize_malicious?: Bool

When true, malicious connections appear first in the returned connections.

status?: String

Filters the returned connections using a comma-separated list of connection statuses. Accepted values: active, infrequent, and inactive. The default value is active.

urls?: String

Includes connections whose URL contain one or more URL-encoded URLs separated by commas.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

Identifier

added_at: Time
first_seen_at: Time
host: String
last_seen_at: Time
url: String
url_contains_cdn_cgi_path: Bool
domain_reported_malicious: Bool
first_page_url: String
malicious_domain_categories: List[String]
malicious_url_categories: List[String]
page_urls: List[String]
url_reported_malicious: Bool

cloudflare_page_shield_connections_list

data "cloudflare_page_shield_connections_list" "example_page_shield_connections_list" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  direction = "asc"
  exclude_cdn_cgi = true
  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"
}