<HTML>
<HEAD>
<TITLE>Re: [Arin-whoisrws] Formulating Web query for network name(s)</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Mike,<BR>
<BR>
The URLs for searches will always be plural.  Using the example you provided, the proper URL would be:<BR>
<BR>
<a href="http://whoisrws-demo.arin.net/rest/nets;name=APNIC-1*">http://whoisrws-demo.arin.net/rest/nets;name=APNIC-1*</a><BR>
<BR>
Only the direct, linkable resources (i.e. a single network) are accessible via the singular “net” URI.<BR>
<BR>
As another example, the organization FOOBAR can be linked to via:<BR>
<BR>
<a href="http://whoisrws-demo.arin.net/rest/org/FOOBAR">http://whoisrws-demo.arin.net/rest/org/FOOBAR</a><BR>
<BR>
But searching for all organizations with a handle starting with “FOO” would be:<BR>
<BR>
<a href="http://whoisrws-demo.arin.net/rest/orgs;handle=FOO*">http://whoisrws-demo.arin.net/rest/orgs;handle=FOO*</a><BR>
<BR>
Also, the “+” to show a detailed record via the port 43 service can be accomplished using the “showDetails” query parameter in REST.  If you want to show the details of your APNIC-1* query, you would use:<BR>
<BR>
<a href="http://whoisrws-demo.arin.net/rest/nets;name=APNIC-1*?showDetails=true">http://whoisrws-demo.arin.net/rest/nets;name=APNIC-1*?showDetails=true</a><BR>
<BR>
Hope this helps!<BR>
<BR>
Regards,<BR>
<BR>
Garth Dubin<BR>
ARIN Software Engineer<BR>
<BR>
<BR>
On 6/21/10 1:26 PM, "Michael T. Davis" <<a href="davism@ecr6.ohio-state.edu">davism@ecr6.ohio-state.edu</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>        I'm trying to figure out how to leverage the Web-based system to<BR>
make a query for a wildcarded network name.  Right now, I can query against<BR>
the ARIN Whois server with the string...<BR>
<BR>
                            n . - <netname-prefix>*<BR>
<BR>
For example...<BR>
<BR>
                                 n . - APNIC-1*<BR>
<BR>
,..which would list a summary of all networks with a name (i.e. "NetName")<BR>
that started with "APNIC-1."  If I visit...<BR>
<BR>
                 <a href="http://whoisrws-demo.arin.net/ui/advanced.jsp">http://whoisrws-demo.arin.net/ui/advanced.jsp</a><BR>
<BR>
...I can specify the query as "APNIC-1*", and request a "Network" query for<BR>
the "Name," and get the same results.  How do I duplicate this by using a<BR>
Web query against <a href="http://whoisrws-demo.arin.net/rest/...">http://whoisrws-demo.arin.net/rest/...</a>?  Reading through<BR>
the API documentation, I thought it might be...<BR>
<BR>
              <a href="http://whoisrws-demo.arin.net/rest/net;name=APNIC-1*">http://whoisrws-demo.arin.net/rest/net;name=APNIC-1*</a><BR>
<BR>
...but /net apparently doesn't support any "matrix parameters."<BR>
<BR>
        In general, I need to know how to make a Web query for the Whois<BR>
equivalents of "n . - <netname-prefix>*" (which would list a summary of any<BR>
matches), and "n . + <netname-prefix>*" (which would provide the details for<BR>
each matching network).  Please advise.<BR>
<BR>
Thanks,<BR>
Mike<BR>
_______________________________________________<BR>
Arin-whoisrws mailing list<BR>
<a href="Arin-whoisrws@lists.arin.net">Arin-whoisrws@lists.arin.net</a><BR>
<a href="http://lists.arin.net/mailman/listinfo/arin-whoisrws">http://lists.arin.net/mailman/listinfo/arin-whoisrws</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>