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

Using ERS API to create dACL

orp
Level 1
Level 1

Hi,

In ISE 2.4 it seems that it's possible to create dACLs using ERS. I couldn't find documentation for actually setting the rules in the dACL, e.g. permitting traffic for specific IPs, permit/deny, etc.

Can it be done? If so, what's the json format for that? If not, what's the purpose of this API?

Thanks

1 Accepted Solution

Accepted Solutions

thomas
Cisco Employee
Cisco Employee

The ACL format would need to match the ACL format of the network device.

So assuming an IOS switch:

curl --include --header 'Content-Type:application/json' --header 'Accept: application/json' --user admin:C1sco12345 --request POST https://1.2.3.4:9060/ers/config/downloadableacl --data '

{

  "DownloadableAcl" : {

    "name" : "ALLOW_ALL",

    "description" : "Allow all.",

    "dacl" : "

remark Allow All

permit ip any any

"

  }

}'

View solution in original post

1 Reply 1

thomas
Cisco Employee
Cisco Employee

The ACL format would need to match the ACL format of the network device.

So assuming an IOS switch:

curl --include --header 'Content-Type:application/json' --header 'Accept: application/json' --user admin:C1sco12345 --request POST https://1.2.3.4:9060/ers/config/downloadableacl --data '

{

  "DownloadableAcl" : {

    "name" : "ALLOW_ALL",

    "description" : "Allow all.",

    "dacl" : "

remark Allow All

permit ip any any

"

  }

}'

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: