Skip to main content

asn

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

Overview

Nameasn
TypeResource
Idcloudflare.intel.asn

Fields

The following fields are returned by SELECT queries:

Get ASN Overview response.

NameDatatypeDescription
errorsarray
messagesarray
resultinteger
successbooleanWhether the API call was successful. (true)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectasn, account_idGets an overview of the Autonomous System Number (ASN) and a list of subnets for it.

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.
asninteger

SELECT examples

Gets an overview of the Autonomous System Number (ASN) and a list of subnets for it.

SELECT
errors,
messages,
result,
success
FROM cloudflare.intel.asn
WHERE asn = '{{ asn }}' -- required
AND account_id = '{{ account_id }}' -- required
;