[arin-tech-discuss] Getting the Net Handle of a Subnet with REST API

Busching, Brad busching at amazon.com
Tue Aug 23 17:38:03 EDT 2016


I have a workflow that reassigns IP blocks of one of our blocks to a customer. I do so by using the REST  API to create a recipient customer<https://www.arin.net/resources/restfulmethods.html#netcreaterecipientcustomer> and then reassign<https://www.arin.net/resources/restfulmethods.html#netreassign> it to that customer.

I can get the correct information by passing in the handle as such: "https://www.ote.arin.net/rest/net/NET-54-239-0-10-1?apikey=..." returns
[cid:image003.png at 01D1FD48.73256C00]
I would like to have an equivalent workflow that deallocates it from that customer. I tried using Whois to get the net in several ways:


1.       http://whois.ote.arin.net/rest/cidr/54.239.0.10/31/more returns
[cid:image005.png at 01D1FD48.73256C00]

2.       http://whois.ote.arin.net/rest/cidr/54.239.0.10/31/less returns
[cid:image007.png at 01D1FD48.73256C00]

3.       http://whois.ote.arin.net/rest/ip/54.239.0.10/pft returns a more verbose version of the response above with all of the details about the parent handle NET-54-224-0-0-1

All of this is on the testing environments. Any help is appreciated.

Thanks
Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20160823/7b3254c3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oledata.mso
Type: application/octet-stream
Size: 18118 bytes
Desc: oledata.mso
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20160823/7b3254c3/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 19378 bytes
Desc: image003.png
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20160823/7b3254c3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 9927 bytes
Desc: image005.png
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20160823/7b3254c3/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 16304 bytes
Desc: image007.png
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20160823/7b3254c3/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.wmz
Type: application/x-ms-wmz
Size: 2175 bytes
Desc: image004.wmz
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20160823/7b3254c3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.wmz
Type: application/x-ms-wmz
Size: 1133 bytes
Desc: image006.wmz
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20160823/7b3254c3/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.wmz
Type: application/x-ms-wmz
Size: 1935 bytes
Desc: image008.wmz
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20160823/7b3254c3/attachment-0002.bin>


More information about the arin-tech-discuss mailing list