Hi Craig, Yes – a bit of a misunderstanding, I think. The call you’re using returns all *route* objects for the net and its subdelegations, not the subdelegations themselves. What you want is something like this:
https://www.arin.net/resources/manage/regrws/methods/#request-reassignment-report This will return a ticket payload. You can then use the ticket methods to grab the report containing the info and extract it for IPAM use. That will list out each reassignment from the /24. It might be worth noting there is potentially another way to go about this. If your IPAM knows what’s supposed to be in ARIN’s records, you can use a call like this to confirm there is in fact a matching record: https://www.arin.net/resources/manage/regrws/methods/#get-network-details-of-a-start-and-end-ip-range-most-specific Basically, this is reversing what you’re doing. Your call grabs ARIN’s records and imports them into an IPAM. This call would go the other direction and take your IPAM’s records and use them to confirm corresponding records exist in ARIN’s Whois – and if not, to publish them. Hope that helps. Let us know if we can provide further guidance. -Jon Jon Worley Senior Technology Architect American Registry for Internet Numbers (ARIN) From: Craig Smith <[email protected]> Date: Wednesday, November 15, 2023 at 10:02 AM To: Jon Worley <[email protected]>, Gavin Budd <[email protected]>, "[email protected]" <[email protected]> Subject: Re: [arin-tech-discuss] Reg-RWS Thanks for the update, I'm getting further along, but I am still having issues. I'm trying to get a list of the 22 first-level reassignments I have for this particular block so I can import them into our IPAM and manage further reassignments from that same application. I was expecting the returned collection to have 23 entries, am I misunderstanding how this works? Output: https://reg.arin.net/rest/net/NET-192-197-145-0-1/routes?reassignments=true?&apikey=API<https://reg.arin.net/rest/net/NET-192-197-145-0-1/routes?reassignments=true?&apikey=API-C0D7-CD2C-7CB3-4D25-96B7-634B-A1CD-0164>-REMOVED <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <collection xmlns="http://www.arin.net/regrws/core/v1" xmlns:ns2="http://www.arin.net/regrws/messages/v1" xmlns:ns3="http://www.arin.net/regrws/shared-ticket/v1" xmlns:ns4="http://www.arin.net/regrws/ttl/v1" xmlns:ns5="http://www.arin.net/regrws/rpki/v1"> <routeRef entry="SIMPLE"> <orgHandle>PMSL-17</orgHandle> <originAS>AS13837</originAS> <prefix>192.197.145.0/24</prefix> </routeRef> </collection> ________________________________ From: Jon Worley <[email protected]> Sent: Tuesday, November 14, 2023 4:18 PM To: Gavin Budd <[email protected]>; Craig Smith <[email protected]>; [email protected] <[email protected]> Subject: Re: [arin-tech-discuss] Reg-RWS All, We noted an error in the documentation. At the URL noted below, we had: /rest/net/NETHANDLE/routes&reassignments=true?apikey=APIKEY This will be corrected to: /rest/net/NETHANDLE/routes?reassignments=true?&apikey=APIKEY Our apologies for the error. It will be corrected shortly. Thanks for the tip. Best regards, Jon Worley Senior Technology Architect American Registry for Internet Numbers (ARIN) From: arin-tech-discuss <[email protected]> on behalf of Gavin Budd via arin-tech-discuss <[email protected]> Reply-To: Gavin Budd <[email protected]> Date: Tuesday, November 14, 2023 at 12:31 PM To: Craig Smith <[email protected]>, "[email protected]" <[email protected]> Subject: Re: [arin-tech-discuss] Reg-RWS Craig, looking at your get output, You have an ampersand at the routes&reassignments, but the document shows a ? in there instead. GET https://reg.arin.net/rest/net/NET-192-0-2-0/routes?reassignments=true?&apikey=API-1234-5678-2222-3333 --Gavin Budd From: arin-tech-discuss <[email protected]> On Behalf Of Craig Smith Sent: Tuesday, November 14, 2023 9:21 AM To: [email protected] Subject: [arin-tech-discuss] Reg-RWS Hello, I'm trying to get all the reassignments in place for a particular NET handle via the REST API, but I'm not getting any results from any of the queries I have tried. I'm looking to find all the allocations and holes for all the IP blocks we operate. I am using this page as a reference. Viewing a List of route Objects for Reassignments of a NET https://www.arin.net/resources/manage/irr/irr-restful/#viewing-a-list-of-route-objects-for-reassignments-of-a-net Output: GET /rest/net/NET-192-197-145-0-1/routes&reassignments=true?apikey=API-(Removed) HTTP/1.1 Host: reg.arin.net Connection: close User-Agent: RapidAPI/4.2.0 (Macintosh; OS X/14.1.0) GCDHTTPRequest <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error xmlns="http://www.arin.net/regrws/core/v1"><additionalInfo/><code>E_UNSPECIFIED</code><components/><message>This method for internal ARIN use only.</message></error> Thanks in advance, Craig [EXTERNAL] This message originated outside of Fatbeam. Do not click links or open attachments unless you recognize the sender, are expecting something from them, and know the content is safe. Please report malicious emails to Dave @208-571-0418 or [email protected]<mailto:[email protected]>.
_______________________________________________ arin-tech-discuss mailing list [email protected] https://lists.arin.net/mailman/listinfo/arin-tech-discuss
