4.0 KiB
4.0 KiB
dn42regsrv API Description
GET /
If the StaticRoot configuration option points to a readable directory, files from the directory will be served under /
The git repository contains a sample StaticRoot directory with a simple registry explorer web app.
GET /api/registry/
Returns a JSON object, with keys for each registry type and values containing a count of the number of registry objects for each type.
Example:
http://localhost:8042/api/registry/
# sample output
{"as-block":8,"as-set":34,"aut-num":1482,"domain":451,"inet6num":744,"inetnum":1270,"key-cert":7,"mntner":1378,"organisation":275,"person":1387,"registry":4,"role":14,"route":886,"route-set":2,"route6":594,"schema":18,"tinc-key":25,"tinc-keyset":3}
GET /api/registry/?match
Returns a JSON object listing all objects for the matched types.
Keys for the returned object are registry types, the value for each type is an array of object names
If the match parameter is provided, the is substring matched against all registry types, otherwise an exact type name is required.
A special type of '*' returns all types and objects in the registry.
Example:
http://localhost:8042/api/registry/aut-num # list aut-num objects
http://localhost:8042/api/registry/* # list all types and objects
http://localhost:8042/api/registry/route?match # list route and route6 objects
# sample output
{"role":["ALENAN-DN42","FLHB-ABUSE-DN42","ORG-SHACK-ADMIN-DN42","PACKETPUSHERS-DN42","CCCHB-ABUSE-DN42","ORG-NETRAVNEN-DN42","ORG-SHACK-ABUSE-DN42","MAGLAB-DN42","NIXNODES-DN42","SOURIS-DN42","CCCKC-DN42","NL-ZUID-DN42","ORG-SHACK-TECH-DN42","ORG-YANE-DN42"]}