asns_rel
Creates, updates, deletes, gets or lists an asns_rel resource.
Overview
| Name | asns_rel |
| Type | Resource |
| Id | cloudflare.radar.asns_rel |
Fields
The following fields are returned by SELECT queries:
- list
Successful response.
| Name | Datatype | Description |
|---|---|---|
meta | object | |
rels | array |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | asn | asn2, format | Retrieves AS-level relationship for given networks. |
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 |
|---|---|---|
asn | integer | Retrieves all ASNs with provider-customer or peering relationships with the given ASN. |
asn2 | integer | Retrieves the AS relationship of ASN2 with respect to the given ASN. |
format | string | Format in which results will be returned. |
SELECT examples
- list
Retrieves AS-level relationship for given networks.
SELECT
meta,
rels
FROM cloudflare.radar.asns_rel
WHERE asn = '{{ asn }}' -- required
AND asn2 = '{{ asn2 }}'
AND format = '{{ format }}'
;