Get domains list

				
					StructDomainList[] domainList(string idSession, array filters)
			

Return domains linked to the reseller account.

REQUIRED

  • idSession string (32)
    Session ID

 

OPTIONAL

  • filters array
    Search filters
  •  

    Available filter keys:

    • domain (Domain name)
    • status (Domain status)
    • idOwner (Owner contact ID)
    • idTech (Technical contact ID)
    • idAdmin (Administrative contact ID)
    • idBilling (Billing contact ID)
    • dateCreate (Domain creation date)
    • dateExpiration (Domain expiration date)

    For more information on filters for list functions, please consult the corresponding page.

An Array of Object of type StructDomainList

$clientSOAP = new SoapClient('https://URL.wsdl');

$filters = array(
    'domain' => ['LIKE' => 'foo%'],
    'status' => ['<>' => 'Expired'],
    'dateExpiration' => ['>=' => '2023-06-01', '<' => '2023-10-01']
);

try {
    $idSession = $clientSOAP->sessionOpen('XX000', 'xxxxxxxx');
    $arrayDomainList  = $clientSOAP->domainList($idSession, $filters);
    print_r($arrayDomainList);

} catch (SoapFault $fault) {
    echo 'Exception : ' . $fault->getMessage() . "\n";
}

if (isset($idSession)) {
    $clientSOAP->sessionClose($idSession);
}