API Commands
[All Commands]

List_Web_Hosting_Subdomains


List of subdomains of a hosted domain.

Input:

string ssid token from Login
string webhosting Web Hosting code
string domain hosted domain name

Output:

string status ok | error
array subdomains list of subdomains
string subdomain subdomain name
string php_version PHP version
int ssl whether SSL (HTTPS) is active
string dir FTP root directory
string open_basedir PHP open_basedir directive
string subdomain_part name of the subdomain without the domain part

Example:


<?php

$client 
= new SoapClient(null, [
    
'location' => 'http://subreg.cz/soap/cmd.php',
    
'uri' => 'http://subreg.cz/soap'
]);

$login_input = [
    
'login' => 'demo',
    
'password' => 'demouser'
];

$login_output $client->__call('Login', ['data' => $login_input]);

$input = [
    
'ssid' => $login_output['data']['ssid'],
    
'webhosting' => 'NGHTFH',
    
'domain' => 'domain.or.af'
];

$output $client->__call('List_Web_Hosting_Subdomains', ['data' => $input]);

print_r($input);
print_r($output);
$input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [webhosting] => NGHTFH [domain] => domain.or.af ) $output: Array ( [status] => ok [subdomains] => Array ( [0] => Array ( [subdomain] => acc.domain.or.af [php_version] => 7.2 [ssl] => 1 [dir] => /domain.or.af/acc [open_basedir] => / [subdomain_part] => acc ) [1] => Array ( [subdomain] => web.domain.or.af [php_version] => 5.6 [ssl] => 0 [dir] => /domain.or.af [open_basedir] => / [subdomain_part] => web ) ) )

API Manual - version from 2023-05-12 12:15:50