Get prefix-to-origin mapping

Lookup prefix-to-origin mapping on global routing tables.

/radar/bgp/routes/pfx2as

get

Radar BGP

radar-get-bgp-pfx2as

Debug "planAvailability"

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

Debug "tokenPermissions"

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

Debug "parameters"

[
  {
    "in": "query",
    "name": "origin",
    "schema": {
      "description": "Lookup prefixes originated by the given ASN",
      "type": "integer"
    }
  },
  {
    "in": "query",
    "name": "prefix",
    "schema": {
      "description": "Lookup origins of the given prefix",
      "example": "1.1.1.0/24",
      "type": "string"
    }
  },
  {
    "in": "query",
    "name": "rpkiStatus",
    "schema": {
      "description": "Return only results with matching rpki status: valid, invalid or unknown",
      "enum": [
        "VALID",
        "INVALID",
        "UNKNOWN"
      ],
      "example": "INVALID",
      "type": "string"
    }
  },
  {
    "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"
                },
                "prefix_origins": {
                  "items": {
                    "properties": {
                      "origin": {
                        "type": "integer"
                      },
                      "peer_count": {
                        "type": "integer"
                      },
                      "prefix": {
                        "type": "string"
                      },
                      "rpki_validation": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "origin",
                      "peer_count",
                      "prefix",
                      "rpki_validation"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "prefix_origins",
                "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": []
  }
]