CancelCopyImage

Last Updated: Dec 12, 2017

Description

This operation allows you to cancel an image replication task. After you cancel the task, the image status is creation failed.

Request parameters

Name Type Required Description
Action String Yes Value: CancelCopyImage.
RegionId String Yes Indicates the region ID of the target image.
ImageId String Yes Indicates the ID of the target image being replicated.

Response parameters

All parameters are common response parameters. For more information, see Common parameters.

Error codes

Error code Error message HTTP status code Meaning
MissingParameter The input parameter RegionId that is mandatory for processing this request is not supplied. 400 RegionId field is missing.
MissingParameter The input parameter ImageId that is mandatory for processing this request is not supplied. 400 ImageId field is missing.
InvalidRegionId.NotFound The source region not found. 400 The specified regionId does not exist.
InvalidImageId.NotFound The specified ImageId does not exist. 400 The specified ImageId does not exist.
IncorrectImageStatus The image has completed copy. 400 The specified image has been replicated. The cancellation failed.
IncorrectImageStatus The image is not from copied. 400 The specified image is not created by means of replication. The cancellation failed.

Examples

Request example

  1. https://ecs.aliyuncs.com/?Action=CancelCopyImage
  2. &RegionId=cn-hangzhou
  3. &ImageId=img-2012-12-01-1300
  4. &<Common Request Parameters>

Response example

XML format

  1. <CancelCopyImageResponse>
  2. <RequestId>C8B26B44-0189-443E-9816-D951F59623A9</RequestId>
  3. </CancelCopyImageResponse>

JSON format

  1. {
  2. "RequestId": "C8B26B44-0189-443E-9816-D951F59623A9"
  3. }
Thank you! We've received your feedback.