AWS Import/Export
API Reference (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...

Sample POST Request and Response

POST Request

The following is an example POST request to get the status of a job.

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

Action=GetStatus&SignatureMethod=HmacSHA256&JobId=JOBID&AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&SignatureVersion=2&Version=2010-06-03&Signature=%2FVfkltRBOoSUi1sWxRzN8rw%3D&Timestamp=2011-06-20T22%3A30%3A59.556Z

The body of the request is all on one line. However, to make the examples even easier to read in this guide, the AWS Import/Export API Reference presents request samples in the following parsed format.

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

Action=GetStatus
&JobId=JOBID
&AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Version=2010-06-03
&Signature=lBP67vCvGlDMBQ1dofZxg8E8SUEXAMPLE
&Timestamp=2011-06-20T22%3A30%3A59.556Z

The first line represents the type of http request.

Lines 2-4 contain the HTTP headers, including the endpoint of the request.

After the HTTP headers, the body of the request contains the list of parameters. Each parameter is separated by an ampersand (&). The Action parameter indicates the action to perform (for a list of the actions, see Actions).

Response

The following is the sample response:

<CreateJobResponse xmlns="http://importexport.amazonaws.com/">
  <CreateJobResult>
    <JobId>TEST1</JobId>   
      <SignatureFileContents>version:2.0
signingMethod:HmacSHA1
jobId:WXSPP
signature:jLbLVp54vBa/vuh/XW1MOMdZUxw=
      </SignatureFileContents>
      <AwsShippingAddress>AWS Import/Export
JOBID TEST1
2646 Rainier Ave South Suite 1060
Seattle, WA 98144</AwsShippingAddress>
    <Signature>O3qG7xnI46ZEm9gi+eOy9dnSS9k=</Signature>
  </CreateJobResult>
  <ResponseMetadata>
    <RequestId>ace8cb5b-0ada-11df-a381-155bec6f7c93</RequestId>
  </ResponseMetadata>
  </CreateJobResponse>