Skip to main content

asn_day_report

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

Overview​

Nameasn_day_report
TypeResource
Idcloudflare.botnet_feed.asn_day_report

Fields​

The following fields are returned by SELECT queries:

Get botnet feed report for day

NameDatatypeDescription
cidrstring
datestring (date-time)
offense_countinteger

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, asn_iddateGets all the data the botnet tracking database has for a given ASN registered to user account for given date. If no date is given, it will return results for the previous day.

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.
asn_idinteger
datestring (date-time)

SELECT examples​

Gets all the data the botnet tracking database has for a given ASN registered to user account for given date. If no date is given, it will return results for the previous day.

SELECT
cidr,
date,
offense_count
FROM cloudflare.botnet_feed.asn_day_report
WHERE account_id = '{{ account_id }}' -- required
AND asn_id = '{{ asn_id }}' -- required
AND date = '{{ date }}'
;