全部文档
当前文档

暂无内容

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

文档中心

创建预迁移

接口说明

创建预约变更实例类型

请求参数

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

实例id

InstanceType String

目标实例类型

SystemDiskType String

云盘系统盘的类型。

有效值:SSD3.0,EHDD

DataDiskType String

云盘数据盘的类型。

有效值:SSD3.0,EHDD

InstantAccess Boolean

支持快速开盘/快速变更,该参数仅对本地盘/本地盘机型/本地盘快照生效

返回参数

参数名称
类型
描述
RequestId String
示例值:f8c439d7-500a-4b83-be5e-fcca620d76cf
Return Boolean
示例值:true

请求示例

curl -X GET|POST
'http://kec.api.ksyun.com/?Action=PreMigrateInstance&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 'InstanceId=xxx&InstanceType=xxx&SystemDiskType=xxx&DataDiskType=xxx&InstantAccess=xxx'

返回示例

JSON格式

{
"RequestId":"f8c439d7-500a-4b83-be5e-fcca620d76cf",
"Return":"true"
}

错误码

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

错误码
错误信息
Http状态码
描述
InvalidParameter暂无400参数异常
OnlyInstanceWithLocalVolumeSupportInstantAccessMode暂无400只有挂在了本地数据盘才支持快速开盘
RepetitiveOperationDo not repeat operation.400请勿重复操作.
InstanceIdInvalidInstance Resource id is invalid400实例资源ID无效
InstanceTypeInvalidParameterValueAn invalid or out-of-range value was supplied for the "InstanceType" parameter.400“实例套餐类型”参数的取值无效或者超出有效范围
ProductGroupNotSupportedProductGroupNotSupported400产品组不支持
CheckInstanceTradeStatusInstance ID {0} not support operate in current instance status.400实例ID {0}不支持当前实例状态下的操作.
InstanceStatusInvalidThe Instance status is wrong.400仅支持在运行中/已关闭状态的实例创建预迁移。
InstancesHaveMigratedMigrated instances don't support migrate.400已迁移过的实例不再支持迁移。
InstanceModelInvalidThe Instance model is wrong.400仅支持本地盘机型创建预迁移。
LocalVolumeSizeInvalidThe size of the local data disk is 0, no appointment is required, please change the instance directly.400本地数据盘大小为0, 无需预约,请直接进行实例变更即可。
InstanceBeforeMigrateStateNotSupportedMigrateThis instance is not in the correct pre-migrated state for change operations.400该实例预迁移状态不正确, 无法进行变更操作.
CrossInstanceMigrateQueueExceedCross Instance Migrate Queue Exceed.400跨实例迁移队列已满
NotFoundInstanceOrderThe instance order was not found.400未找到该实例订单.
CrossInstanceNotSupportBillTypeThis bill type does not support cross the instance type.400该计费方式不支持变更实例类型
NotSupportTrialThis operation does not support trial orders.400该操作不支持试用订单.
NotSupportAsInstanceThis operation does not support elastic scaling instances.400"该操作不支持弹性伸缩实例".
EbsDataDiskProductSellOutInvalidebs data disk [{0}] product already sell out.400此ebs数据盘[{0}]商品在该机房已售罄.
NotFoundMigrateDedicatedThe can migrate dedicated was not found.400未查询到配置的可迁移宿主机信息.
SystemDiskTypeInvalidAn invalid or out-of-range value was supplied for the "SystemDisk.DiskType" parameter.400“系统盘类型”参数的取值无效或者超出有效范围.
DataDiskTypeInvalidAn invalid or out-of-range value was supplied for the "DataDisk.Type" parameter.400“数据盘类型”参数的取值无效或者超出有效范围.
ProductPermissionDeniedThis package cannot be used400用户不能使用该套餐
ProductTypeInvalidproductType is invalid .400产品类型无效
InstanceFamilyNameInvalidThe InstanceFamilyName parameter is illegal, and the relevant model information is not found.400InstanceFamilyName参数非法,未找到相关机型信息。
InternalError400 BAD_REQUEST : : {"badRequest": {"message": "('instance lack for common feature', {'error_type': 'NovaException', 'code': 500})", "code": 400}}400
NoMatchCanMigrateTypeNo matching changeable type.400无匹配的可变更类型。
纯净模式常规模式

纯净模式

点击可全屏预览文档内容