[arin-tech-discuss] Developing Reg-RWS discovery requirements (was Re: Listing all reassignments?)
aaronh at bind.com
Tue Nov 29 13:55:16 EST 2011
On Tue, Nov 29, 2011 at 01:52:24PM -0500, Thomas St.Pierre wrote:
> Hi Andy!
> 1) I would think in my use case it would be the more specific
> network. There may be uses for the other options though.
Such as import on a non-green field build :)
> 2) I used it in a batch update, but I guess with any update it would
> be better to update an existing object rather then delete/recreate?
> As for the IP, I was going with the network IP of the subnet as I
> was querying the whois database. I'd then compare the result to make
> sure the network and subnet masks lined up with I had. It might make
> more sense querying network address and subnet mask you're looking
> after directly though.
> Aaron, That's basically what I did in my code. The big problem I had
> with that is there's no whois interface to the rest-beta site.
> Therefore if you're developing against the beta site it makes it
> difficult to do some things as the data doesn't match up.
Yup, I don't test my code, but when I do, I do it in production! :D <J>
I used real space and the prod environment to test having run into the same problem.
> On 11-11-29 1:23 PM, Andy Newton wrote:
> >My response is inline.
> >On Nov 23, 2011, at 1:49 PM, Thomas St.Pierre wrote:
> >>1) For a given IP, (usually the network address of the subnet I'm about to reassign) find out what the parent NET HANDLE is. This is required for the net payload to do the reassign. (From my understanding of the documentation anyways)
> >Because many registrants SWiP network blocks to themselves, this isn't as straightforward as one would hope. The logic may need to be "find the parent NET HANDLE for the most specific (or least specific) of my networks". I guess most specific is the proper logic, but I could easily be wrong about that. Another option to help solve that problem might be to return ALL the net handles for each network registered by a registrant given an IP. Because it is possible for a single API Key to have an authorization over multiple organizations, that query would also need to include an ORG Handle.
> >>2) For a given IP, find what the existing NET HANDLE and customer handle are. Useful for updating existing objects.
> >Would the intent be to use this in a batch operation, such as a nightly syncing process, or more for updating objects on the fly? And if it is more of a batch mode, how do you decide which IP address to use?
> >This has been helpful.
> >Andy Newton
> arin-tech-discuss mailing list
> arin-tech-discuss at arin.net
aaronh at bind.com
Key fingerprint = AD 67 37 60 7D 73 C5 B7 33 18 3F 36 C3 1C C6 B8
More information about the arin-tech-discuss