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: Error about the deleting poc (Jon Worley)
2. Re: Error about the deleting poc (Zhao, Sean)
3. Error in documentation (Brian Rak)
----------------------------------------------------------------------
Message: 1
Date: Mon, 3 Jun 2013 21:19:29 +0000
From: Jon Worley <[email protected]>
To: "Zhao, Sean" <[email protected]>, Andy Newton
<[email protected]>, "'[email protected]'"
<[email protected]>
Cc: "Grimes, Ronald" <[email protected]>, "Kulp, Robert"
<[email protected]>, "Mazzella, John"
<[email protected]>
Subject: Re: [arin-tech-discuss] Error about the deleting poc
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="Windows-1252"
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/
[email protected]
703.227.0660
From: <Zhao>, Sean <[email protected]>
Date: Monday, June 3, 2013 4:06 PM
To: "Zhao, Sean" <[email protected]>, Andy Newton
<[email protected]>, "'[email protected]'"
<[email protected]>
Cc: "Grimes, Ronald" <[email protected]>, "Kulp, Robert"
<[email protected]>, "Mazzella, John"
<[email protected]>
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
[email protected]
From: Zhao, Sean
Sent: Friday, May 31, 2013 4:37 PM
To: Zhao, Sean; 'Andy Newton'; '[email protected]'
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
[email protected]
From: Zhao, Sean
Sent: Friday, May 31, 2013 4:25 PM
To: 'Andy Newton'; '[email protected]'
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
[email protected]
From: Andy Newton [mailto:[email protected]]
Sent: Friday, May 31, 2013 3:25 PM
To: Zhao, Sean; '[email protected]'
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 <[email protected]>
Date: Friday, May 31, 2013 1:10 PM
To: Andrew Newton <[email protected]>, "[email protected]"
<[email protected]>
Cc: "Grimes, Ronald" <[email protected]>, "Kulp, Robert"
<[email protected]>
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
>[email protected]
>
>
>From: Andy Newton [mailto:[email protected]]
>
>Sent: Friday, May 31, 2013 12:54 PM
>To: Zhao, Sean; '[email protected]'
>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 <[email protected]>
>Date: Friday, May 31, 2013 10:42 AM
>To: "[email protected]" <[email protected]>
>Cc: "Grimes, Ronald" <[email protected]>, "Kulp, Robert"
><[email protected]>
>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
>>[email protected]
>>
>>
>>
>
>
>
>
>
>
------------------------------
Message: 2
Date: Tue, 4 Jun 2013 14:27:37 +0000
From: "Zhao, Sean" <[email protected]>
To: "'Jon Worley'" <[email protected]>, "'Andy Newton'" <[email protected]>,
"'[email protected]'" <[email protected]>
Cc: "Grimes, Ronald" <[email protected]>, "Kulp, Robert"
<[email protected]>, "Mazzella, John"
<[email protected]>
Subject: Re: [arin-tech-discuss] Error about the deleting poc
Message-ID:
<c4d5f96b55be8b43ab4bbb7eacb706ed3827e...@pddcwmbxex504.ctl.intranet>
Content-Type: text/plain; charset="windows-1256"
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
[email protected]
-----Original Message-----
From: Jon Worley [mailto:[email protected]]
Sent: Monday, June 03, 2013 5:19 PM
To: Zhao, Sean; Andy Newton; '[email protected]'
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/
[email protected]
703.227.0660
From: <Zhao>, Sean <[email protected]>
Date: Monday, June 3, 2013 4:06 PM
To: "Zhao, Sean" <[email protected]>, Andy Newton <[email protected]>,
"'[email protected]'"
<[email protected]>
Cc: "Grimes, Ronald" <[email protected]>, "Kulp, Robert"
<[email protected]>, "Mazzella, John"
<[email protected]>
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
[email protected]
From: Zhao, Sean
Sent: Friday, May 31, 2013 4:37 PM
To: Zhao, Sean; 'Andy Newton'; '[email protected]'
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
[email protected]
From: Zhao, Sean
Sent: Friday, May 31, 2013 4:25 PM
To: 'Andy Newton'; '[email protected]'
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
[email protected]
From: Andy Newton [mailto:[email protected]]
Sent: Friday, May 31, 2013 3:25 PM
To: Zhao, Sean; '[email protected]'
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 <[email protected]>
Date: Friday, May 31, 2013 1:10 PM
To: Andrew Newton <[email protected]>, "[email protected]"
<[email protected]>
Cc: "Grimes, Ronald" <[email protected]>, "Kulp, Robert"
<[email protected]>
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
>[email protected]
>
>
>From: Andy Newton [mailto:[email protected]]
>
>Sent: Friday, May 31, 2013 12:54 PM
>To: Zhao, Sean; '[email protected]'
>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 <[email protected]>
>Date: Friday, May 31, 2013 10:42 AM
>To: "[email protected]" <[email protected]>
>Cc: "Grimes, Ronald" <[email protected]>, "Kulp, Robert"
><[email protected]>
>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
>>[email protected]
>>
>>
>>
>
>
>
>
>
>
------------------------------
Message: 3
Date: Tue, 04 Jun 2013 11:30:48 -0400
From: Brian Rak <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [arin-tech-discuss] Error in documentation
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
It's very minor but on
https://www.arin.net/resources/restfulpayloads.html#poclink
The Payload/Example Payload are not valid XML. They have commas after
the description and handle fields
<https://www.arin.net/resources/restfulpayloads.html#poclink>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.arin.net/pipermail/arin-tech-discuss/attachments/20130604/a5436896/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 29, Issue 4
************************************************