| Did this page help you? Yes No Tell us about it... |
This action cancels a specified job. Only the job owner can cancel it. The action fails if the job has already started or is complete.
For information about the common parameters that all actions use, see Common Query Parameters
| Name | Description | Required |
|---|---|---|
|
Action | Specifies the action to invoke. Type: String Default: None Valid Values: CancelJob |
Yes |
|
JobId |
Identifier returned by Type: String Default: None |
Yes |
| Name | Description |
|---|---|
| CancelJobResponse |
Container for the response. Type: None Ancestor: None Children: CancelJobResult, ResponseMetadata |
| CancelJobResult |
Container for the result. Type: None Ancestor: CancelJobResponse Children: Success |
| RequestId |
Identifier that uniquely identifies the request. Type: String Ancestor: CancelJobResponse.ResponseMetadata Children: None |
| ResponseMetadata |
Container for the response metadata. Type: String Ancestor: CancelJobResponse Children: RequestId |
| Success |
Specifies whether ( Type: Boolean Valid Values: Ancestor: CancelJobResponse.CancelJobResult Children: None |
The following examples show sample requests and responses.
The following request cancels a specified job.
Example Request
POST / HTTP/1.1
content-type:application/x-www-form-urlencoded;charset=utf-8
host: https://importexport.amazonaws.com
content-length:188
Action=CancelJob&SignatureMethod=HmacSHA256&JobId=JOBID&
AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&SignatureVersion=2&
Signature=%2FVfkltRBOoSUi1sWxRzN8rw%3D&Timestamp=2011-06-20T23%3A53%3A37.232ZThe response shows that the job was successfully canceled.
Example Response
<CancelJobResponse xmlns="http://importexport.amazonaws.com/">
<CancelJobResult>
<Success>true</Success>
</CancelJobResult>
<ResponseMetadata>
<RequestId>a4f704fc-0ad8-11df-b085-4384d3e37ae5</RequestId>
</ResponseMetadata>
</CancelJobResponse>