复制自制镜像-CopyCustomImage

复制自制镜像

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域, 参见 地域和可用区列表Yes
Zonestring可用区,参见 可用区列表No
ProjectIdstring源项目编号(子帐号用) 请参考GetProjectList接口No
SourceImageIdstring源镜像Id, 参见 DescribeImageYes
TargetRegionstring目标地域,不跨地域不用填No
TargetProjectIdstring目标项目Id, 参见 GetProjectListYes
TargetImageNamestring目标镜像名称No
TargetImageDescriptionstring目标镜像描述No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
TargetImageIdstring目标镜像IdNo

Request Example

https://api.ucloud.cn/?Action=CopyCustomImage
	&Region=cn-bj2
	&SourceImageId=uimage-xxx
 	&TargetProjectId=org-xxx

Response Example

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