Skip to main content

asn

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

Overview

Nameasn
TypeResource
Idcloudflare.botnet_feed.asn

Fields

The following fields are returned by SELECT queries:

Get list of ASNs response

NameDatatypeDescription
asninteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idGets a list of all ASNs registered for a user for the DDoS Botnet Feed API.
deletedeleteaccount_id, asn_idDelete an ASN from botnet threat feed for a given user.

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

SELECT examples

Gets a list of all ASNs registered for a user for the DDoS Botnet Feed API.

SELECT
asn
FROM cloudflare.botnet_feed.asn
WHERE account_id = '{{ account_id }}' -- required
;

DELETE examples

Delete an ASN from botnet threat feed for a given user.

DELETE FROM cloudflare.botnet_feed.asn
WHERE account_id = '{{ account_id }}' --required
AND asn_id = '{{ asn_id }}' --required
;