Rest Integration

Network data published by the snas.io collector is stored in a MySQL database and developers can directly query the DB. See example MySQL queries here.


Alternatively, the DB supports REST APIs that developers can use to query the DB. A full list of the REST APIs supported can be found here.

All queries have the following JSON syntax/output:

Below is an example DB response to a GET for count of BGP peers by type (GET /db_rest/v1/peer/type/count)-

The REST interface provide multiple APIs to get filtered data about BGP peers and prefixes in widely adopted JSON format - a flexible and extensible alternative to MySQL queries or using Kafka data from the message bus directly!