Skip to main content

routes_pfx2as

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

Overview

Nameroutes_pfx2as
TypeResource
Idcloudflare.radar.routes_pfx2as

Fields

The following fields are returned by SELECT queries:

Successful response.

NameDatatypeDescription
metaobject
prefix_originsarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprefix, origin, rpkiStatus, longestPrefixMatch, formatRetrieves the prefix-to-ASN mapping from global routing tables.

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
formatstringFormat in which results will be returned.
longestPrefixMatchbooleanReturn only results with the longest prefix match for the given prefix. For example, specify a /32 prefix to lookup the origin ASN for an IPv4 address.
originintegerLookup prefixes originated by the given ASN.
prefixstring
rpkiStatusstringReturn only results with matching rpki status: valid, invalid or unknown.

SELECT examples

Retrieves the prefix-to-ASN mapping from global routing tables.

SELECT
meta,
prefix_origins
FROM cloudflare.radar.routes_pfx2as
WHERE prefix = '{{ prefix }}'
AND origin = '{{ origin }}'
AND rpkiStatus = '{{ rpkiStatus }}'
AND longestPrefixMatch = '{{ longestPrefixMatch }}'
AND format = '{{ format }}'
;