Skip to main content

insights

Creates, updates, deletes, gets or lists an insights resource.

Overview

Nameinsights
TypeResource
Idcloudflare.security_center.insights

Fields

The following fields are returned by SELECT queries:

The request was successful.

NameDatatypeDescription
countintegerIndicates the total number of results.
issuesarray
pageintegerSpecifies the current page within paginated list of results.
per_pageintegerSets the number of results per page of results.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_accountselectaccount_iddismissed, issue_class, issue_type, product, severity, subject, issue_class~neq, issue_type~neq, product~neq, severity~neq, subject~neq, page, per_pageLists all Security Center insights for the account or zone, showing security findings and recommendations.
list_by_zoneselectzone_iddismissed, issue_class, issue_type, product, severity, subject, issue_class~neq, issue_type~neq, product~neq, severity~neq, subject~neq, page, per_pageLists all Security Center insights for the account or zone, showing security findings and recommendations.
dismiss_by_accountreplaceaccount_id, issue_idArchives a Security Center insight for an account or zone, removing it from the active insights list while preserving historical data.
dismiss_by_zonereplacezone_id, issue_idArchives a Security Center insight for an account or zone, removing it from the active insights list while preserving historical data.

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.
issue_idstring
zone_idstringThe Cloudflare zone ID.
dismissedboolean
issue_classarray
issue_class~neqarray
issue_typearray
issue_type~neqarray
pageinteger
per_pageinteger
productarray
product~neqarray
severityarray
severity~neqarray
subjectarray
subject~neqarray

SELECT examples

Lists all Security Center insights for the account or zone, showing security findings and recommendations.

SELECT
count,
issues,
page,
per_page
FROM cloudflare.security_center.insights
WHERE account_id = '{{ account_id }}' -- required
AND dismissed = '{{ dismissed }}'
AND issue_class = '{{ issue_class }}'
AND issue_type = '{{ issue_type }}'
AND product = '{{ product }}'
AND severity = '{{ severity }}'
AND subject = '{{ subject }}'
AND issue_class~neq = '{{ issue_class~neq }}'
AND issue_type~neq = '{{ issue_type~neq }}'
AND product~neq = '{{ product~neq }}'
AND severity~neq = '{{ severity~neq }}'
AND subject~neq = '{{ subject~neq }}'
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
;

REPLACE examples

Archives a Security Center insight for an account or zone, removing it from the active insights list while preserving historical data.

REPLACE cloudflare.security_center.insights
SET
dismiss = {{ dismiss }}
WHERE
account_id = '{{ account_id }}' --required
AND issue_id = '{{ issue_id }}' --required
RETURNING
errors,
messages,
success;