For migration purposes I needed to read all the firewall and NAT rules contained in a vCloud Director Edge Gateway. I created this PowerShell script to read all the info using the vCloud Director API since most examples I found searching through Google, only returned older scripts that would no longer run.
This script has been tested against vCloud Director 10.3.
User ID is in the format of “user@org”. If you’re the cloud admin, use “admin@system” or “administrator@system”.
The vCloud Director URL, usually is https://fqdn/api”
The script can be found on my GitHub.