Table of Contents
Function: listDomains
The listDomains function returns the list of domains that are currently assigned to a specified server.
Syntax
listDomains (email, password, server)
Parameters
- email (string) - Authenticating user's email address
- password (string) - Authenticating user's password
- server (string) - Server hostname to return attached domains for
Results
This function will return a string containing different results depending on if the call was successful or if an error was found.
Error Results
- 0 - Login failed: The email address/password combination was incorrect
- 1 - Access to Server Denied: The specified server hostname is not assigned to the authenticated account
Success Results
A sucessful call to this function will return a comma-separated list of the domains assigned to the specified server hostname. If no domains are assigned, the result will be blank.
![]() |
![]() |



Discussion