API Commands
[All Commands]

Info_Web_Hosting


Information about an active Web Hosting.

Input:

string ssid token from Login
string webhosting Web Hosting code

Output:

string status ok | error
string webhosting Web Hosting code
string expire expiration date
int period renewal period in months
array domains list of hosted domains
string plan plan ID
string name plan name
string type type of plan (normal or reseller)
int max_domains maximum number of hosted domains
int capacity_mb maximum storage capacity
int avail_web whether website hosting is available
int avail_mysql whether MySQL database is available
int avail_email whether email service is available
array php_versions list of available PHP versions

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'
];

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

print_r($input);
print_r($output);
$input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [webhosting] => NGHTFH ) $output: Array ( [status] => ok [webhosting] => NGHTFH [expire] => 2019-02-02 [period] => 6 [domains] => Array ( [0] => domain.or.af [1] => domain2.or.af ) [plan] => 6 [name] => Basic [type] => normal [max_domains] => 1 [capacity_mb] => 10000 [avail_web] => 1 [avail_mysql] => 1 [avail_email] => 1 [php_versions] => Array ( [0] => 5.3 [1] => 5.4 [2] => 5.5 [3] => 5.6 [4] => 7.0 [5] => 7.1 [6] => 7.2 ) )

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