Skip to main content
POST
/
{tenantUUID}
/
prefixes
/
search
Search for Prefixes
curl --request POST \
  --url https://apigw.ipxo.com/nethub-data/{tenantUUID}/prefixes/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "offset": 123,
  "limit": 123,
  "sort": "<string>",
  "fields": [
    "<string>"
  ]
}
'
{
  "data": [
    {
      "notation": "string",
      "ipNet": {
        "ip": "string",
        "mask": "string"
      },
      "internalMetadata": {
        "internal": true,
        "readOnly": true,
        "master": true,
        "prefixLengthLimits": {
          "min": 0,
          "max": 0,
          "exact": [
            0
          ]
        },
        "holders": [
          {
            "tenantUUID": "string",
            "projectID": "string",
            "organisation": "string",
            "type": 0,
            "top": true
          }
        ]
      },
      "externalMetadata": {
        "key1": "value1",
        "keyN": "valueN"
      },
      "holderMetadata": {
        "key1": "value1",
        "keyN": "valueN"
      },
      "geodata": [
        {
          "provider": "string",
          "countryName": "string",
          "countryCode": "string",
          "cityName": "string",
          "date": "string",
          "state": "string"
        }
      ],
      "whois": {
        "inetnum": "string",
        "registrar": "string",
        "source": "string",
        "recordActive": true,
        "nets": [
          {
            "organisation": "string",
            "netname": "string",
            "net_type": "string",
            "net_handle": "string",
            "origin_as": "string",
            "country": [
              "string"
            ],
            "comment": "string",
            "created": "string",
            "last_modified": "string",
            "record_created": "string",
            "record_modified": "string",
            "mnt_by": [
              "string"
            ],
            "mnt_irt": [
              "string"
            ],
            "pocs": [
              {
                "handle": "string",
                "kind": "string"
              }
            ],
            "notify": "string"
          }
        ],
        "domains": [
          {
            "domain": "string",
            "nservers": [
              "string"
            ]
          }
        ]
      },
      "bgp": {
        "peerCount": {
          "fullTable": 0,
          "active": 0
        },
        "asOrigins": [
          {
            "asn": 0,
            "peersSeeing": 0
          }
        ],
        "asSetOrigins": [
          {
            "asSet": "string",
            "peersSeeing": 0
          }
        ]
      },
      "rpki": {
        "roas": [
          {
            "maxLength": 0,
            "asn": "string",
            "ta": "string"
          }
        ],
        "suggestions": [
          {
            "maxLength": 0,
            "asn": "string",
            "ta": "string",
            "status": "as0"
          }
        ]
      },
      "routes": [
        {
          "route": "string",
          "origin": "string",
          "descr": [
            "string"
          ],
          "mnt_by": [
            "string"
          ],
          "changed": [
            "string"
          ],
          "source": "string"
        }
      ],
      "routingHealth": {
        "criticalityStatus": "critical",
        "bgpStatus": "match",
        "bgpActions": [
          {
            "action": "add",
            "asns": [
              0
            ]
          }
        ],
        "rpkiStatus": "match",
        "rpkiActions": [
          {
            "action": "add",
            "asns": [
              0
            ]
          }
        ],
        "irrStatus": "match",
        "irrActions": [
          {
            "action": "add",
            "asns": [
              {
                "origin": 0,
                "target": "string"
              }
            ]
          }
        ],
        "irmActions": [
          {
            "action": "add",
            "asns": [
              0
            ]
          }
        ]
      },
      "cacheDerrived": {
        "registrar": "string"
      }
    }
  ],
  "metadata": {
    "limit": 0,
    "offset": 0
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tenantUUID
string
required

Tenant UUID

Body

application/json
notation
object
internalMetadata
object
externalMetadata
object
holderMetadata
object
geodata
object
whois
object
bgp
object
rpki
object
routes
object
routingHealth
object
cacheDerrived
object
offset
integer<int64>
limit
integer<int64>
sort
string

Sort order for the returned items. Keys must be provided in a single string, separated by ,. Order determines sorting priority. Adding - in front of the key enables DESCENDING sort. Supported keys: [notation, ipNet]. To achieve correct "IP sort" use ipNet.

fields
string[]

array of prefix object fields to return in response. Supports sub-object projection by using ., i.e.: geodata.provider. NOTE: internalMetadata does not fully support sub-object field projection and will always return entire structure, with non-requested fields initialized with default type values (i.e. booleans will be equal to FALSE and strings to ""), so it is advised to always request entire internalMetadata to avoid data analysis inconsistencies.

Response

A list of matching prefixes.

data
object[]
metadata
object