Skip to main content

mitigations

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

Overview

Namemitigations
TypeResource
Idcloudflare.abuse_reports.mitigations

Fields

The following fields are returned by SELECT queries:

List abuse report mitigations successful

NameDatatypeDescription
idstringID of remediation.
entity_idstring
effective_datestringDate when the mitigation will become active. Time in RFC 3339 format (https://www.rfc-editor.org/rfc/rfc3339.html) (example: 2009-11-10T23:00:00Z)
entity_typestring (url_pattern, account, zone)
statusstringThe status of a mitigation (pending, active, in_review, cancelled, removed)
typestringThe type of mitigation (legal_block, misleading_interstitial, phishing_interstitial, network_block, rate_limit_cache, account_suspend, redirect_video_stream)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, report_idpage, per_page, sort, type, effective_before, effective_after, status, entity_typeList mitigations done to remediate the abuse report.

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.
report_idstringAbuse Report ID
effective_afterstringReturns mitigation that were dispatched after the given date
effective_beforestringReturns mitigations that were dispatched before the given date
entity_typestringFilter by the type of entity the mitigation impacts.
pageintegerWhere in pagination to start listing abuse reports
per_pageintegerHow many abuse reports per page to list
sortstringA property to sort by, followed by the order
statusstringFilter by the status of the mitigation.
typestringFilter by the type of mitigation. This filter parameter can be specified multiple times to include multiple types of mitigations in the result set, e.g. ?type=rate_limit_cache&type=legal_block.

SELECT examples

List mitigations done to remediate the abuse report.

SELECT
id,
entity_id,
effective_date,
entity_type,
status,
type
FROM cloudflare.abuse_reports.mitigations
WHERE account_id = '{{ account_id }}' -- required
AND report_id = '{{ report_id }}' -- required
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
AND sort = '{{ sort }}'
AND type = '{{ type }}'
AND effective_before = '{{ effective_before }}'
AND effective_after = '{{ effective_after }}'
AND status = '{{ status }}'
AND entity_type = '{{ entity_type }}'
;