Currently, exporting Edge Firewall rules to CSV is not a native function within the Cloud Director UI. However, administrators can use the API to extract this information. This guide includes a script designed to query the Cloud Director API, retrieve rule sets in JSON, and convert them into a CSV format automatically.
Cloud Director 10.x
Python 3.x installed on the local machine.
Gateway UUID: The unique identifier of the target Edge Gateway.
Access Token: A valid Bearer Token from an active VCD session.
Ensure the Python requests library is installed:
pip install requests
EDGE Gateway UUID:
Navigate to the Edge Gateway in the VCD UI.
Extract the UUID from the URL
Bearer Token (one of the below):
Browser:
Log into the VCD UI.
Open Developer Tools (F12) > Network.
Locate the Authorization header in any request.
Copy the token string (excluding "Bearer ").
Edit the attached export_firewall.py.
Update BEARER_TOKEN AND VCD_HOST with in the script
Run the script: python3 export_firewall.py
Input the EDGE Gateway UUID when prompted.
The script will generate two files in the working directory named after the UUID:
<UUID>.csv: The formatted report.
<UUID>.json: The raw data dump.