Account administration functions

getAccountInfo

Description:

Method returns information on the user's tariff plan, on some parameters of the server, where the user is currently located and on the applied limits thereof.

Call example:
https://api.beget.com/api/user/getAccountInfo?login=userlogin&
passwd=password&output_format=json
Response example:
 "plan_name": "Great",         // Tariff name
 "user_sites": 7,              // Actual website number
 "plan_site": 25,              // Maximum website number
 "user_domains": 4,            // Actual domain number
 "plan_domain": 2147483647,    // Maximim domain number
 "user_mysqlsize": 153,        // Actual MySQL DB size
 "plan_mysql": 2147483647,     // Maximum MySQL DB count
 "user_quota": 1283,           // Size of used disk quota
 "plan_quota": 10000,          // Maximum disk quota size
 "user_ftp": 6,                // Actual number of FTP accounts
 "plan_ftp": 25,               // Myximum number of FTP accounts
 "user_mail": 18,              // Actual mailbox number
 "plan_mail": 2147483647,      // Maximim mailbox number 
 "user_bash": "\/bin\/bash",   // Used bash                                    
 "user_rate_current": "12.66", // Current price of tariff plan per day
 "user_is_year_plan": "0",     // Is an annual discount being used
 "user_rate_year": 4620,       // Current tariff price per year
 "user_rate_month": 385,       // Current tariff price per month
 "user_balance": 1339.57,      // Current user balance
 "server_apache_version": " Apache\/2.2.23 (Unix)", // Apache version
 "server_mysql_version": "5.1.68",                  // MySQL version
 "server_nginx_version": "nginx\/1.1.0",            // Nginx version
 "server_perl_version": "v5.10.1",                  // Perl version
 "server_php_version": "5.2.17",                    // PHP version
 "server_python_version": "Python 2.6.6",           // Python version
 "server_name": "germes",          // Server name
 "server_cpu_name": "24 * Intel(R) Xeon(R) CPU X5660  @ 2.80GHz", // Processors
 "server_memory": "96747",         // RAM size (Mb)
 "server_memorycurrent": 4944,     // Size of used RAM
 "server_loadaverage": "4.05",     // Current Load Average
 "server_uptime": "18"             // Uptime

Some fields (e.g. plan_domain) can contain the value 2147483647 - this means there is no limit for this parameter.

toggleSsh

Description:

If there is no additional ftplogin parameter for the main account, the method enables and disables SSH for ftp account with ftplogin.

Additional parameters
  • status 1 - enable, 0 - disable;
  • ftplogin - ftp account login, if passed enables/disables SSH access to ftp account; if not passed, enables/disables SSH access to main user account;
Call example:
https://api.beget.com/api/user/toggleSsh?login=userlogin&passwd=password&
status=0&output_format=json

https://api.beget.com/api/user/toggleSsh?login=userlogin&passwd=password&
status=1&ftplogin=ftploginname&output_format=json
Response example:
"status": "success",
"answer": {
       "status": "success",
        "result": [
     ]
   }

Tags: