Scripting inside cpanel/whm
Hello I have started working for a company that manages IT for many different companies, some of which use cpanel for their email hosting. I would like to know if there is anyway I can use scripting or SSH shell scripts to output the quotas of peoples disk usage and these type of things.
I would also like to be able to increase these quotas using a script as well as it is currently time consuming to manually go through every account and every email address attached to those accounts and change all of them by hand.
Any help would be great and sorry for the lack of structure to my question I have never posted on this site before.
Thanks!
Anthony
-
Hello, Yes, there are several UAPI functions available for use over the command line. Here's a few links to our documentation that should help you get started: Guide to UAPI - Software Development Kit - cPanel Documentation UAPI Functions - Email::edit_pop_quota - Software Development Kit - cPanel Documentation UAPI Functions - Email::get_disk_usage - Software Development Kit - cPanel Documentation UAPI Functions - Email::get_main_account_disk_usage - Software Development Kit - cPanel Documentation UAPI Functions - Email::get_pop_quota - Software Development Kit - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
1 comment