API Commands
[All Commands]

Order: Create_Host



order type Create_Host


Create new delegated host object. It is possible to specify multiple IPv4 and IPv6 addresses of the host.

Input Parameters ($params):

string hostname Address of host to create. (required)
array ipv4 List of v4 IP addresses of this host (required)
array ipv6 List of v6 IP addresses of this host

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,
    
'order' => 
    array (
      
'type' => 'Create_Host',
      
'params' => 
      array (
        
'hostname' => 'ns.exampledomain.com',
        
'ipv4' => 
        array (
          
=> '138.23.74.33',
          
=> '138.25.157.234',
          
=> '46.233.74.9',
        ),
        
'ipv6' => 
        array (
          
=> '2a00:1450:4008:c01::8b',
        ),
      ),
    ),
  ),
);

$response $client->__call("Make_Order",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [order] => Array ( [type] => Create_Host [params] => Array ( [hostname] => ns.exampledomain.com [ipv4] => Array ( [0] => 138.23.74.33 [1] => 138.25.157.234 [2] => 46.233.74.9 ) [ipv6] => Array ( [0] => 2a00:1450:4008:c01::8b ) ) ) ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [orderid] => 1875431 ) )

API Manual - version from 2017-03-07 10:42:19