Home >Operation and Maintenance >Linux Operation and Maintenance >How to copy a custom image in one region to another region

How to copy a custom image in one region to another region

坏嘻嘻
坏嘻嘻Original
2018-09-21 15:07:152525browse

The content of this article is about how to copy a custom image in one region to other regions. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

CopyImage

Copy a custom image in one region to another region. You can use the copied image to create ECS instances (RunInstances) or replace the system disk of the instance (ReplaceSystemDisk) in other regions.

Description

When calling this interface, you need to pay attention to:

The status of the custom image must be Available.

The copied custom image must be the image under your account and cannot be copied across accounts.

The image cannot be deleted (DeleteImage) during the process of copying the image, but you can cancel the copy task (CancelCopyImage).

Request parameters

How to copy a custom image in one region to another region

##Return parameters

How to copy a custom image in one region to another region

Example

Request Example

https://ecs.aliyuncs.com/?Action=CopyImage
&DestinationRegionId=cn-hangzhou
&ImageId=m-281234567
&RegionId=cn-qingdao
&<公共请求参数>

Return example

XML format

<CopyImageResponse>
    <RequestId>C8B26B44-0189-443E-9816-D951F59623A9</RequestId>
    <ImageId>Img-231234567</ImageId>
</CopyImageResponse>

JSON format

{
    "RequestId": "C8B26B44-0189-443E-9816-D951F59623A9",
    "ImageId": "Img-231234567"
}

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

How to copy a custom image in one region to another region

The above is the detailed content of How to copy a custom image in one region to another region. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn