06-11-2018 12:17 AM
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
Solved! Go to Solution.
07-09-2018 12:45 PM
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
"
}
}'
07-09-2018 12:45 PM
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
"
}
}'
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