Skip to main content

connections

Creates, updates, deletes, gets or lists a connections resource.

Overview

Nameconnections
TypeResource
Idcloudflare.page_shield.connections

Fields

The following fields are returned by SELECT queries:

Get a Page Shield connection response

NameDatatypeDescription
idstringIdentifier (example: 023e105f4ecef8ad9ca31a8372d0c353)
added_atstring (date-time) (example: 2021-08-18T10:51:10.09615Z)
domain_reported_maliciousboolean
first_page_urlstring (example: blog.cloudflare.com/page)
first_seen_atstring (date-time) (example: 2021-08-18T10:51:08Z)
hoststring (example: blog.cloudflare.com)
last_seen_atstring (date-time) (example: 2021-09-02T09:57:54Z)
malicious_domain_categoriesarray
malicious_url_categoriesarray
page_urlsarray
urlstring (example: https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.min.js)
url_contains_cdn_cgi_pathboolean
url_reported_maliciousboolean

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectzone_id, connection_idFetches a connection detected by Page Shield by connection ID.
listselectzone_idexclude_urls, urls, hosts, page, per_page, order_by, direction, prioritize_malicious, exclude_cdn_cgi, status, page_url, exportLists all connections detected by Page Shield.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
connection_idstring
zone_idstringThe Cloudflare zone ID.
directionstring
exclude_cdn_cgiboolean
exclude_urlsstring
exportstring
hostsstring
order_bystring
pagestring
page_urlstring
per_pagenumber
prioritize_maliciousboolean
statusstring
urlsstring

SELECT examples

Fetches a connection detected by Page Shield by connection ID.

SELECT
id,
added_at,
domain_reported_malicious,
first_page_url,
first_seen_at,
host,
last_seen_at,
malicious_domain_categories,
malicious_url_categories,
page_urls,
url,
url_contains_cdn_cgi_path,
url_reported_malicious
FROM cloudflare.page_shield.connections
WHERE zone_id = '{{ zone_id }}' -- required
AND connection_id = '{{ connection_id }}' -- required
;