Menu
AWS Import/Export
Developer Guide

Canceling a Job

You use CancelJob to cancel a job. You specify the job to cancel using the job ID returned in the CreateJob response. The operation fails if the job is already complete. We can, however, cancel a job in progress. You can only cancel jobs created by users under your AWS account.

To cancel a job using the command line client

Use the CancelJob command.

The following command cancels the job JOBID.

Copy
> java -jar lib/AWSImportExportWebServiceTool-1.0.jar CancelJob JOBID

To cancel a job using REST

Submit a CancelJob request.

Copy
POST / HTTP/1.1 content-type:application/x-www-form-urlencoded;charset=utf-8 host: https://importexport.amazonaws.com content-length:189 Action=CancelJob&JobId=JOBID&JobType=Import  &SignatureVersion=2&SignatureMethod=HmacSHA256&Version=2010-06-01  &SignatureMethod=%2FVfkltRBOoSUi1sWxRzN8rw%3D

AWS Import/Export returns a response to notify you whether we were able to cancel your job. For more information about the API operation, go to CancelJob.