09-01-2016 01:42 PM
Hello community,
I am testing out ISE 2.1 REST API.
I managed to create a new ANC policy and want to apply it to an endpoint.
When I PUT https://IP:9060/ers/config/ancendpoint/apply
I receive 400 bad request:
<message type="ERROR" code="Application resource validation exception">
<title>No additional attribute has been defined</title>
Do you have an example of how to deploy a quarantine ANC policy for a specific IP via REST?
Thank you,
Cristian
PS: I want to do this without pxgrid.
Solved! Go to Solution.
09-15-2016 02:29 PM
Hey Cristian,
Just to close the loop on this thread, i emailed you a screenshot using POSTMAN of assigning the endpoint to an ANC policy. If you have additiona questions, email me directly.
Thanks,
John
09-02-2016 04:47 AM
Cristian,
I was able to find this, albeit from ISE 1.3, but I have not been able to find anything newer.
According to the chart, what you are looking to do is only available through pxGrid.
If there are any updates to this chart, I hope it is posted.
It's at the bottom of this document:
ISE Version 1.3 pxGrid Integration with IPS pxLog Application - Cisco
Charles Moreton
09-02-2016 07:38 AM
Hello Charles,
Thank you for your time on this.
As per ISE2.1 API documentation[1], operations like applying a policy to a mac address are developed. Also the /ers/sdk page on ISE2.1 documents apply operation, but without details. I cannot figure it out how a successful PUT looks in this case, i am not sure what OperationAdditionalData means.
Operation | HTTP Method | URL |
https://<hostname>:9060/ers/config/ancendpoint | ||
https://<hostname>:9060/ers/config/ancendpoint/{id} | ||
https://<hostname>:9060/ers/config/ancendpoint | ||
https://<hostname>:9060/ers/config/ancendpoint | ||
https://<hostname>:9060/ers/config/ancendpoint | ||
https://<hostname>:9060/ers/config/ancendpoint | ||
https://<hostname>:9060/ers/config/ancendpoint | ||
https://<hostname>:9060/ers/config/ancendpoint |
Is there any chance to find the answer for this?
tha
09-02-2016 10:37 AM
Hey Christian,
Are you using POSTMAN for issuing the REST API requests? You need to fill in the HTTP "Accept" header and HTTP "Content-Type" header information. You can see the values in ISE via https://{ip adderess:9060/ers/sdk.
Thanks,
John
09-02-2016 12:16 PM
Hello John,
I am so happy for the prompt answers, thank you!
Yes I am also using Postman for this and I send the Content-type and Accept header as specified in sdk page.
I am not sure how the body should be:
I have successfully POSTed ancpolicies. results are appearing in real time on ISE, but with ancendpoints POST method is not implemented, and i am a little bit confused of how can i update(PUT) an ancendpoint if no ancendpoint exists.
Thanks for your involvement,
Cristian
09-02-2016 02:23 PM
Hey Christian,
You would either have to create an endpoint or use an existing endpoint. Let me work up some examples and email them out to you.
Thanks,
John
09-08-2016 12:06 AM
Hello John,
Thank you very much!
Have you had the time to test it out?
Best regards,
Cristian
09-08-2016 07:19 AM
09-11-2016 11:04 PM
Thank you John,
Any news?
Sorry for keep asking,
Cristian
09-14-2016 04:02 PM
Here's one example
09-14-2016 11:43 PM
Hello imbashir,
Have you tried this with postman ?
Thanks,
Cristian
09-15-2016 07:13 AM
Hey Cristian,
I will work on this today and directly email you the procedure using POSTMAN.
Thanks
John
09-15-2016 02:29 PM
Hey Cristian,
Just to close the loop on this thread, i emailed you a screenshot using POSTMAN of assigning the endpoint to an ANC policy. If you have additiona questions, email me directly.
Thanks,
John
11-10-2016 10:51 AM
problem solved, thanks John
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide