Team

Manage Your BGP Monitoring with the PacketVis REST API

Manage Your BGP Monitoring with the PacketVis REST API

TL;DR

  • New REST API endpoints let you list, create, update, and delete the ASes and prefixes monitored by PacketVis.
  • Keep your monitoring automatically in sync with your IPAM, or provisioning workflows.

You’ve long been able to read alerts through the PacketVis REST API, and now that capability goes further. New API endpoints let you start monitoring new autonomous systems, add or edit prefixes, update descriptions and monitoring settings, including upstream and downstream options, and stop monitoring resources you no longer need.

Together with the existing alert endpoints, this means you can both control what you monitor and pull alerts into your existing workflows. Integrate BGP monitoring directly into your own portals and control panels, or connect it to your IPAM to keep monitoring in sync with your network inventory.

View Your Monitored Resources

Want to know what PacketVis is monitoring for you? Ask the /bgp/resources/ endpoint: it gives you back every AS and prefix your organization monitors, along with their settings and status.

Each prefix also includes its visibility state. That makes the integration two-way: push resources from your IPAM into PacketVis, then read their monitoring state and visibility back into your own tools, dashboards, or control panels.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
    "data": [
        {
            "prefix": "203.0.113.0/24",
            "asn": [64496],
            "description": "web service",
            "ignoreMorespecifics": false,
            "ignore": false,
            "excludeMonitors": [],
            "active": true,
            "visible": true
        }
    ],
    "metadata": {}
}

Abbreviated response listing the monitored resources.

PacketVis automatically discovers the prefixes announced by each monitored AS. Use this to audit your announced address space, build dashboards, or compare it with what your own tools have on record.

Monitor a new Autonomous System or prefix

Use the same endpoint to add a new prefix or AS to monitor, or to update an existing configuration.

1
2
3
4
5
6
7
{
    "prefix": "203.0.113.0/24",
    "asn": [64496],
    "description": "web service",
    "ignoreMorespecifics": false,
    "ignore": false
}

Example payload for monitoring a prefix whose expected origin is AS64496.

For a new AS, give it a name and a tag saying what kind of network it is (e.g., isp, cdn, enterprise). PacketVis picks up the prefixes the AS announces, just like in the web interface, and optimizes the monitoring for the AS type.

1
2
3
4
5
{
    "asn": 64496,
    "name": "Example Network",
    "tag": "isp"
}

Example payload for monitoring a new AS.

Typical use cases

  • Provisioning: when your company assigns a prefix to a customer, automatically add it to monitoring as part of the same workflow, and remove it when the lease/contract ends.
  • Inventory sync: run a periodic job that aligns the monitored resources with your IPAM.
  • Status sync: retrieve each prefix’s visibility status and monitoring status from PacketVis and bring it back into your IPAM, dashboards, or internal tools.
  • Planned maintenance: automate the silencing of monitoring for specific resources during scheduled maintenance windows.

See the BGP API documentation for the complete list of endpoints, fields, and examples.

Start monitoring your BGP and RPKI operations now!