describe_export_tasks ( $opt )

Access

public

Parameters

Parameter

Type

Required

Description

$opt

array

Optional

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

  • ExportTaskId - string|array - Optional - Pass a string for a single value, or an indexed array for multiple values.
  • 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

EC2 - Describe Export Tasks

// Dependencies
require_once dirname(__FILE__) . '/../../sdk.class.php';
require_once dirname(__FILE__) . '/../testutil.inc.php';

// Instantiate the class
$ec2 = new AmazonEC2();

$response = $ec2->describe_export_tasks();

var_dump($response->isOK());

Source

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

public function describe_export_tasks($opt = null)
{
    if (!$opt) $opt = array();
            
    // Optional list (non-map)
    if (isset($opt['ExportTaskId']))
    {
        $opt = array_merge($opt, CFComplexType::map(array(
            'ExportTaskId' => (is_array($opt['ExportTaskId']) ? $opt['ExportTaskId'] : array($opt['ExportTaskId']))
        )));
        unset($opt['ExportTaskId']);
    }

    return $this->authenticate('DescribeExportTasks', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback