Full details and the script can be found on Github by clicking here.
Once upon a time, I was trying to automate some aspects of DR at my VCSP while waiting for our dev team to add the functionality to our web portal. In those trying times, I came up with the script linked above to create an organization, virtual data center, edge gateway, and networks in VMware Cloud Director.
This script doesn’t see use any more at my company, but hopefully it can help someone else.