API Commands
[All Commands]

Order: Update_Host



order type Update_Host


Change IP addresses of delegated host object.

Input Parameters ($params):

string hostname Address of host to update. (required)
array ipv4 List of new v4 IP addresses of this host (required)
array ipv6 List of new 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' => 'Update_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] => Update_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-11-21 10:46:44