API call for listing all subdomain document roots for all users

Version 1.62.8


Already existing `CMD_API_DOMAIN` command was extended to have a new action `document_root_all` to list all web-server document root for all users. An API call to `.../CMD_API_DOMAIN?json=yes&action=document_root_all` would return the same data as a CLI command `directadmin --DocumentRoot` executed by root account would do. This new action is available for admin accounts only. All integrations relying on `directadmin --DocumentRoot` is encouraged to switch to using the new API call. CLI argument will be deprecated and removed in the future.

Interested to try DirectAdmin? Get a 30-day Free Trial!