[arin-tech-discuss] why do I have error 400 bad request reuturned?
Brian Rak
brak at gameservers.com
Tue Nov 25 12:38:11 EST 2014
http://whois.arin.net/rest/net/NET-65-127-10-168-1/pft
Checking the start IP and end IP is not sufficient.
I've been down the path you're going. The best solution I found is:
* Use /rest/report/reassignment/ROOT to get a list of all the
reassignments for a particular network (it'll be in xls format, you need
to convert it to something you can parse).
* Go through the list, issue DELETE's for any subnets that are not in
your database
* Wait awhile (5-10 minutes)
* Go through and issue reassignments for any subnets that are new or
that ARIN doesn't know about.
It's a large pain to get all the logic working correctly here, but if
you don't do it you'll be running into overlaps and other errors forever.
I get the distinct feeling that not many people are actually working
with the API at this point, so it's a pretty painful process.
On 11/25/2014 12:25 PM, Zhao, Sean wrote:
>
> Hi, Andy,
>
> I sent the previous email in the wrong email chain.
> Thanks for the response.
>
> Yes, I finally got the error response from Arin now.
> It is below. IP range overlaps? Why? I am assigning 65.127.10.160/27.
>
> So start ip and end ip are all clean.
>
> http://whois.ote.arin.net/rest/ip/65.127.10.160 and
> http://whois.ote.arin.net/rest/ip/65.127.10.191
>
> in case you don't have my request xml. Here is my request xml and
> error returned from Arin.
>
> <net xmlns="http://www.arin.net/regrws/core/v1">
>
> <netBlocks>
>
> <netBlock>
>
> <cidrLength>27</cidrLength>
>
> <startAddress>65.127.10.160</startAddress>
>
> <type>S</type>
>
> </netBlock>
>
> </netBlocks>
>
> <netName>Q1125-65-127-10-160</netName>
>
> <orgHandle>CBC-208</orgHandle>
>
> <originASes>
>
> <originAS>209</originAS>
>
> </originASes>
>
> <parentNetHandle>NET-65-112-0-0-1</parentNetHandle>
>
> <version>4</version>
>
> </net>
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>
> <error xmlns="http://www.arin.net/regrws/core/v1">
>
> <additionalInfo/>
>
> <code>E_ENTITY_VALIDATION</code>
>
> <components>
>
> <component>
>
> <message>IP range overlaps with existing network(s).</message>
>
> <name>startAddress</name>
>
> </component>
>
> </components>
>
> <message>Payload entity failed to validate; see component messages for
> details.</message>
>
> </error>
>
> *Thanks*
>
> **
>
> *Sean Zhao*
>
> *sean.zhao at centurylink.com*
>
> This communication is the property of CenturyLink and may contain
> confidential or privileged information. Unauthorized use of this
> communication is strictly prohibited and may be unlawful. If you have
> received this communication in error, please immediately notify the
> sender by reply e-mail and destroy all copies of the communication and
> any attachments.
>
>
>
> _______________________________________________
> arin-tech-discuss mailing list
> arin-tech-discuss at arin.net
> http://lists.arin.net/mailman/listinfo/arin-tech-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20141125/83b20b6a/attachment.html>
More information about the arin-tech-discuss
mailing list