List all domain names (bash script)

Document created by Uri Bialik Expert on Dec 23, 2015
Version 1Show Document
  • View in full screen mode

Overview

A bash script that list all the domain names in a multi-domain server.

 

Description

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.

 

Instructions

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

...

1 person found this helpful

Attachments

Outcomes