I have few questions about API and ISPC3.2 data retrieved by the API. 1. How often counters updated? I mean quota / file counters. Can it be altered? 2. Is it possible to connect any custom script to the API? Some sort of a hook. I need information which currently I receive in 5 different API calls. I would like to receive it in 1 call. For example: get_user_stats -- all stats by owned user service (website, DNS, mail, etc). 3. When setting up (S)FTP, Jailed SSH, database - I'am asked about "Quota" on any of these instances. Does this quota is separate from overall package quota? I mean API call 'quota_get_by_user' returns: Is this applies also for DB, FTP and jSSH or each account has it's own quota parameters? 4. Does the API capabilities reflect 100% what user can do via ISPC GUI? 5. API call 'sites_database_get_all_by_user' returns DB password. How it is stored? It is MD5?
Take a look at the code of the crown pligins, they contain the schedule at the beginning. /usr/local/ispconfig/server/lib/classes/cron.d/ You can write your own API functions by adding your own class in /usr/local/ispconfig/interface/lib/classes/remote.d/ Website quota limits the other quotas as FTP and SSH users are part of the website, so you leave these equotas at -1 typically. Database quota is a separate quota. Probably most functions are available trough API, but not all. MySQL and MariaDB do not use or support md5 passwords, they have their own password hashing algorithm implemented using password() SQL command.
Thank you for clarification. Few more questions: 1. How may I get current PHP version of the website via API. I get PHP handler, but not selected PHP version; 2. Is it possible to generate phpMyAdmin SSO link via API?
#1 I have resolved. Very convoluted way to retrieve simple info, but I have done it... #2 remains an issue.
The link in ISPConfig GUI is based on the settings under System > interface > main config, it can not be set via API.