[arin-tech-discuss] Question of "The API key is not authorized to make that request" when I try to create an Org

David Huberman dhuberma at arin.net
Tue Oct 11 10:56:38 EDT 2011


Hi Ron,

We aren't examining the org's attributes (name, address, POCs) to
determine if it already exists.  To test, you can submit the same payload
multiple times, and it will return a new OrgID each time. I just tested,
and got back PCH-27, PCH-28, and PCH-29.

Regards,
David

---
David R Huberman
Principal Technical Analyst, ARIN
703-227-9866







On 10/11/11 10:48 AM, "Grimes, Ronald" <Ron.Grimes at CenturyLink.com> wrote:

Hi David,

Are you looking at the <orgName>PEACE CORPS HEADQUARTERS</orgName> that is
sent in on the org create to determine that it already exists with a
different company?

Thanks,
Ron

Below was the XML Sean sent in:

<?xml version="1.0" encoding="UTF-8"?>
<org xmlns="http://www.arin.net/regrws/core/v1">
        <iso3166-2>CO</iso3166-2>
        <iso3166-1>
                <code3>USA</code3>
                <code2></code2>
                <name></name>
                <e164></e164>
        </iso3166-1>
        <streetAddress>
                <line number="1">600 17TH ST</line>
        </streetAddress>
        <city>DENVER</city>
        <postalCode>80202</postalCode>
        <orgName>PEACE CORPS HEADQUARTERS</orgName>
        <pocLinks>
                <pocLinkRef description="null Help Desk"
handle="HELPD126-ARIN" function="AB"/>
                <pocLinkRef description="null Help Desk"
handle="HELPD127-ARIN" function="AD"/>
                <pocLinkRef description="null Help Desk"
handle="HELPD128-ARIN" function="N"/>
                <pocLinkRef description="null Help Desk"
handle="HELPD129-ARIN" function="T"/>
        </pocLinks>
</org>

-----Original Message-----
From: David Huberman [mailto:dhuberma at arin.net]
Sent: Tuesday, October 11, 2011 10:41 AM
To: 'arin-tech-discuss at arin.net'
Cc: Grimes, Ronald
Subject: Re: [arin-tech-discuss] Question of "The API key is not
authorized to make that request" when I try to create an Org

Hello Sean,

Your URL, method, and payload are all correct.

The error you're getting is about the relationship of your API key to the
parentNetHandle in your URL. You specified:  /rest/net/NET-204-228-0-0-1

The API key you're using isn't authoritative for this address block, as
it's registered to a different company (WestNet, as opposed to
CenturyLink).

Regards,
David

---
David R Huberman
Principal Technical Analyst, ARIN
703-227-9866







On 10/10/11 4:27 PM, "Zhao, Sean" <Sean.Zhao at CenturyLink.com> wrote:

David,
                Today, I got an error when I was trying to create an Org.
Here are my request payload and response payload. I don¹t understand why
it is failed this time. I am OK when I am trying to create ADVANCED ENERGY
IDEAS. I got handle
 returned for AEI-20 and AEI19Š But not this time for ³ADVANCED ENERGY
IDEAS². Does that mean I create some Org for some companies, but I cannot
for some others? Or maybe something wrong in my url
https://www.arin.net/rest/net/NET-204-228-0-0-1/org?apikey=MyAPIKey. The
only thing I can think of is the netHandle in the url, but I cannot be
sure and don¹t
 know the reason if it is the problem.

Request Payload:
<?xml version="1.0" encoding="UTF-8"?>
<poc xmlns="http://www.arin.net/regrws/core/v1">
<iso3166-2>CO</iso3166-2>
<iso3166-1>
<name></name>
<code2></code2>
<code3>USA</code3>
<e164></e164>
</iso3166-1>
<emails>
<email>vhanji at qwest.com</email <mailto:vhanji at qwest.com%3c/email>>
</emails>
<streetAddress>
<line number="1">600 17TH ST</line>
</streetAddress>
<city>DENVER</city>
<postalCode>80202</postalCode>
<contactType>ROLE</contactType>
<companyName>PEACE CORPS HEADQUARTERS</companyName>
<lastName>Help Desk</lastName>
<phones>
<phone>
<type>
<description>OFFICE</description>
<code>O</code>
</type>
<number>2212112125</number>
</phone>
</phones>
</poc>


Response Payload
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<poc xmlns="http://www.arin.net/regrws/core/v1">
<city>DENVER</city>
<companyName>PEACE CORPS HEADQUARTERS</companyName>
<contactType>ROLE</contactType>
<iso3166-1>
<code2>US</code2>
<code3>USA</code3>
<e164>1</e164>
<name>UNITED STATES</name>
</iso3166-1>
<emails>
<email>
vhanji at qwest.com</email <mailto:vhanji at qwest.com%3c/email>>
                </emails>
<lastName>Help Desk</lastName>
<streetAddress>
<line number="0">600 17TH ST</line>
</streetAddress>
<phones>
<phone>
<number>+1-221-211-2125</number>
<type>
<code>O</code>
<description>OFFICE</description>
</type>
</phone>
</phones>
<handle>HELPD113-ARIN</handle>
<postalCode>80202</postalCode>
<registrationDate>2011-10-10T15:02:45.168-04:00</registrationDate>
<iso3166-2>CO</iso3166-2>
</poc>


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


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.



More information about the arin-tech-discuss mailing list