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

Zhao, Sean Sean.Zhao at CenturyLink.com
Tue Oct 11 10:18:38 EDT 2011


Sorry I posted a wrong payload. It should be Org, not Poc.

Here is the correct one

<?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>

Thanks,

Sean Zhao
Sean.Zhao at CenturyLink.com

Thanks,

Sean Zhao
Sean.Zhao at CenturyLink.com


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

[Headers trimmed]

Sean Zhao, can you please re-post your question with the ORG payloads?  If
I understood your question, then you pasted the wrong payloads (POC
payloads).

Thanks!

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