API Commands
[All Commands]

Check_Host


Check delegated host object availability.

Input:

string ssid token from Login
int hostname address of host

Output:

string status ok | error
array data
int hostname address of host
int avail 0 - not available, 1 - available

Example:


<?php

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

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

print_r($input);
print_r($output);
$input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [hostname] => ns.exampledomain.com ) $output: Array ( [status] => ok [hostname] => ns.exampledomain.com [avail] => 1 )

API Manual - version from 2021-06-30 10:03:19