In a multi-domain environment there is one API server.
Turning this server on/off is done on the MDS level.
When you login using mgmt_cli always provide the IP address of the MDS server and provide the domain name.
- mgmt_cli login user <my name> password <my password> domain <my domain name> -m <IP address or DNS name of the MDS>
- mgmt_cli add-host name <host name> ip-address <ip-address of the new host> -u <username> -p <password> -d <domain name> -m <IP address or DNS name of the MDS>
When using the login API without providing the domain name, you will be logged in to the MDS.
Similarly when making a web-service requests:
* The URL of the request should point to the MDS
* In the login API, provide the domain name as an argument.
"user" : "myuser",
"password" : "mypassword",
"domain" : "my domain name"