domain_detail ()
Returns detailed info about selected domain.
HTTP Method: | GET | |
---|---|---|
Parameters: | sid | session id* |
domain_id | unique id of selected domain* | |
class | Define specific category of details. Available values are (main, ftp, mysql, mail). | |
Returns: | HTTP code | 200 (OK) |
domain | array with domain information. | |
ftp | array with ftp login information, php settings per subdomain. | |
mysql | array with list of databases and quota information. | |
array with mail settings, subdomains, limits and quota information. |
CURL
curl "https://admin.systems90.cz/api/domain_detail?sid=%sid%&domain_id=%domain_id%&class=%class%"
PHP Library
$api->domain_detail(array(
'domain_id' => %domain_id%,
'class' => %class%,
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
<domain>
<name>example.com</name>
<program>
<program_id>2</program_id>
<name>HOSTING90</name>
</program>
<cpu_usage>
<usage>0</usage>
<limit>249000</limit>
</cpu_usage>
<traffic>
<usage>0</usage>
<limit>3000</limit>
<time_to_reset />
<period>
<length>1</length>
<unit>D</unit>
</period>
</traffic>
<webmaster_email>info@example.com</webmaster_email>
</domain>
<ftp>
<main_ftp_name>mainftp77742</main_ftp_name>
<main_ftp_lock>0</main_ftp_lock>
<webserver>h90-w10</webserver>
<max_subdomains>999</max_subdomains>
<quota>
<usage>0</usage>
<limit>2000 MB</limit>
</quota>
<subdomains>
<subdomain>
<subdomain_id>140190</subdomain_id>
<name />
<ftp_name />
<ftp_lock>0</ftp_lock>
<redirect />
<htaccess>0</htaccess>
<php_register_globals>0</php_register_globals>
<php_session_auto_start>0</php_session_auto_start>
<php_display_errors>1</php_display_errors>
</subdomain>
<subdomain>
<subdomain_id>161120</subdomain_id>
<name>a</name>
<ftp_name />
<ftp_lock>0</ftp_lock>
<redirect />
<htaccess>0</htaccess>
<php_register_globals>0</php_register_globals>
<php_session_auto_start>0</php_session_auto_start>
<php_display_errors>0</php_display_errors>
</subdomain>
<subdomain>
<subdomain_id>148584</subdomain_id>
<name>subdomain1</name>
<ftp_name>ftp148584</ftp_name>
<ftp_lock>0</ftp_lock>
<redirect />
<htaccess>0</htaccess>
<php_register_globals>0</php_register_globals>
<php_session_auto_start>0</php_session_auto_start>
<php_display_errors>1</php_display_errors>
</subdomain>
<subdomain>
<subdomain_id>148587</subdomain_id>
<name>subdomain2</name>
<ftp_name />
<ftp_lock>0</ftp_lock>
<redirect>http://example.com</redirect>
<htaccess>0</htaccess>
<php_register_globals>0</php_register_globals>
<php_session_auto_start>0</php_session_auto_start>
<php_display_errors>0</php_display_errors>
</subdomain>
</subdomains>
</ftp>
<mysql>
<mysql_name>mysql77737</mysql_name>
<max_db>2</max_db>
<quota>
<limit>500 MB</limit>
</quota>
<databases>
<database>
<database_id>90402</database_id>
<name>mysql90402</name>
<version>MariaDB 5.5</version>
<mysql_server>h90-mysql1</mysql_server>
<note>domain note</note>
<quota>
<usage>0</usage>
<limit>250</limit>
</quota>
</database>
<database>
<database_id>90405</database_id>
<name>mysql90405</name>
<version>MariaDB 5.5</version>
<mysql_server>h90-mysql1</mysql_server>
<note />
<quota>
<usage>0</usage>
<limit>250</limit>
</quota>
</database>
</databases>
</mysql>
<mail>
<mail_server>h90-m2</mail_server>
<max_emails>999</max_emails>
<max_email_subdomains>1</max_email_subdomains>
<mail_trash>0</mail_trash>
<quota>
<limit>2500 MB</limit>
</quota>
<subdomains>
<subdomain>
<subdomain_id>46227</subdomain_id>
<name />
<trash />
<smtp_route />
<emails>
<email>
<name>name</name>
<full_email>info@example.com</full_email>
<type>mailbox</type>
<redirect />
<quota>
<usage>0</usage>
<limit>2500</limit>
</quota>
</email>
</emails>
</subdomain>
</subdomains>
</mail>
</reply>