FMC – Export of access policies to CSV via API
Part (2/2)
Introduction
APIs (Application Programming Interfaces) are a key tool for interacting programmatically with applications and services. In the case of Cisco Firepower Management Center (FMC), its REST API allows automating and customizing administration and security tasks more efficiently than through the graphical interface. In this case we use the FMC to export access policies to CSV via API.
Using the FMC API offers several advantages:
- Automation: Reduces time and errors associated with repetitive tasks.
- Access to real-time data: Provides up-to-date information for informed decisions.
- Integration: Facilitates connection with tools such as SIEM, SOAR or custom scripts.
- Customized reports: Allows exporting accurate data in formats such as CSV for detailed analysis.
- Scalability: Efficiently manage complex environments with multiple devices and policies.
- Dynamic Adaptation: Rapidly implement changes in evolving networks and configurations.
In this series we will explain the key points on how to use Python to extract an access policy and export it into a CSV file.
Prerequisites
- Necessary tools:
- Python >= 3.7.x
- fireRest library to perform CRUD operations
- Reference: https://github.com/kaisero/fireREST
- Access to the FMC:
- User credentials with appropriate permissions.
- FMC API URL.
- Previous knowledge:
- Basic familiarity with Python.
- Understanding the structure of the FMC REST API.
Explanatory Video
-
Python file

