全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

专属虚机迁移

请求参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数
参数名称
类型
必填
描述
Action String
公共参数,本接口取值:InstanceMigrate。
Version String
公共参数,本接口取值:2016-03-04。
DedicatedHostId String

专属宿主机id

InstanceId String

虚拟机ID

InstanceType String

套餐类型

DataDisk.N String

数据盘id

返回参数

参数名称
类型
描述
RequestId String
示例值:5034a8a2-4eb0-4161-8ff1-0a9b71b63000009
Return Boolean
示例值:true

请求示例

curl -X GET|POST
'http://kec.api.ksyun.com/?Action=InstanceMigrate&Version=2016-03-04'
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx'
-H 'cache-control: no-cache'
-H 'content-type: application/x-www-form-urlencoded'
-H 'host: kec.api.ksyun.com'
-H 'x-amz-date: 20170720T022802Z'
-d 'DedicatedHostId=xxx&InstanceId=xxx&InstanceType=xxx&DataDisk.N=xxx'

返回示例

JSON格式

{
"RequestId":"5034a8a2-4eb0-4161-8ff1-0a9b71b63000009",
"Return":true
}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码
错误信息
Http状态码
描述
CrossInstanceMigrateQueueNoSettingcross instance migrate queue no setting.400变更实例类型队列未进行配置.
ProductSellOutInvalidproduct already sell out.400此商品在该机房已售罄.
InstanceIdInvalidInstance Resource id is invalid400实例资源ID无效
ChargeTypeInvalidParameterValueAn invalid or out-of-range value was supplied for the "ChargeType" parameter.400“计费类型”参数的取值无效或者超出有效范围
InstanceTypeNoneInvalidCreate or upgrade does not support non-standard instancetype.400创建、升配不支持非标套餐.
InstanceTypeInvalidParameterValueAn invalid or out-of-range value was supplied for the "InstanceType" parameter.400“实例套餐类型”参数的取值无效或者超出有效范围
DedicatedHostIdInvalidDedicatedHostId is invalid400专属宿主机ID无效
VmNotSupportMigrateThe Instance Not Support Migration.400该主机不支持迁移。
CrossInstanceMigrateQueueExceedCross Instance Migrate Queue Exceed.400跨实例迁移队列已满
DataDiskGbInvalidParameterValueAn invalid or out-of-range value was supplied for the "DataDiskGb" parameter.400“数据卷容量”参数的取值无效或者超出有效范围
InstanceStateNotSupportedMigrateThe current status of the resource does not support this operation.400本操作执行时“实例状态”不支持
NoFoundOrderThe order information was not found.400未找到订单信息.
ParameterNotMatchparameter not match400参数不匹配
InstanceIdRequiredInstanceId is required400InstanceId必传
InstanceOpLockNotObtainInstanceOpLockNotObtain400当前实例在操作处理中,请稍后重试
NoFoundOrderInProcessNo order in process was found.400未找到正在处理中的订单.
InstanceOrderMustInUseThe "InstanceOrder" parameter must be used when calling directly from console.400使用控制台调用必须传递“实例订单”参数
MigrateNotSupportBillTypeThis BillType does not support migration.400该计费方式不支持迁移.
InstanceOrderNotInUseThe "InstanceOrder" parameter should not be used when calling directly from SDK or OpCenter.400使用SDK或者运营平台调用不应该传递“实例订单”参数
纯净模式常规模式

纯净模式

点击可全屏预览文档内容