Get AS-level relationships by AS number

Get AS-level relationship for given networks.

/radar/entities/asns/{asn}/rel

get

Radar Entities

radar-get-asns-rel

Debug "planAvailability"

{
  "business": true,
  "enterprise": true,
  "free": true,
  "pro": true
}

Debug "tokenPermissions"

{
  "enum": [
    "com.cloudflare.api.user.read"
  ]
}

Debug "parameters"

[
  {
    "in": "path",
    "name": "asn",
    "required": true,
    "schema": {
      "description": "Get all ASNs with provider-customer or peering relationships with the given ASN",
      "example": 3,
      "type": "integer"
    }
  },
  {
    "in": "query",
    "name": "asn2",
    "schema": {
      "description": "Get the AS relationship of ASN2 with respect to the given ASN",
      "type": "integer"
    }
  },
  {
    "in": "query",
    "name": "format",
    "schema": {
      "description": "Format results are returned in.",
      "enum": [
        "JSON",
        "CSV"
      ],
      "example": "json",
      "type": "string"
    }
  }
]

Debug "requestBody"

null

Debug "responses"

{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "result": {
              "properties": {
                "meta": {
                  "properties": {
                    "data_time": {
                      "type": "string"
                    },
                    "query_time": {
                      "type": "string"
                    },
                    "total_peers": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data_time",
                    "query_time",
                    "total_peers"
                  ],
                  "type": "object"
                },
                "rels": {
                  "items": {
                    "properties": {
                      "asn1": {
                        "type": "integer"
                      },
                      "asn1_country": {
                        "type": "string"
                      },
                      "asn1_name": {
                        "type": "string"
                      },
                      "asn2": {
                        "type": "integer"
                      },
                      "asn2_country": {
                        "type": "string"
                      },
                      "asn2_name": {
                        "type": "string"
                      },
                      "rel": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "asn1",
                      "asn1_country",
                      "asn1_name",
                      "asn2",
                      "asn2_country",
                      "asn2_name",
                      "rel"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "rels",
                "meta"
              ],
              "type": "object"
            },
            "success": {
              "example": true,
              "type": "boolean"
            }
          },
          "required": [
            "result",
            "success"
          ],
          "type": "object"
        }
      }
    },
    "description": "Successful Response"
  },
  "400": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "errors": {
              "items": {
                "properties": {
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "message"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "result": {
              "type": "object"
            },
            "success": {
              "example": false,
              "type": "boolean"
            }
          },
          "required": [
            "result",
            "success",
            "errors"
          ],
          "type": "object"
        }
      }
    },
    "description": "Bad Request"
  }
}

Debug "security"

[
  {
    "api_email": [],
    "api_key": []
  }
]