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
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
RoleName | BODY | string | No | EcsServiceRole-EcsDocGuideTest | RAM role name used when 'export'ing images. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ImageId | BODY | string | Yes | m-bp67acfmxazb4p**** | custom image ID. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the custom image. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
OSSBucket | BODY | string | Yes | test'export'Image | Save the OSS bucket of the 'export'ed image. |
version | BODY | string | No | 2016-01-01 | version of api |
OSSPrefix | BODY | string | No | EcsExport | Prefix of your OSS Object. It can be composed of numbers or letters, and the character length is 1 to 30. |
ImageFormat | BODY | string | No | raw | the 'export' format of the image file. Value range: raw vhd qcow2 vmdk vdi default value: raw. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}