Get hosts list

				
					StructHostList[] queryHostList(string idSession, string filter)
				
			

Return hosts linked to the reseller account.

REQUIRED

  • idSession string (32)
    Session ID.
OPTIONAL

  • filter string
    The filter applies to the host name.

    The filter can use the character ‘*’ as a joker. It is equivalent to the character ‘%’ in SQL.

    Example:

    if looking at all host for a particular domain, use “*.domain.com”.

    If looking after a particular host, use “ns1.domain.com”

An Array of Object of type StructHostList

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
$filter= "";
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
      $ArrayHostList = $clientSOAP->queryHostList($idSession, $filter); 
 
      print_r($ArrayDomainList); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>