get_domain_list ( $pcre )

ONLY lists the domains, as an array, on the SimpleDB account.

Access

public

Parameters

Parameter

Type

Required

Description

$pcre

string

Optional

A Perl-Compatible Regular Expression (PCRE) to filter the names against.

Returns

Type

Description

array

The list of matching queue names. If there are no results, the method will return an empty array.

Examples

Get a list of all domains in an account.

// Instantiate
$sdb = new AmazonSDB();
$response = $sdb->get_domain_list();

// Success? (Array, not a CFResponse object)
print_r($response);

See Also

Source

Method defined in services/sdb.class.php | Toggle source view (17 lines) | View on GitHub

public function get_domain_list($pcre = null)
{
    if ($this->use_batch_flow)
    {
        throw new SDB_Exception(__FUNCTION__ . '() cannot be batch requested');
    }

    // Get a list of domains.
    $list = $this->list_domains();
    if ($list = $list->body->DomainName())
    {
        $list = $list->map_string($pcre);
        return $list;
    }

    return array();
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback