domain_metadata ( $domain_name, $opt )

Returns information about the domain, including when the domain was created, the number of items and attributes in the domain, and the size of the attribute names and values.

Access

public

Parameters

Parameter

Type

Required

Description

$domain_name

string

Required

The name of the domain for which to display the metadata of.

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Examples

Get the metadata for a given domain.

// Instantiate
$sdb = new AmazonSDB();
$response = $sdb->domain_metadata('example-domain');

// Success?
var_dump($response->isOK());
Result:
bool(true)

Related Methods

Source

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

public function domain_metadata($domain_name, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['DomainName'] = $domain_name;
    
    return $this->authenticate('DomainMetadata', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback