Cancell copying image

Last Updated: Jul 25, 2017

Description

This operation allows you to cancel an image replication task. After cancellation, 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.

Return parameters

All parameters are public return parameters. For details, refer to Public Return Parameters.

Error code

Error code Description 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. &<Public Request Parameters>

Return example

XML format

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

JSON format

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