API Commands
[All Commands]

List_Web_Hosting_Domains


List of domains hosted by a Web Hosting service.

Input:

string ssid token from Login
string webhosting Web Hosting code

Output:

string status ok | error
array domains list of hosted domains
string domain domain 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
int autosubdomains whether subdomains are generated automatically from directory structure
string ip_hosting Web Hosting IPv4 address
string ipv6_hosting Web Hosting IPv6 address
string ip_domain domain DNS IPv4 address
string ipv6_domain domain DNS IPv6 address
int dns_ok whether domain DNS configuration is correct (IP address matches the Web Hosting address)
int dns_allowed whether the DNS administration is available

Example:


<?php

$client 
= new SoapClient(null, [
    
'location' => 'https://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'
];

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

print_r($input);
print_r($output);
$input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [webhosting] => NGHTFH ) $output: Array ( [status] => ok [domains] => Array ( [0] => Array ( [domain] => domain.or.af [php_version] => 7.2 [ssl] => 1 [dir] => / [open_basedir] => / [autosubdomains] => 0 [ip_hosting] => 185.82.212.80 [ipv6_hosting] => 2a03:6920:0:cafe::add [ip_domain] => 185.82.212.80 [ipv6_domain] => [dns_ok] => 1 [dns_allowed] => 1 ) [1] => Array ( [domain] => domain2.or.af [php_version] => 5.6 [ssl] => 0 [dir] => /domain2 [open_basedir] => / [autosubdomains] => 1 [ip_hosting] => 185.82.212.80 [ipv6_hosting] => 2a03:6920:0:cafe::add [ip_domain] => 1.2.3.4 [ipv6_domain] => [dns_ok] => 0 [dns_allowed] => 1 ) ) )

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