Skip to main content

ExportImage

Description

Call ExportImage to 'export' 1 custom image to OSS Bucket in the same region as the custom image.

Request Method

POST

Request Path

/apsara/route/Ecs/ExportImage

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
RoleNameBODYstringNoEcsServiceRole-EcsDocGuideTestRAM role name used when 'export'ing images.
regionIdBODYstringYesNo sample value for this parameter.region id
ImageIdBODYstringYesm-bp67acfmxazb4p****custom image ID.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the custom image. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
OSSBucketBODYstringYestest'export'ImageSave the OSS bucket of the 'export'ed image.
versionBODYstringNo2016-01-01version of api
OSSPrefixBODYstringNoEcsExportPrefix of your OSS Object. It can be composed of numbers or letters, and the character length is 1 to 30.
ImageFormatBODYstringNorawthe 'export' format of the image file. Value range: raw vhd qcow2 vmdk vdi default value: raw.

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
}

}