Forum Discussion
ASM - Adding Allowed URL's via CLI
Hi Team,
I have been working with ASM for the last 5 years and I very rarely come across application team with a complete list of URL's which have been been in their application. To my luck this time they have one and that to of 16 pages :(
Adding them via GUI would be real pain..... So i was wondering is there a way in which I can import or copy paste them via CLI. I mean a faster way of adding the list of Allowed URL's ........ Any one working suggestion would help me a great deal.
- R_MarcNimbostratus
There is no way, presently, to do that sorta thing via the CLI (I've been griping about this for several years).
There is probably a a way to do it via the mysql db. You'd likely have to do some reverse engineering and experimenting to get a working and repeatable method. F5 support would likely have a brain hemorrhage if you mentioned this on a support call as well, so I would keep it on the down low if you went down that path.
- ShirazAltostratus
Dears,
Did someone came with any easy solution to add a list of Allowed URLs. I mean adding a huge list of Allowed URLs which is going to take a huge time via GUI..
So, looking for some easier solution ..
Regards,
Mohammed Shiraz
- Abdessamad1Cirrostratus
Dear,
I advise looking into the REST API option. You can write a python script that can go over you 16 pages file and add every URL to the policy.
https://devcentral.f5.com/articles/icontrol-rest-101-asm-intro
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com