Skip to Content
云主机 UHost复制自制镜像 - CopyCustomImage

复制自制镜像 - CopyCustomImage

简介

复制自制镜像

定义

公共参数

参数名类型描述信息必填
Actionstring对应的 API 指令名称,当前 API 为 CopyCustomImageYes
PublicKeystring用户公钥,可从 控制台 获取Yes
Signaturestring根据公钥及 API 指令生成的用户签名,参见 签名算法Yes

请求参数

参数名类型描述信息必填
Regionstring地域。 参见 地域和可用区列表Yes
Zonestring可用区。参见 可用区列表No
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
SourceImageIdstring源镜像Id, 参见 DescribeImageYes
TargetProjectIdstring目标项目Id, 参见 GetProjectListYes
TargetRegionstring目标地域,不跨地域不用填No
TargetImageNamestring目标镜像名称No
TargetImageDescriptionstring目标镜像描述No

响应字段

字段名类型描述信息必填
RetCodeint返回状态码,为 0 则为成功返回,非 0 为失败Yes
Actionstring操作指令名称Yes
Messagestring返回错误消息,当 RetCode 非 0 时提供详细的描述信息No
TargetImageIdstring目标镜像IdNo

示例

请求示例

https://api.an-link.com/?Action=CopyCustomImage &Region=cn-bj2 &SourceImageId=uimage-xxxx &TargetProjectId=org-xxxx

响应示例

{ "Action": "CopyCustomImageResponse", "RetCode": 0, "TargetImageId": "uimage-xxxx" }