A bash script that list all the domain names in a multi-domain server.
The script logs into the MDS domain and then calls the "show-domains" API.
It could make multiple calls to this API because each API call is limited in the number of domains it returns.
place the bash script on the multi-domain server and run it.
Provide credentials for an admin who is allowed to login to the MDS.
Code version 0.0.0
Tested on version
R80, API version 1.0
NOTICE: By using this sample code you agree to terms and conditions in this Terms and Conditions