AWS Import/Export
Developer Guide (API Version 2010-06-03)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Getting the Status of Your Jobs

You might like to get the status of a job, for example, you might like to know if the job is waiting to start, in progress, or completed. For some operations, such a CancelJob and UpdateJob, you might use GetStatus first because jobs cannot be canceled or updated if their status is completed.

GetStatus returns the status of a specified job. You specify a job using the job ID returned in the CreateJob response. Example job statuses are pending, completed, in progress, device error, and expired. For more information about statuses, go to Progress Codes. You can only get the status of jobs you own.

To get the status of a job using the command line tool

Use the GetStatus command.

The following command returns the status of the job identified by JOBID.

> java -jar lib\AWSImportExportWebServiceTool-1.0.jar GetStatus JOBID 

To get the status of a job using REST

Submit a GetStatus request.

The following request returns the status of the job identified by JOBID.

POST / HTTP/1.1
content-type:application/x-www-form-urlencoded;charset=utf-8
host: https://importexport.amazonaws.com
content-length:189

Action=GetStatus&JobId=JOBID&JobType=Import&AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE 
&SignatureVersion=2&SignatureMethod=HmacSHA256&Version=2010-06-01 
&SignatureMethod=%2FVfkltRBOoSUi1sWxRzN8rw%3D

Amazon Import/Export returns the status of your job and some fields from the manifest. For more information about the API operation, go to GettingStatus in the AWS Import/Export API Reference.