全部文档
当前文档

暂无内容

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

文档中心

取消预迁移

接口说明

取消预迁移

请求参数

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

实例id

返回参数

参数名称
类型
描述
RequestId String
示例值:73939469-ab5c-4229-9d3a-5b1
Return Boolean
示例值:true

请求示例

curl -X GET|POST
'http://kec.api.ksyun.com/?Action=CancelPreMigrateInstance&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'

返回示例

JSON格式

{
"RequestId":"73939469-ab5c-4229-9d3a-5b1",
"Return":"true"
}

错误码

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

错误码
错误信息
Http状态码
描述
InstanceIdInvalidInstance Resource id is invalid400实例资源ID无效
RepetitiveOperationDo not repeat operation.400请勿重复操作.
NotFoundVolumeIdNo data disk information is found, please try again later.400未查询到数据盘信息,请稍后重试.
CancelPreMigrateFailedMigration has been triggered, cancel operation failed.400任务取消失败, 请稍后重试.
NotSupportCancelPreMigrateOnly support "reserve_pre_migrate_queue" or "reserve_pre_migrated" instances to cancel the appointment400仅支持”预迁移排队中“或”待变更“的实例取消预约.
VolumeStatusNotSupportDeleteData disk status does not support cancel, please try again later.400数据盘状态不支持取消,请稍后重试。
InternalError400 BAD_REQUEST : : {"badRequest": {"message": "The instance has been suspended, donot need stop it, the status is cleanup", "code": 400}}400
纯净模式常规模式

纯净模式

点击可全屏预览文档内容