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@laf.io <mailto:n@laf.io>> wrote:
On 13 March 2017 at 18:30, Arnold Nipper <arnold.nipper@de-cix.net <mailto:arnold.nipper@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@lists.peeringdb.com <mailto:Pdb-tech@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@lists.peeringdb.com http://lists.peeringdb.com/cgi-bin/mailman/listinfo/pdb-tech
-- Arnold Nipper / nIPper consulting, Sandhausen, Germany email: arnold@nipper.de phone: +49 6224 5593407 2 mobile: +49 172 2650958 fax: +49 6224 5593407 9