Copy the method of custom image to another region under one region
I would like to share with you how to copy a custom image from one region to another. I hope you will learn a lot after reading this article. Let's discuss it together.
CopyImage
Copy the custom image under one region to another region. You can use the replicated image to create an ECS instance (RunInstances) or change the instance's system disk (ReplaceSystemDisk) in other regions.
Description
When calling this interface, you need to be aware of:
The state of the custom mirror must be Available.
The custom image to be copied must be an image under your account and cannot be copied across accounts.
You cannot delete a mirror (DeleteImage) while copying a mirror, but you can cancel the replication task (CancelCopyImage).
Request parameter
Return parameters
Example
Request example
Https://ecs.aliyuncs.com/?Action=CopyImage&DestinationRegionId=cn-hangzhou&ImageId=m-281234567&RegionId=cn-qingdao&
Return the example
XML format
C8B26B44-0189-443E-9816-D951F59623A9 Img-231234567
JSON format
{"RequestId": "C8B26B44-0189-443E-9816-D951F59623A9", "ImageId": "Img-231234567"}
Error code
The following are the error codes specific to this API. For more error codes, please visit the API error Center.
After reading this article, I believe you have a certain understanding of how to copy a custom image under one region to another region. If you want to know more about it, welcome to follow the industry information channel. Thank you for your reading!