API Commands
[All Commands]

Command: Modify_Object



command Modify_Object

Update nsset or keyset.

Input Parameters ($data):

string type Object type ("nsset" or "keyset")
array params
contact tech Technical contact
host[] hosts Hostnames of nameservers (ONLY for NSSETs!)
dnskey[] records Array of DNSSEC keys (ONLY for KEYSETs!)

Sample for NSSET:


<?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" => "Modify_Object",
                
"object" => "SAMPLENSSET",
                
"params" => array(
                        
"type" => "nsset",
                        
"params" => array(
                                
"tech" => array(
                                        
"id" => "G-000003"
                                
),
                                
"hosts" => array(
                                        array(
                                                
"hostname" => "ns.gransy.com"
                                        
),
                                        array(
                                                
"hostname" => "ns2.gransy.com"
                                        
),
                                        array(
                                                
"hostname" => "ns3.gransy.com"
                                        
),
                                        array(
                                                
"hostname" => "ns4.gransy.com"
                                        
),
                                        array(
                                                
"hostname" => "ns5.gransy.com"
                                        
)
                                )
                        )
                )
        )
    )
);
    )
);

$response $client->__call("Make_Order",$params);

?>
INPUT: Array ( [ssid] => bf5c2154638305f8804048e848e70197 [order] => Array ( [type] => Modify_Object [object] => SAMPLENSSET [params] => Array ( [type] => keyset [params] => Array ( [tech] => Array ( [id] => G-000003 ) [hosts] => Array ( [0] => Array ( [hostname] => ns.gransy.com ) [1] => Array ( [hostname] => ns2.gransy.com ) [2] => Array ( [hostname] => ns3.gransy.com ) [3] => Array ( [hostname] => ns4.gransy.com ) [4] => Array ( [hostname] => ns5.gransy.com ) ) ) ) ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [orderid] => 123456 ) )

Sample for KEYSET:


<?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" => "Modify_Object",
                
"params" => array(
                        
"id" => "KEYSETID",
                        
"type" => "keyset",
                        
"params" => array(
                                
"tech" => array(
                                        
"id" => "G-000003"
                                
),
                                
"records" => array(
                                        array(
                                                
"tag" => 52247,
                                                
"flag" => 257,
                                                
"protocol" => 3,
                                                
"alg" => 7,
                                                
"key" => "BQEAAAA...UgkO7BUjlprbnk="
                                        
)
                                )
                        )
                )
        )
    )
);

$response $client->__call("Make_Order",$params);

?>
INPUT: Array ( [ssid] => 0920b501d7823ba11d550fa4e547b3b9 [order] => Array ( [type] => Modify_Object [params] => Array ( [id] => KEYSETID [type] => keyset [params] => Array ( [tech] => Array ( [id] => G-000003 ) [records] => Array ( [0] => Array ( [tag] => 52247 [flag] => 257 [protocol] => 3 [alg] => 7 [key] => BQEAAAA...UgkO7BUjlprbnk= ) ) ) ) ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [orderid] => 123456 ) )

API Manual - version from 2023-05-12 12:15:50