cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
923
Views
5
Helpful
5
Replies

Rest API ANC Policy Apply (ISE 2.4 Patch 8)

 

Hi guys!! 

 

I'm testing with Rest API (Postman) how to apply an ANC Policy to a device, and I receive the error you can see in the image. Can you help me about which is the problem please?

 

<message type="ERROR" code="Application resource validation exception">
<title>Validation Error - Mandatory fields missing: [policyName, action: Empty list]</title>

 

Error_AncPolicy.jpg

 

Thanks in advance!!

 

1 Accepted Solution

Accepted Solutions

Anurag Sharma
Cisco Employee
Cisco Employee

Hi @Marcos Rodriguez ,

 

I think the API query should be https://ersadmin:ersadmin@10.106.79.101:9060/ers/config/ancendpoint/apply

 

Please make sure you have the policy ANC_QUARANTINE configured on ISE.

 

Hope that helps!
Please 'RATE' and 'MARK ACCEPTED', if applicable.

View solution in original post

5 Replies 5

Anurag Sharma
Cisco Employee
Cisco Employee

Hi @Marcos Rodriguez ,

 

I think the API query should be https://ersadmin:ersadmin@10.106.79.101:9060/ers/config/ancendpoint/apply

 

Please make sure you have the policy ANC_QUARANTINE configured on ISE.

 

Hope that helps!
Please 'RATE' and 'MARK ACCEPTED', if applicable.

Hi Anurag Sharma,

Thanks for your reply, authentication works fine, so I can GET/DELETE/PUT other REST API configurations... the problem is when I try to apply an ANC policy to a device mac address... I receive the error I showed... "Validation Error - Mandatory fields missing: [policyName, action: Empty list]"... But all info is the the body correctly formated...

 

About policy, as you can see, it's created:

 

ANC_POLICY.JPG

Do you have any idea?

 

Many Thanks!!

Please refer to the API query difference in mine and yours.
I don't think you are using the correct query. Please check my last post and the query you used in your first screenshot.
Authentication was never the problem here.
Hope that helps!
Please 'RATE' and 'MARK ACCEPTED', if applicable.

Thanks so much Anurag Sharma, it works. I don't see correctly your URL
Many thanks!!

You're welcome :)
I am glad i could help you out.
Hope that helps!
Please 'RATE' and 'MARK ACCEPTED', if applicable.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: