Get ASN Subnets
GET/accounts/{account_id}/intel/asn/{asn}/subnets
Get ASN Subnets.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Get ASN Subnets
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/intel/asn/$ASN/subnets \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"asn": 0,
"count": 1,
"ip_count_total": 0,
"page": 1,
"per_page": 20,
"subnets": [
"192.0.2.0/24",
"2001:DB8::/32"
]
}Returns Examples
{
"asn": 0,
"count": 1,
"ip_count_total": 0,
"page": 1,
"per_page": 20,
"subnets": [
"192.0.2.0/24",
"2001:DB8::/32"
]
}