detections
Creates, updates, deletes, gets or lists a detections resource.
Overview
| Name | detections |
| Type | Resource |
| Id | cloudflare.email_security.detections |
Fields
The following fields are returned by SELECT queries:
- list
Email message detection details.
| Name | Datatype | Description |
|---|---|---|
action | string | |
attachments | array | |
final_disposition | string | (MALICIOUS, MALICIOUS-BEC, SUSPICIOUS, SPOOF, SPAM, BULK, ENCRYPTED, EXTERNAL, UNKNOWN, NONE) |
findings | array | |
headers | array | |
links | array | |
sender_info | object | |
threat_categories | array | |
validation | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id, investigate_id | Returns 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
investigate_id | string |
SELECT examples
- list
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
;