API Commands
[All Commands]

Info_Web_Hosting_Domain


Retrieve configuration 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
string domain hosted 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' => 'http://regtons.com/soap/cmd.php',
    
'uri' => 'http://regtons.com/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('Info_Web_Hosting_Domain', ['data' => $input]);

print_r($input);
print_r($output);
$input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [webhosting] => NGHTFH [domain] => domain.or.af ) $output: Array ( [status] => ok [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 )

API Manual - version from 2020-10-08 23:58:51