Forum Discussion
that is a REST interface for where you would choose which part of the AFM policy you would want to retrieve, where big-ip-hostname is your big-ip hostname or IP address.
Hello and once again, I appreciate your response to my question.
Are there any references for a detailed process on how to use the iControl REST API to retrieve the rules from AFM and format that data into a csv or excel file? I wish to perform or do the shared references.
Thank you so much.
- JRahmJul 18, 2022Admin
can you give me an idea of what rules you are wanting to retrieve? I'm not that familiar with AFM operationally, but if you can provide more details on what you are looking for, I might be able to work a sample up for you.
- lttarvinaJul 20, 2022Cirrus
Hi and thank you again for answering my query.
I used the wrong term ACL but what I mean is if there is any specific way or any web browser extension which will export the AFM security policy in excel file for security purpose?
- JRahmJul 21, 2022Admin
I am not aware of a browser extension to do that, but I was able to cook up some sample code for you using the iControl REST interface with python in this gist on GitHub. Creates an excel workbook with a worksheet for each policy and their associated rules. I hid a few of the columns that aren't important to the rules themselves. Feel free to expand/alter as needed. Screenshot: