The ListDomains
operation lists all domains associated with the Access Key ID. It
returns domain names up to the limit set by MaxNumberOfDomains. A NextToken is returned
if there are more than MaxNumberOfDomains
domains. Calling
ListDomains
successive times with the NextToken
provided by the
operation returns up to MaxNumberOfDomains
more domain names with each successive
operation call.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
List all domains for an account.
// Instantiate $sdb = new AmazonSDB(); $response = $sdb->list_domains(); // Success? var_dump($response->isOK());Result:
bool(true)
List a maximum of one domain for an account.
// Instantiate $sdb = new AmazonSDB(); $response = $sdb->list_domains(array( 'MaxNumberOfDomains' => 1 )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/sdb.class.php | Toggle source view (6 lines) | View on GitHub