Calculate disk usage

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

Force the calculation of the current disk usage.

REQUIRED

  • idSession string (32)
    Session ID
  • id string
    Hosting ID.
  • action string
    Set to “CalculateDiskUsage”.
  • params array
    Empty array.

An Object of type StructOperationResponse

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