Update host

				
					StructOperationResponse hostUpdate(string idSession, string host, string[] ipv4, string[] ipv6)
				
			

Update a host at the registry.

REQUIRED

  • idSession string (32)
    Session ID.
  • host string (255)
    Hostname (example : “ns1.example.com”).
OPTIONAL

  • ipv4 array
    New IPv4 addresses.
  • ipv6 array
    New IPv6 addresses.

An Object of type StructOperationResponse

  • At least one IP address must be provided (either IPv4 either IPv6).
<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
$host = "xxx.example.com"; 
$ipv4 = array("192.134.0.129", "192.5.4.2", "194.0.9.1"); 
$ipv6 = array("2001:660:3006:4:0:0:1:1", "2001:500:2e:0:0:0:0:2", "2001:678:c:0:0:0:0:1"}); 
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
      $StructOperationResponse = $clientSOAP->hostUpdate($idSession, $host, $ipv4, $ipv6); 
 
      print_r($StructOperationResponse);
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>