CopyImage_加密服务_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

要求目标地域没有相同镜像。仅非中国内地密码机支持此接口调用。

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
yundun-hsm:CopyImage
Update
全部资源
*

请求参数

字段名称字段详情
ImageUidstring

镜像 ID。

示例值:image-hafiudfahdd****参考取值来源:
    ListImages
    GetImage
TargetRegionIdstring

目标地域 ID。

示例值:cn-beijing

返回参数

字段名称字段详情
Completedboolean

任务是否完成。

示例值:true
CreateTimestring

任务创建时间,精确到毫秒。时间戳格式。

示例值:1724379766191
Errorstring

任务失败时的错误信息。

示例值:OperationTimeout
JobIdstring

任务 ID。

示例值:job-202401250936hze747fd7e0007005
Progressinteger<int32>

任务执行进度。单位为百分比。

示例值:100
RequestIdstring

本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。

示例值:4C467B38-3910-447D-87BC-AC049166F216
Responsestring

当任务成功后返回的响应信息。

示例值:success
Statusstring

任务状态。

示例值:running
Typestring

操作类型。展开详情

示例值:create

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
SwitchMaster.InstanceInvalid
Instance not in the cluster.诊断
400
LeaveCluster.MasterLast
Master instance can not leave a cluster until all other instances are left.诊断
400
Certificate.ChainInvalid
Certificate chain invalid. Please make sure issuer certificate is the trust anchor and cluster certificate is signed by issuer certificate.诊断
400
Certificate.FormatInvalid
Certificate format invalid. Cluster/Issuer certificate must be in PEM format.诊断
400
ConfigClusterSubnet.DuplicateZone
VSwitches should not contain duplicate zones.诊断
400
InvalidApiParam.Error
api param is invalid诊断
400
InvalidClusterName
Invalid parameter clusterName.诊断
400
InvalidPageSize
Invalid parameter pageSize.诊断
400
InvalidCurrentPage
Invalid parameter currentPage.诊断
400
InvalidRegionId
Invalid parameter regionId.诊断
400
InvalidZoneId
Invalid parameter zoneId.诊断
400
InvalidVSwitch
Invalid parameter vSwitch.诊断
400
InvalidVpc
Invalid parameter vpcId.诊断
400
InvalidVsmType
Invalid parameter vsmType.诊断
400
InvalidIp
Invalid parameter IP.诊断
400
InvalidAliuid
Invalid parameter aliuid.诊断
400
InvalidClusterId
Invalid parameter clusterId.诊断
400
InvalidInstanceId
Invalid parameter instanceId.诊断
400
InvalidBackupId
Invalid parameter backupId.诊断
400
InvalidImageId
Invalid parameter imageId.诊断
400
HsmInstanceNotExist.Error
hsm instance not exist诊断
400
HSMIntanceNotActived.Error
hsm intance is not actived诊断
400
WhiteListMaxCount.Error
whilte list is more than max count诊断
400
ClusterIdIsNotExists.Error
cluster ID non-exists诊断
400
InstanceListIsEmpty.Error
instance list is empty诊断
400
InstanceIdIsEmpty.Error
instance id is empty诊断
400
InstanceIsNotExistsInCluster.Error
cluster has no such instance诊断
400
InstanceIsExistsInCluster.Error
instance already in the cluster诊断
400
RegionNoEmpty.Error
region no. is empty诊断
400
ClusterNameEmpty.Error
empty cluster name not allowed诊断
400
ClusterNameIsExists.Error
the cluster name is already taken诊断
400
IpNotValid.Error
ip not valid诊断
400
ClusterIsEmpty.Error
cluster is empty诊断
400
NoMasterFoundInCluster.Error
cluster has no master instance诊断
400
HsmInstanceIdNotFound.Error
no such instance诊断
400
NoInstanceFoundInCluster.Error
cluster is empty诊断
400
Whitelist.Invalid
Whitelist blocks not in CIDR format.诊断
400
Whitelist.TooLong
Whitelist too long, exceeds 10 CIDR blocks.诊断
403
NoPermission
User has no permission to access this resource.诊断
403
Trial.Forbidden
Current user is not allowed for trials!诊断
403
Forbidden.InstanceInCluster
This API is forbidden for instances in cluster.诊断
403
JoinCluster.InstanceIncorrectState
Instance not in Active/Pending state.诊断
403
InstanceNotPaused
Please pause the instance before reset.诊断
403
InstanceNotActive
Instance is not active.诊断
403
ConfigIp.IncorrectState
Instance not in pending or active state, can not config IP address.诊断
403
SwitchMaster.IncorrectState
Cluster not initialized, please initialize the cluster first.诊断
403
SyncCluster.IncorrectState
Cluster not initialized, please initialize the cluster first.诊断
403
LeaveCluster.InstanceInvalid
The instance is not in the cluster.诊断
403
DeleteCluster.IncorrectState
Cluster not empty, please remove all instances first.诊断
403
JoinCluster.InstanceVSwitchNotInCluster
Instance's vSwitch is not in cluster config, please change instance's vSwitch first.诊断
403
JoinCluster.InstanceInitialized
Initialized instance can not join a cluster.诊断
403
JoinCluster.IncorrectState
Cluster not initialized, please initialize the cluster first.诊断
403
InitializeCluster.InstanceNotInitialized
Cluster master instance not initialized, please initialize cluster master instance first.诊断
403
InitializeCluster.IncorrectConfig
Cluster subnet not configured, please config cluster subnet first.诊断
403
InitializeCluster.IncorrectState
Cluster initialized, do not re-initialize.诊断
403
Cluster.CN.ActionForbidden
This API is forbidden for non-international site cluster.诊断
403
Cluster.INTL.ActionForbidden
This API is forbidden for international site cluster.诊断
403
ConfigClusterCertificate.IncorrectState
Cluster initialized or certificates already configured.诊断
403
ConfigClusterSubnet.InvalidVpcId
VPC Id invalid. Cluster VPC is the same as cluster master's VPC.诊断
403
ConfigClusterSubnet.InvalidVSwitchId
VSwitch Id invalid. VSwitches should contain all current cluster vSwitches.诊断
403
ConfigClusterSubnet.IncorrectState
Cluster not in NEW state, can not config cluster subnet.诊断
403
ClusterName.Exist
Cluster name already exists, please use another name.诊断
403
Image.ImageStatusInValid
Image status is invalid.诊断
403
CopyImage.ImageAlreadyCopied
Image already copied, secondary copy is not supported.诊断
403
Image.ActionForbiddenINTL
This API is forbidden for international site.诊断
403
Image.ActionForbiddenCN
This API is forbidden for non-international site.诊断
403
CopyImage.RegionInvalid
Source region or target region invalid.诊断
403
Backup.ActionForbiddenINTL
This API is forbidden for international site.诊断
403
CopyImage.TargetRegionImageAlreadyExists
Target region has the same digest image.诊断
404
Resource.NotFound
Resource not found.诊断
405
ClusterAPI.NotSupported
ClusterAPI not supported in this region.诊断
409
Conflict.InstanceModifying
Instance is being modified by a previous request. Please try again later.诊断
409
Conflict
Resource is being updated by a previous request. Current request is redundant.诊断
409
Cluster.Conflict
The cluster is being updated by a previous request. Please try again later.诊断
500
ConfigWhitelistFailed.Error
config white list error诊断
500
ActionFailed.Error
internal error, please try again诊断
500
InternalError
The request processing has failed due to some unknown error.诊断

变更历史

暂无变更历史

相关示例