EC2.Client.
describe_export_image_tasks
(**kwargs)¶Describes the specified export image tasks or all of your export image tasks.
See also: AWS API Documentation
Request Syntax
response = client.describe_export_image_tasks(
DryRun=True|False,
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
ExportImageTaskIds=[
'string',
],
MaxResults=123,
NextToken='string'
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.Filter tasks using the task-state
filter and one of the following values: active
, completed
, deleting
, or deleted
.
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
If you specify multiple filters, the filters are joined with an AND
, and the request returns only results that match all of the specified filters.
The name of the filter. Filter names are case-sensitive.
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR
, and the request returns all results that match any of the specified values.
The IDs of the export image tasks.
dict
Response Syntax
{
'ExportImageTasks': [
{
'Description': 'string',
'ExportImageTaskId': 'string',
'ImageId': 'string',
'Progress': 'string',
'S3ExportLocation': {
'S3Bucket': 'string',
'S3Prefix': 'string'
},
'Status': 'string',
'StatusMessage': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
ExportImageTasks (list) --
Information about the export image tasks.
(dict) --
Describes an export image task.
Description (string) --
A description of the image being exported.
ExportImageTaskId (string) --
The ID of the export image task.
ImageId (string) --
The ID of the image.
Progress (string) --
The percent complete of the export image task.
S3ExportLocation (dict) --
Information about the destination Amazon S3 bucket.
S3Bucket (string) --
The destination Amazon S3 bucket.
S3Prefix (string) --
The prefix (logical hierarchy) in the bucket.
Status (string) --
The status of the export image task. The possible values are active
, completed
, deleting
, and deleted
.
StatusMessage (string) --
The status message for the export image task.
Tags (list) --
Any tags assigned to the export image task.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:
.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.
NextToken (string) --
The token to use to get the next page of results. This value is null
when there are no more results to return.