Skip to main content

detections

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

Overview

Namedetections
TypeResource
Idcloudflare.email_security.detections

Fields

The following fields are returned by SELECT queries:

Email message detection details.

NameDatatypeDescription
actionstring
attachmentsarray
final_dispositionstring (MALICIOUS, MALICIOUS-BEC, SUSPICIOUS, SPOOF, SPAM, BULK, ENCRYPTED, EXTERNAL, UNKNOWN, NONE)
findingsarray
headersarray
linksarray
sender_infoobject
threat_categoriesarray
validationobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, investigate_idReturns detection details such as threat categories and sender information for non-benign messages.

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
account_idstringThe Cloudflare account ID.
investigate_idstring

SELECT examples

Returns detection details such as threat categories and sender information for non-benign messages.

SELECT
action,
attachments,
final_disposition,
findings,
headers,
links,
sender_info,
threat_categories,
validation
FROM cloudflare.email_security.detections
WHERE account_id = '{{ account_id }}' -- required
AND investigate_id = '{{ investigate_id }}' -- required
;