[PDB Tech] Using the API for integration into LibreNMS

Arnold Nipper arnold at nipper.de
Tue Mar 14 10:29:00 PDT 2017


Martin / Neil,

On 14.03.2017 18:04, Martin J. Levy wrote:
> Neil,
> 
>     Ok well as it happens, I've refactored to use the netixlan endpoint
>     instead and we just do a lookup (not using PDB) for the AS Name :)
> 
> 
> 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".
> 

the endpoint /asn does not longer is an endpoint, pls use

 /net?asn=nnnn


instead. To single out the name postprocess with jq might come in handy.

E.g.

curl -s -k -X GET https://peeringdb.com/api/net\?asn=13335 | jq
'.data[].name'
"Cloudflare"


Arnold

> Martin
> 
> On Mon, Mar 13, 2017 at 5:23 PM, Neil Lathwood <n at laf.io
> <mailto:n at laf.io>> wrote:
> 
>     On 13 March 2017 at 18:30, Arnold Nipper <arnold.nipper at de-cix.net
>     <mailto:arnold.nipper at de-cix.net>> wrote:
> 
> 
>         That would really be nice but would break the logic
> 
> 
>     Ok well as it happens, I've refactored to use the netixlan endpoint
>     instead and we just do a lookup (not using PDB) for the AS Name :)
> 
>     We've got some users testing it at present.
> 
>     Thanks,
> 
>     Neil 
> 
>     _______________________________________________
>     Pdb-tech mailing list
>     Pdb-tech at lists.peeringdb.com <mailto:Pdb-tech at lists.peeringdb.com>
>     http://lists.peeringdb.com/cgi-bin/mailman/listinfo/pdb-tech
>     <http://lists.peeringdb.com/cgi-bin/mailman/listinfo/pdb-tech>
> 
> 
> 
> 
> _______________________________________________
> Pdb-tech mailing list
> Pdb-tech at lists.peeringdb.com
> http://lists.peeringdb.com/cgi-bin/mailman/listinfo/pdb-tech
> 


-- 
Arnold Nipper / nIPper consulting, Sandhausen, Germany
email: arnold at nipper.de      phone: +49 6224 5593407 2
mobile: +49 172 2650958      fax:   +49 6224 5593407 9

-------------- 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/20170314/1bb3fffa/attachment.sig>


More information about the Pdb-tech mailing list