[arin-tech-discuss] Error about the deleting poc

Zhao, Sean Sean.Zhao at CenturyLink.com
Tue Jun 4 10:27:37 EDT 2013


Thanks for your response, Jon,
        As I remember David Huberman said, only AD is a mandatory poc for an org. But I can be wrong. I understand David left. Would you please double check for us to make sure if all 3 fields are required or just 1 ad field is required because that will be very important for our project?

        You said "pocFunction" and "type". That is what I am confused about. I re-download the pdf file. Yes, you are right. Your new doc has pocFunction= instead type=. But after I changed type to pocFunction. I got new error return. Do you know what it means? Looks like internal debug message to me.


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error xmlns="http://www.arin.net/regrws/core/v1">
        <additionalInfo>
                <message>No enum const class net.arin.regcore.api.payload.PocLinkPayload$Function.ABUSE</message>
        </additionalInfo>
        <code>E_BAD_REQUEST</code>
        <components/>
        <message>Unable to extract parameter from http request: javax.ws.rs.MatrixParam("pocFunction")
                value is 'ABUSE' for public abstract net.arin.regcore.api.payload.OrgPayload
                net.arin.regcore.api.service.OrgService.removePoc(java.lang.String,java.lang.String,
                net.arin.regcore.api.payload.PocLinkPayload$Function,java.lang.String)
        </message>
</error>



Thanks,

Sean Zhao
Sean.Zhao at CenturyLink.com

-----Original Message-----
From: Jon Worley [mailto:jonw at arin.net]
Sent: Monday, June 03, 2013 5:19 PM
To: Zhao, Sean; Andy Newton; 'arin-tech-discuss at arin.net'
Cc: Grimes, Ronald; Kulp, Robert; Mazzella, John
Subject: Re: [arin-tech-discuss] Error about the deleting poc

Hello Sean,

It appears to me you're attempting to remove the only abuse contact from the Org ID.  Each Org ID must have at least one admin, tech, and abuse contact (that's a business rule).  You'd have to add another handle as the abuse POC before you could remove ZHAOS-ARIN as the abuse POC.

I also note that according to the documentation I'm looking at, the syntax uses "pocFunction=", not "type=":

/rest/org/ORGHANDLE/poc/POCHANDLE;pocFunction=POCFUNCTION?apikey=APIKEY


It would appear the correct URL would be:

/rest/org/AEI-18/poc/ZHAOS-ARIN;pocFunction=ABUSE?apikey=APIKEY


I'm just diving back into debugging REST calls after some months off, though, so I need to look into it more thoroughly to make sure.  Perhaps type= works as well, even though the documentation specifies pocFunction=.
 I'll have to look into it to make sure.

I suspect if you first add another abuse contact, then remove ZHAOS-ARIN as the abuse contact (and perhaps adjust to use pocFunction= in the URL rather than type=), it will work.  The error message *sounds* like it's saying you aren't authorized to do what you're requesting, but I think it may actually be indicative that you simply aren't allowed to do what you're asking because it breaks a business rule.

I'd try first adding a new handle as abuse, then removing, and see if that works for you.  I will try to further debug the error tomorrow to verify whether or not that's causing the error you're seeing.

If you have any further questions, comments, or concerns please respond to this message or contact me directly.

Regards,

Jon Worley
Senior Resource Analyst
ARIN Registration Services
https://www.arin.net/
hostmaster at arin.net
703.227.0660


From:  <Zhao>, Sean <Sean.Zhao at CenturyLink.com>
Date:  Monday, June 3, 2013 4:06 PM
To:  "Zhao, Sean" <Sean.Zhao at CenturyLink.com>, Andy Newton <andy at arin.net>, "'arin-tech-discuss at arin.net'"
<arin-tech-discuss at arin.net>
Cc:  "Grimes, Ronald" <Ron.Grimes at CenturyLink.com>, "Kulp,      Robert"
<Robert.Kulp at CenturyLink.com>, "Mazzella,       John"
<John.Mazzella at CenturyLink.com>
Subject:  Re: [arin-tech-discuss] Error about the deleting poc


Hi, Andy,
Looks like I still have the problem here.

1.
 I have linked poc ZHAOS-ARIN under my SeanZhao account.

Qwest IP Admin
ZHAOS-ARIN <https://www.arin.net/public/secure/poc/view/ZHAOS-ARIN>
 Validate Me!
ZHAO SEAN

2.
I am trying to unlink my poc, ZHAOS-ARIN, to an org handle, AEI-18. I am calling

https://www.arin.net/rest/org/AEI-18/poc/ZHAOS-ARIN;type=ABUSE?apikey=my
<https://www.arin.net/rest/org/AEI-18/poc/ZHAOS-ARIN;type=ABUSE?apikey=my>S
eanZhao-API-KEY.  I failed.

I keep getting


<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error xmlns="http://www.arin.net/regrws/core/v1"><additionalInfo/><code>E_AUTHENT
ICATION</code><components/><message>The
 API key specified was missing or invalid.</message></error>

Please note, AEI-18 was created by my Qwest api-key.

Is that the reason I got failed because they don¹t share the same api-key?
If it is, which api-key I am supposed to use? Actually, I got failed by both api-keys

Thanks,

Sean Zhao
Sean.Zhao at CenturyLink.com


From: Zhao, Sean

