From jarl.stefansson at gmail.com Sun Dec 23 01:22:31 2012 From: jarl.stefansson at gmail.com (Jarl Stefansson) Date: Sun, 23 Dec 2012 01:22:31 -0500 Subject: [arin-tech-discuss] Problem creating customer record using ARIN REST REG API Message-ID: Hi, I'm building a python library to communicate with the ARIN REST REG API and until I ran into the following issue everything has worked great. I'm able to retrieve/modify Net and Customer objects without any issues but when I try to create a new Customer I'm getting the following error, I've consulted with the documentation and as far as I can see I'm following it to the letter, perhaps someone here can assist, I've included the error I receive from the API but with modified NET and API keys for security/privacy reasons. DEBUG:root:request() HTTP Response content b' JBoss Web/7.0.10.Final - Error report

HTTP Status 404 - Could not find resource for relative : /net/NET-192-168-0-0-1/customer of full path: http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-192-168-0-0-1/customer?apikey=API-DEAD-BEEF-CAFE-1234


type Status report

message Could not find resource for relative : /net/NET-192-168-0-0-1/customer of full path: http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-192-168-0-0-1/customer?apikey=API-DEAD-BEEF-CAFE-1234

description The requested resource (Could not find resource for relative : /net/NET-192-168-0-0-1/customer of full path: http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-192-168-0-0-1/customer?apikey=API-DEAD-BEEF-CAFE-1234) is not available.


JBoss Web/7.0.10.Final

' p.s. I will be releasing the library under GPL v.3 once finished. -- Regards, Jarl Stefansson jarl.stefansson at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhuberma at arin.net Sun Dec 23 10:08:40 2012 From: dhuberma at arin.net (David Huberman) Date: Sun, 23 Dec 2012 15:08:40 +0000 Subject: [arin-tech-discuss] Problem creating customer record using ARIN REST REG API In-Reply-To: References: Message-ID: <47BF05778FBAC446B2C9219A39955924791532A0@CHAXCH01.corp.arin.net> Hello Jarl, If you privately send me the full URL you're using, with your real API key, and the payload, I'll do my best to help you out today. I'll then report back to the list when we figure something out :) Regards, David ________________________________ From: arin-tech-discuss-bounces at arin.net [arin-tech-discuss-bounces at arin.net] on behalf of Jarl Stefansson [jarl.stefansson at gmail.com] Sent: Sunday, December 23, 2012 1:22 AM To: arin-tech-discuss at arin.net Subject: [arin-tech-discuss] Problem creating customer record using ARIN REST REG API Hi, I'm building a python library to communicate with the ARIN REST REG API and until I ran into the following issue everything has worked great. I'm able to retrieve/modify Net and Customer objects without any issues but when I try to create a new Customer I'm getting the following error, I've consulted with the documentation and as far as I can see I'm following it to the letter, perhaps someone here can assist, I've included the error I receive from the API but with modified NET and API keys for security/privacy reasons. DEBUG:root:request() HTTP Response content b' JBoss Web/7.0.10.Final - Error report

HTTP Status 404 - Could not find resource for relative : /net/NET-192-168-0-0-1/customer of full path: http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-192-168-0-0-1/customer?apikey=API-DEAD-BEEF-CAFE-1234


type Status report

message Could not find resource for relative : /net/NET-192-168-0-0-1/customer of full path: http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-192-168-0-0-1/customer?apikey=API-DEAD-BEEF-CAFE-1234

description The requested resource (Could not find resource for relative : /net/NET-192-168-0-0-1/customer of full path: http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-192-168-0-0-1/customer?apikey=API-DEAD-BEEF-CAFE-1234) is not available.


JBoss Web/7.0.10.Final

