describe_application_versions ( $opt )

Returns descriptions for existing application versions.

Access

public

Parameters

Parameter

Type

Required

Description

$opt

array

Optional

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

  • ApplicationName - string - Optional - If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include ones that are associated with the specified application.
  • VersionLabels - string|array - Optional - If specified, restricts the returned descriptions to only include ones that have the specified version labels. 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

Describe all application versions.

// Instantiate the class
$bean = new AmazonElasticBeanstalk();

$response = $bean->describe_application_versions();

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

Describe versions for specific applications.

// Instantiate the class
$bean = new AmazonElasticBeanstalk();

$response = $bean->describe_application_versions(array(
	'ApplicationName' => 'my-application',
	'VersionLabels' => '1.0'
));

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

Related Methods

Source

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

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

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

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback