UAPI: Get docroot of domain from bash running as root
In terminal logged in as root, Is it possible to run something like
without the --user parameter. At that point of my script the user is unknown and the --user=root doesn't return any info because the domain is not owned by root. Otherwise is there any other API method to get the docroot of any domain or to get the owner account of the domain by knowing only the domain at that point?
#uapi --output=json DomainInfo single_domain_data domain=example.com
without the --user parameter. At that point of my script the user is unknown and the --user=root doesn't return any info because the domain is not owned by root. Otherwise is there any other API method to get the docroot of any domain or to get the owner account of the domain by knowing only the domain at that point?
-
Hello, Since you are logged in as root, you could use the following WHM API 1 function: WHM API 1 Functions - domainuserdata - Developer Documentation - cPanel Documentation EX: whmapi1 domainuserdata domain=example.com
Thank you.0 -
Resolved, thanks 0
Please sign in to leave a comment.
Comments
2 comments