参数名称 | 类型 | 必填 | 描述 |
---|
Action | String | 是 | 公共参数,本接口取值:ModifyInstanceType。 |
Version | String | 是 | 公共参数,本接口取值:2016-03-04。 |
InstanceId | String | 是 | 待调整配置的实例ID 示例值:13536cc1-0dbd-4741-87d3-f7abbb0db329 |
InstanceType | String | 是 | 实例目标套餐规格 示例值:C1.1B |
InstanceConfigure.VCPU | String | 否 | 目标CPU值;当需变更实例为专属虚机时需填写该值 示例值:- |
InstanceConfigure.MemoryGb | String | 否 | 目标内存值 |
DataDiskGb | Int | 否 | 数据卷容量,单位GB,数据卷只能扩容或者保持不变,且不能低于实例套餐类型定义的最小值。 示例值:1 |
CrossInstanceMigrate | Boolean | 否 | 当前操作是否为变更实例套餐类型,若当前操作变更实例类型必须指定为true。(变更过程中必须保持云服务器关机状态;变更完成后启动云服务器生效;涉及本地盘类型的机型变更需加白名单) true/false 示例值:- |
SystemDisk.DiskType | String | 否 | 不能给默认值,不传默认按价格体系配置systemDisk属性中第一个创建 示例值:- |
DataDisk.N | Object | 否 | 目标套餐数据盘类型(当本地盘机型变更为云盘机型时才需填写此参数,此参数仅对源本地数据盘生效) 示例值:- |
Type | String | 否 | 是,本地盘变云盘时此参数不可缺省 示例值:- |
Size | String | 否 | 是,本地盘变云盘时此参数不可缺省 示例值:- |
StopInstance | Boolean | 否 | 是否对运行中的实例选择关机:是-true,否-false(默认) |
AutoRestart | Boolean | 否 | 变更实例类型后是否自动重启: 是-true,否-false(默认) |
SystemDisk.DiskSize | Int | 否 | 系统盘大小,最大值500,最小值0 |
SystemDisk.ResizeType | String | 否 | 扩容 offline 离线扩容| online 在线扩容 |
InstantAccess | Boolean | 否 | 支持快速开盘/快速变更,该参数仅对本地盘/本地盘机型/本地盘快照生效 |
参数名称 | 类型 | 描述 |
---|
RequestId | String | 示例值:7a6fa859-85e6-40ba-95d2-69deb5e43b6a |
Return | Boolean | 示例值:true |
JSON格式
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码
错误码 | 错误信息 | Http状态码 | 描述 |
---|
CrossInstanceMigrateQueueNoSetting | cross instance migrate queue no setting. | 400 | 变更实例类型队列未进行配置. |
MinProductInvalid | No additional microflavor quota is available for the specified instance type in this region. | 400 | 可开小套餐虚机数量超过该机型该地域的配额上限 |
EbsProductPermissionDenied | The EBS package cannot be used | 400 | 用户不能使用该EBS套餐 |
SystemDiskInfoInvalid | This systemDiskInfo is not valid. | 400 | 系统盘信息无效或不完整 |
InstanceBeforeMigrateStateNotSupportedMigrate | This instance is not in the correct pre-migrated state for change operations. | 400 | 该实例预迁移状态不正确, 无法进行变更操作. |
BindingEBSNumberInvalid | binding EBS number is invalid. | 400 | 超过实例绑定ebs数据盘数量限制 |
BindingEBSTypeInvalidParameterValue | binding EBS type is required. | 400 | EBS盘类型不允许为空 |
ImageIdInvalidParameterValue | An invalid or out-of-range value was supplied for the "ImageId" parameter. | 400 | “镜像ID”参数的取值无效或者超出有效范围 |
SystemDiskSizeInvalid | An invalid or out-of-range value was supplied for the "SystemDisk.DiskSize" parameter. | 400 | “系统盘大小”参数的取值无效或者超出有效范围. |
SystemDiskTypeNotChangeAllowed | The systemDiskType cannot be changed,from [{0}] to [{1}]. | 400 | 系统盘类型不允许变更,从 [{0}] 到 [{1}]. |
SubOrderBindedInstance | subOrder already bound instance | 400 | 子订单已经绑定实例 |
InstanceTypeNotSupportBindingEBS | InstanceType does not support binding EBS. | 400 | 实例类型不支持绑定ebs数据盘 |
InstanceTypeNotSupportUpgrade | This InstanceType does not support adjustment configuration. | 400 | 该机型不支持调整配置 |
EbsSystemDiskProductSellOutInvalid | ebs system disk [{0}] product already sell out. | 400 | 此ebs系统盘[{0}]商品在该机房已售罄. |
DataDiskParamInvalid | DataDisk param is invalid. | 400 | DataDisk.n.Type/DataDisk.n.Size 参数格式填写错误 |
SystemDiskTypeInvalid | An invalid or out-of-range value was supplied for the "SystemDisk.DiskType" parameter. | 400 | “系统盘类型”参数的取值无效或者超出有效范围. |
InstanceTypeInvalidParameterValue | An invalid or out-of-range value was supplied for the "InstanceType" parameter. | 400 | “实例套餐类型”参数的取值无效或者超出有效范围 |
InstanceStateNotSupportedLiveUpgrade | The Instance state is not support live upgrade. | 400 | 只有运行中的主机支持热升级 |
BindingEBSTypeInvalid | binding EBS type is invalid. | 400 | 该实例不支持绑定此类型的ebs数据盘 |
TargetInstanceNotSupportIPV6ForModifyInstanceType | The change is not allowed because the target instance type does not support IPv6. | 400 | 因目标实例类型不支持IPv6,不允许变更 |
OperationDeniedSpotInstance | 暂无 | 400 | 暂无 |
BindingEBSSizeParamInvalid | The size of the EBS disk out-of-range, should be [{0} - {1}], and the multiple of [{2}]. | 400 | EBS数据盘大小超出有效范围:[{0} - {1}],且为[{2}]的倍数。 |
InstanceType DataDisk Config Invalid | 暂无 | 400 | 暂无 |
ExceedHotUpgradeMemoryLimit | Maximum 64 G memory per expansion and 128 G total memory to support expansion. | 400 | 单次扩容内存数量最大32G,累计扩容内存数量最大128G,如超出范围请使用普通调整配置功能 |
InstanceTypeUpgradeNotSupported.Disk | The disk size of upgraded InstanceType should be more than that of old one. | 400 | 升级目标实例类型的磁盘卷容量要大于旧实例的磁盘卷容量 |
InstanceOrderMustInUse | The "InstanceOrder" parameter must be used when calling directly from console. | 400 | 使用控制台调用必须传递“实例订单”参数 |
InvalidImageForOnlineResize | The specified image does not support online resizing. | 400 | 指定的镜像不支持在线扩容 . |
InvalidInstanceStatusForOnlineResize | The instance must be running for resizing system disk online. | 400 | 指定的主机状态不支持在线扩容 |
InstanceType Net Config Invalid | 暂无 | 400 | 暂无 |
InstanceIdInvalid | Instance Resource id is invalid | 400 | 实例资源ID无效 |
InstanceConfigureGPUInvalid | An invalid or out-of-range value was supplied for the "InstanceConfigure.GPU" parameter. | 400 | "InstanceConfigure.GPU"参数范围无效 |
InstanceTypeUpgradeNotSupportedDisk | 暂无 | 400 | 暂无 |
InstanceStateNotSupportedMigrate | The current status of the resource does not support this operation. | 400 | 本操作执行时“实例状态”不支持 |
InstanceTypeUpgradeNotSupportedTypeSame | The Configuration of upgraded InstanceType should not be the same with the old one. | 400 | 升级目标实例类型的配置不能与原来一致 |
InstanceTypeUpgradeNotSupported | The upgraded InstanceType is not in the same type with the old InstanceType. | 400 | 升级目标实例类型与源实例类型不属于同一类型 |
InsufficientDedicatedHostResourcesForMigrate | Instance expansion is not allowed because the dedicated host resource is insufficient. | 400 | 所在宿主机资源不足,实例无法升配。 |
GPUVMConfigurationReductionNotSupported | The GPUVM does not allow configuration reduction. | 400 | GPUVM不允许降配 |
InternalError | Internal Error | 400 | 暂无 |
ResetDiskSizeLessThanCurrentSize | ResetDiskSizeLessThanCurrentSize | 400 | 重装系统时系统盘大小不能调小 |
ProductSellOutInvalid | product already sell out. | 400 | 此商品在该机房已售罄. |
CrossInstanceNotSupportBillType | This bill type does not support cross the instance type. | 400 | 该计费方式不支持变更实例类型 |
InstanceType CPU Or Mem Config Invalid | 暂无 | 400 | 暂无 |
InstanceTypeNoneInvalid | Create or upgrade does not support non-standard instancetype. | 400 | 创建、升配不支持非标套餐. |
CrossInstanceNotSupportBindingEBS | The Instance has already mounted EBS2.0 disk, do not support cross the instance type! | 400 | 云主机已经挂载EBS2.0云盘,不支持变更实例类型! |
ReservePreMigrateParamNotMatch | The reservation type of this instance does not match the parameters | 400 | 此实例的预约类型与参数不匹配. |
InstanceTypeNotFound | 暂无 | 400 | 暂无 |
DataDiskGbInvalidParameterValue | An invalid or out-of-range value was supplied for the "DataDiskGb" parameter. | 400 | “数据卷容量”参数的取值无效或者超出有效范围 |
ProductTypeNotSupportDiskModify | The specified instance type does not support resizing datadisk volume. | 400 | 该机型不支持调整数据盘大小 |
InstanceOpLockNotObtain | InstanceOpLockNotObtain | 400 | 当前实例在操作处理中,请稍后重试 |
InstanceOrderNotInUse | The "InstanceOrder" parameter should not be used when calling directly from SDK or OpCenter. | 400 | 使用SDK或者运营平台调用不应该传递“实例订单”参数 |
BindingEBSSizeInvalidParameterValue | binding EBS size is required. | 400 | EBS盘大小不允许为空 |
OnlineExpansionNotSupportChangeInstanceType | Change InstanceType are not supported for online expansion. | 400 | 在线扩容不支持变更套餐. |
纯净模式