asn
Creates, updates, deletes, gets or lists an asn resource.
Overview
| Name | asn |
| Type | Resource |
| Id | cloudflare.botnet_feed.asn |
Fields
The following fields are returned by SELECT queries:
- list
Get list of ASNs response
| Name | Datatype | Description |
|---|---|---|
asn | integer |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Gets a list of all ASNs registered for a user for the DDoS Botnet Feed API. | |
delete | delete | account_id, asn_id | Delete 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
asn_id | integer |
SELECT examples
- list
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
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
;