Send arin-tech-discuss mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.arin.net/mailman/listinfo/arin-tech-discuss
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of arin-tech-discuss digest..."
Today's Topics:
1. Re: Problem creating customer record using ARIN REST REG API
(David Huberman)
2. Returned registrationDate format in payloads returned by GET
vs. POST (Create Recipient Customer) (Jarl Stefansson)
----------------------------------------------------------------------
Message: 1
Date: Sun, 23 Dec 2012 18:34:34 +0000
From: David Huberman <[email protected]>
To: "[email protected]" <[email protected]>
Subject: Re: [arin-tech-discuss] Problem creating customer record
using ARIN REST REG API
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
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: [email protected] [[email protected]]
on behalf of Jarl Stefansson [[email protected]]
Sent: Sunday, December 23, 2012 1:22 AM
To: [email protected]
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'
<html>
<head>
<title>JBoss Web/7.0.10.Final - Error report</title>
<style>
<!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}-->
</style>
</head>
<body>
<h1>
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
</h1>
<HR size="1" noshade="noshade">
<p><b>type</b> Status report</p>
<p><b>message</b> <u>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</u></p>
<p><b>description</b>
<u>
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.
</u>
</p>
<HR size="1" noshade="noshade">
<h3>JBoss Web/7.0.10.Final</h3>
</body>
</html>'
p.s. I will be releasing the library under GPL v.3 once finished.
--
Regards,
Jarl Stefansson
[email protected]<mailto:[email protected]>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.arin.net/pipermail/arin-tech-discuss/attachments/20121223/93297c0e/attachment-0001.html>
------------------------------
Message: 2
Date: Sun, 23 Dec 2012 23:38:46 -0500
From: Jarl Stefansson <[email protected]>
To: [email protected]
Subject: [arin-tech-discuss] Returned registrationDate format in
payloads returned by GET vs. POST (Create Recipient Customer)
Message-ID:
<CAO1aV6CrM_V+8G26=gl3w1ws2nxb34lxivchhumigqgpser...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
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
[email protected]
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.arin.net/pipermail/arin-tech-discuss/attachments/20121223/af53d98c/attachment-0001.html>
------------------------------
_______________________________________________
arin-tech-discuss mailing list
[email protected]
http://lists.arin.net/mailman/listinfo/arin-tech-discuss
End of arin-tech-discuss Digest, Vol 23, Issue 2
************************************************