Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DescribeBundleTasks

Description

Describes one or more of your bundling tasks.

Note

Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use the RegisterImage action with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

Request Parameters

BundleId.n

One or more bundle task IDs.

Type: String

Default: If no ID is specified, all bundle tasks are described.

Required: No

Filter.n.Name

The name of a filter. See the Supported Filters section for a list of supported filter names.

Type: String

Default: None

Required: No

Filter.n.Value.m

A value for the filter. See the Supported Filters section for a list of supported values for each filter.

Type: String

Default: None

Required: No

Supported Filters

You can specify filters so that the response includes information for only certain bundle tasks. For example, you can use a filter to specify that you're interested in the bundle tasks in the complete state. You can specify multiple values for a filter. The response includes information for a bundle task only if it matches at least one of the filter values that you specified.

You can specify multiple filters; for example, specify bundles that are stored in a specific Amazon S3 bucket and are in the complete state. The response includes information for a bundle task only if it matches all the filters that you specified. If there's no match, no special message is returned, the response is simply empty.

You can use wildcards in a filter value. An asterisk (*) matches zero or more characters, and a question mark (?) matches exactly one character. You can escape special characters using a backslash (\) before the character. For example, a value of \*amazon\?\\ searches for the literal string *amazon?\.

The following are the available filters.

bundle-id

The ID of the bundle task.

Type: String

error-code

If the task failed, the error code returned.

Type: String

error-message

If the task failed, the error message returned.

Type: String

instance-id

The ID of the instance that was bundled.

Type: String

progress

The level of task completion, as a percentage (for example, 20%).

Type: String

s3-bucket

The Amazon S3 bucket to store the AMI.

Type: String

s3-prefix

The beginning of the AMI name.

Type: String

start-time

The time the task started (for example, 2008-09-15T17:15:20.000Z).

Type: DateTime

state

The state of the task.

Type: String

Valid values: pending | waiting-for-shutdown | bundling | storing | cancelling | complete | failed

update-time

The time of the most recent update for the task (for example, 2008-09-15T17:15:20.000Z).

Type: DateTime

Response Elements

The following elements are returned in a DescribeBundleTasksResponse element.

requestId

The ID of the request.

Type: xsd:string

bundleInstanceTasksSet

A list of bundle tasks, each one wrapped in an item element.

Type: BundleInstanceTaskType

Examples

Example Request

This example describes the status of the bun-57a5403e bundle task.

https://ec2.amazonaws.com/?Action=DescribeBundleTasks
&bundleId.1=bun-c1a540a8
&AUTHPARAMS

Example Response

<DescribeBundleTasksResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
   <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
   <bundleInstanceTasksSet>
      <item>
         <instanceId>i-12345678</instanceId>
         <bundleId>bun-c1a540a8</bundleId>
         <state>cancelling</state>
         <startTime>2008-10-07T11:41:50.000Z</startTime>
         <updateTime>2008-10-07T11:51:50.000Z</updateTime>
         <storage>
            <S3>
               <bucket>myawsbucket</bucket>
               <prefix>winami</prefix>
            </S3>
         </storage>
         <progress>20%</progress>
      </item>
   <bundleInstanceTasksSet>
</DescribeBundleTasksResponse>

Example Request

This example filters the response to include only bundle tasks whose state is either complete or failed, and in addition are targeted for the Amazon S3 bucket called myawsbucket.

https://ec2.amazonaws.com/?Action=DescribeBundleTasks
&Filter.1.Name=s3-bucket
&Filter.1.Value.1=myawsbucket
&Filter.2.Name=state
&Filter.2.Name.1=complete
&Filter.2.Name.2=failed
&AUTHPARAMS