' p.s. I will be releasing the library under GPL v.3 once finished. -- Regards, Jarl Stefansson jarl.stefansson at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhuberma at arin.net Sun Dec 23 13:34:34 2012 From: dhuberma at arin.net (David Huberman) Date: Sun, 23 Dec 2012 18:34:34 +0000 Subject: [arin-tech-discuss] Problem creating customer record using ARIN REST REG API In-Reply-To: References: Message-ID: <47BF05778FBAC446B2C9219A39955924791533AC@CHAXCH01.corp.arin.net> Hello, As promised, reporting back to the list in case it helps anyone looking through the archives. The error code that was encountered happens if you PUT instead of POST when creating a recipient customer org. Regards, David ________________________________ From: arin-tech-discuss-bounces at arin.net [arin-tech-discuss-bounces at arin.net] on behalf of Jarl Stefansson [jarl.stefansson at gmail.com] Sent: Sunday, December 23, 2012 1:22 AM To: arin-tech-discuss at arin.net Subject: [arin-tech-discuss] Problem creating customer record using ARIN REST REG API Hi, I'm building a python library to communicate with the ARIN REST REG API and until I ran into the following issue everything has worked great. I'm able to retrieve/modify Net and Customer objects without any issues but when I try to create a new Customer I'm getting the following error, I've consulted with the documentation and as far as I can see I'm following it to the letter, perhaps someone here can assist, I've included the error I receive from the API but with modified NET and API keys for security/privacy reasons. DEBUG:root:request() HTTP Response content b' JBoss Web/7.0.10.Final - Error report

HTTP Status 404 - Could not find resource for relative : /net/NET-192-168-0-0-1/customer of full path: http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-192-168-0-0-1/customer?apikey=API-DEAD-BEEF-CAFE-1234


type Status report

message Could not find resource for relative : /net/NET-192-168-0-0-1/customer of full path: http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-192-168-0-0-1/customer?apikey=API-DEAD-BEEF-CAFE-1234

description The requested resource (Could not find resource for relative : /net/NET-192-168-0-0-1/customer of full path: http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-192-168-0-0-1/customer?apikey=API-DEAD-BEEF-CAFE-1234) is not available.


JBoss Web/7.0.10.Final

' p.s. I will be releasing the library under GPL v.3 once finished. -- Regards, Jarl Stefansson jarl.stefansson at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jarl.stefansson at gmail.com Sun Dec 23 23:38:46 2012 From: jarl.stefansson at gmail.com (Jarl Stefansson) Date: Sun, 23 Dec 2012 23:38:46 -0500 Subject: [arin-tech-discuss] Returned registrationDate format in payloads returned by GET vs. POST (Create Recipient Customer) Message-ID: I just wanted to ask if this was normal behaviour or possibly a bug. When using GET to retrieve Customer information the registrationDate is in the format 2012-10-31T12:29:32-04:00 When creating a new Customer the returned payload has the registrationDate in the format 2012-12-23T23:23:55.400-05:00 It's easy enough to parse both formats but I just wanted to check if this might be a bug? -- Regards, Jarl Stefansson jarl.stefansson at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at arin.net Wed Dec 26 08:17:24 2012 From: andy at arin.net (Andy Newton) Date: Wed, 26 Dec 2012 13:17:24 +0000 Subject: [arin-tech-discuss] Returned registrationDate format in payloads returned by GET vs. POST (Create Recipient Customer) In-Reply-To: Message-ID: <62D9228640AC7F49B2DD9ED0C9CE60E57898EC32@CHAXCH01.corp.arin.net> From: Jarl Stefansson > Date: Sunday, December 23, 2012 11:38 PM To: "arin-tech-discuss at arin.net" > Subject: [arin-tech-discuss] Returned registrationDate format in payloads returned by GET vs. POST (Create Recipient Customer) I just wanted to ask if this was normal behaviour or possibly a bug. When using GET to retrieve Customer information the registrationDate is in the format 2012-10-31T12:29:32-04:00 When creating a new Customer the returned payload has the registrationDate in the format 2012-12-23T23:23:55.400-05:00 It's easy enough to parse both formats but I just wanted to check if this might be a bug? -- Regards, Jarl Stefansson jarl.stefansson at gmail.com Jarl, Thanks for the question. Both dates are in ISO8601 format, but each has a different timezone offset. I've attempted to reproduce this with no success. Are you using GET on the same customer after creating it? I ask because the registration dates in your example do not appear to be the same. Regardless, I would expect the GET to return an EST timezone value so this might be a bug on our end. Regards, Andy Newton Chief Engineer, ARIN -------------- next part -------------- An HTML attachment was scrubbed... URL: