get_oai_list ( $pcre )

Gets a simplified list of origin access identity (OAI) IDs.

Access

public

Parameters

Parameter

Type

Required

Description

$pcre

string

Optional

A Perl-Compatible Regular Expression (PCRE) to filter the OAI caller references against.

Returns

Type

Description

array

A list of OAI IDs.

Examples

Get a list of all OAIs.

// Generate configuration XML
$cdn = new AmazonCloudFront();

$response = $cdn->get_oai_list();

// Success?
var_dump($response);

Related Methods

Source

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

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

    $list = $this->list_oais();
    if ($list = $list->body->Id())
    {
        $list = $list->map_string($pcre);
        return $list;
    }

    return array();
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback