Create a Post
Showing results for 
Search instead for 
Did you mean: 

List all domain names (bash script)


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

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


0 Kudos
0 Replies