Skip to main content

subnets

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

Overview

Namesubnets
TypeResource
Idcloudflare.intel.subnets

Fields

The following fields are returned by SELECT queries:

Get ASN Subnets response.

NameDatatypeDescription
asninteger
countnumberTotal results returned based on your search parameters.
ip_count_totalinteger
pagenumberCurrent page within paginated list of results.
per_pagenumberNumber of results per page of results.
subnetsarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectasn, account_idGet ASN Subnets.

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

Get ASN Subnets.

SELECT
asn,
count,
ip_count_total,
page,
per_page,
subnets
FROM cloudflare.intel.subnets
WHERE asn = '{{ asn }}' -- required
AND account_id = '{{ account_id }}' -- required
;