Sent: Friday, May 31, 2013 4:37 PM
To: Zhao, Sean; 'Andy Newton'; 'arin-tech-discuss at arin.net'
Cc: Grimes, Ronald; Kulp, Robert
Subject: RE: [arin-tech-discuss] Error about the deleting poc



Is the url like
https://reg.arin.net/rest/poc/AEI-18?apikey=SeanZhaoApiKey
<https://reg.arin.net/rest/poc/AEI-18?apikey=SeanZhaoApiKey> ? and payload is null?

Thanks,

Sean Zhao
Sean.Zhao at CenturyLink.com


From: Zhao, Sean

Sent: Friday, May 31, 2013 4:25 PM
To: 'Andy Newton'; 'arin-tech-discuss at arin.net'
Cc: Grimes, Ronald; Kulp, Robert
Subject: RE: [arin-tech-discuss] Error about the deleting poc



Andy,
                I have learned new thing. Great! I had my Arin Online Account, which is SeanZhao. And I linked ZHAOS-ARIN with my ŒSeanZhao¹ account manually. Now I have a following question. Can I make this  link action by program? What I am asking is, do you have RESTful server that I can link my account to my POC, just like link an OrgHandle to a PocHandle?  I am asking url and payload for link a poc to my Arin Online Account?
                The reason I am asking is my clients call my webservice.
And my webservices call your RESTful to create a PocHandle. All these processes run by computer. Also I have to give my clients an ability  to delete the POC they created. So I have to link the poc they created to an Arin Online Account by computer too, so they can delete anytime they want to


Thanks,

Sean Zhao
Sean.Zhao at CenturyLink.com


From: Andy Newton [mailto:andy at arin.net]

Sent: Friday, May 31, 2013 3:25 PM
To: Zhao, Sean; 'arin-tech-discuss at arin.net'
Cc: Grimes, Ronald; Kulp, Robert
Subject: Re: [arin-tech-discuss] Error about the deleting poc



Sean,



An ARIN Online account is different than an Organization record. ARIN Online accounts are setup through the web site only (www.arin.net <http://www.arin.net>), and API Keys are associated  to ARIN Online accounts. Additionally, ARIN Online accounts are not published in Whois.



The following link describes the process of creating an account and linking it to a POC:

https://www.arin.net/resources/restful-interfaces.html#before



Andy Newton,

Chief Engineer, ARIN



From: <Zhao>, Sean <Sean.Zhao at CenturyLink.com>
Date: Friday, May 31, 2013 1:10 PM
To: Andrew Newton <andy at arin.net>, "arin-tech-discuss at arin.net"
<arin-tech-discuss at arin.net>
Cc: "Grimes, Ronald" <Ron.Grimes at CenturyLink.com>, "Kulp, Robert"
<Robert.Kulp at CenturyLink.com>
Subject: RE: [arin-tech-discuss] Error about the deleting poc



>Hi, Andy,
>Thanks for the quick response!
>
>I thought it was link to AEI-18
>(http://whois.arin.net/rest/org/AEI-18/pocs). Maybe I am
>misunderstanding your ³ARIN Online account².
>
>
>Thanks,
>
>Sean Zhao
>Sean.Zhao at CenturyLink.com
>
>
>From: Andy Newton [mailto:andy at arin.net]
>
>Sent: Friday, May 31, 2013 12:54 PM
>To: Zhao, Sean; 'arin-tech-discuss at arin.net'
>Cc: Grimes, Ronald; Kulp, Robert
>Subject: Re: [arin-tech-discuss] Error about the deleting poc
>
>
>
>Sean,
>
>
>
>ZHAOS-ARIN is not linked to any ARIN Online account, and therefore
>there are no API Keys with authority to delete it. If you link that POC
>to your ARIN Online account, you'll be able to delete  the POC with an
>API Key on that account.
>
>
>
>I hope this helps.
>
>
>
>Andy Newton,
>
>Chief Engineer, ARIN
>
>
>
>From: <Zhao>, Sean <Sean.Zhao at CenturyLink.com>
>Date: Friday, May 31, 2013 10:42 AM
>To: "arin-tech-discuss at arin.net" <arin-tech-discuss at arin.net>
>Cc: "Grimes, Ronald" <Ron.Grimes at CenturyLink.com>, "Kulp, Robert"
><Robert.Kulp at CenturyLink.com>
>Subject: [arin-tech-discuss] Error about the deleting poc
>
>
>
>>Hi,
>>                I am trying to delete a poc that I created in 2011
>>with the url
>>https://www.arin.net/rest/poc/ZHAOS-ARIN?apikey=MY-API-KEY. But I got
>>an error says
>>
>><?xml version="1.0" encoding="UTF-8" standalone="yes"?> <error
>>xmlns="http://www.arin.net/regrws/core/v1"
>><http://www.arin.net/regrws/core/v1%22>>
>><additionalInfo/>
>><code>E_AUTHENTICATION</code>
>><components/>
>><message>The API key is not authorized to make that request.</message>
>></error>
>>
>>Does that mean I cannot delete the poc even it is created by myself
>>with same apikey? Or I have to unlink all the org associated with this
>>poc before I delete this poc?
>>
>>Thanks,
>>
>>Sean Zhao
>>Sean.Zhao at CenturyLink.com
>>
>>
>>
>
>
>
>
>
>







More information about the arin-tech-discuss mailing list