routes_pfx2as
Creates, updates, deletes, gets or lists a routes_pfx2as resource.
Overview
| Name | routes_pfx2as |
| Type | Resource |
| Id | cloudflare.radar.routes_pfx2as |
Fields
The following fields are returned by SELECT queries:
- list
Successful response.
| Name | Datatype | Description |
|---|---|---|
meta | object | |
prefix_origins | array |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | prefix, origin, rpkiStatus, longestPrefixMatch, format | Retrieves 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.
| Name | Datatype | Description |
|---|---|---|
format | string | Format in which results will be returned. |
longestPrefixMatch | boolean | Return 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. |
origin | integer | Lookup prefixes originated by the given ASN. |
prefix | string | |
rpkiStatus | string | Return only results with matching rpki status: valid, invalid or unknown. |
SELECT examples
- list
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 }}'
;