CancelExportTask
Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.
Request Parameters
For more information about required and optional parameters that are common to all actions, see Common Query Parameters.
- ExportTaskId
-
The ID of the export task. This is the ID returned by the
CreateInstanceExportTask
andExportImage
operations.Type: String
Required: Yes
Response Elements
The following elements are returned by the service.
- requestId
-
The ID of the request.
Type: String
- return
-
Is
true
if the request succeeds, and an error otherwise.Type: Boolean
Errors
For information about the errors that are common to all actions, see Common client error codes.
Examples
Example
This example request cancels the export task with the ID export-i-1234wxyz
.
Sample Request
https://ec2.amazonaws.com/?Action=CancelExportTask
&exportTaskId=export-i-1234wxyz
&AUTHPARAMS
Sample Response
<CancelExportTask xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<return>true</return>
</CancelExportTask>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: