Skip to main content

CopyImage

Description

call the CopyImage to copy custom images in one region to other regions. Copying images can deploy ECS instances across regions and replicate ECS instances across regions.

Request Method

POST

Request Path

/apsara/route/Ecs/CopyImage

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
KMSKeyIdBODYstringNoe522b26d-abf6-4e0d-b5da-04b7******3cthe key ID used to encrypt the image.
DestinationRegionIdBODYstringNocn-shanghai-env17-d02ID copied to the target region.
regionIdBODYstringYesNo sample value for this parameter.region id
EncryptedBODYbooleanNofalseWhether to encrypt the copied image. default value: false.
ImageIdBODYstringYesm-bp1h46wfpjsjastc****derived from the ID that defines the image.
DestinationDescriptionBODYstringNoThis is a description example.description information of the copied image. 2 to 256 English or Chinese characters in length and cannot start with http:// or https. default value: empty.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID from the definition mirror. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
versionBODYstringNo2016-01-01version of api
DestinationImageNameBODYstringNoYourImageNamethe name of the copied image. The length is 2~128 English or Chinese characters. It must start with a letter or Chinese, and cannot start with http:// or https. It can contain numbers, colons (:), underscores (_), or dashes (-). default value: empty.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}