API Commands
[All Commands]

Command: Add_DNS_Zone



command Add_DNS_Zone

Add domain to DNS using previously created template.

Input Parameters ($data):

string ssid Token from Login
string domain Registered domain
string template DNS template ID

Output Responses:

string status ok | error

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,
    
'domain' => '001domena.cz',
    
'template' => 'MYDNSTEMPLATE',
  ),
);

$response $client->__call("Add_DNS_Zone",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => 001domena.cz [template] => MYDNSTEMPLATE ) ) OUTPUT: Array ( [status] => ok )

API Manual - version from 2017-09-15 12:54:14