API Commands
[All Commands]

Command: Anycast_List_Domains



command Anycast_List_Domains

Get list of domains and statistics for Anycast server.

Input Parameters ($data):

string ssid Token from Login
string ip IPv4 or IPv6 address of the Anycast server

Output Responses:

string status ok | error
array data Details about your request
 
array domains List of domains
string domain Domain
int day Requests per day
int month Requests per month

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'ip' => '1.2.3.4',
  ),
);

$response $client->__call("Anycast_List_Domains",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [ip] => 1.2.3.4 ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [domains] => Array ( [0] => Array ( [domain] => domain123.com [day] => 45 [month] => 1023 ) [1] => Array ( [domain] => domainxyz.com [day] => 15 [month] => 314 ) ) ) )

API Manual - version from 2019-07-31 15:54:31