Set ftp hold

				
					StructOperationResponse WebHostingUpdate(string $IDsession, string $id, string $action, array $params)
			

Suspend or Unsuspend the FTP access of the hosting.

REQUIRED

  • idSession string (32)
    Session ID
  • id string
    Hosting ID.
  • action string
    Set to “SetFTPHold”.
  • params array
    {“value”: “true”/”false”}.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("value" => "true");
 
    $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); 
    $clientSOAP->WebHostingUpdate($idSession, "NW1024", "SetFTPHold", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}