[PDB Tech] Using the API for integration into LibreNMS

Arnold Nipper arnold at nipper.de
Tue Mar 14 17:01:23 PDT 2017


On 14.03.2017 23:43, Neil Lathwood wrote:
>     PDB is built to be used. Go call the /asn/nnnn endpoint to get the
>     name. BTW: Keep in mind that the name of a network may not be the
>     same on PDB as it is via whois on an RIR (or RADB). The name of a
>     network used for peering is sometimes "unique".
> 
> 
> Thanks for the reply Martin, this would involve a call for every peer on
> an Exchange - that will equate to a large number of api hits per install
> so could mount up.
> 

If you are worried about the number of api calls try this. Build a list
of peers asn1, asn2, ... asnn and then call

 /net?asn__in=asn1,asn2,...asnn

That way it's only one call. Or simply do

 /net

and look for the (asn,name) pair in the answer.


Arnold

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.peeringdb.com/pipermail/pdb-tech/attachments/20170315/fedd1b8e/attachment.sig>


More information about the Pdb-tech mailing list