该接口用于查看实例迁移状态列表。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClientToken | string | 否 | 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。 | ETnLKlblzczshOTUbOCz******* |
DBInstanceId | string | 是 | 实例ID。可调用DescribeDBInstances获取。 | rm-bp***** |
Engine | string | 是 | 数据库类型。取值:MySQL | MySQL |
ImportId | integer | 否 | 迁移任务的ID。 | 123 |
StartTime | string | 是 | 查询开始时间。格式:yyyy-MM-ddTHH:mmZ(UTC时间)。 | 2023-06-11T15:00Z |
EndTime | string | 是 | 查询结束时间。格式:yyyy-MM-ddTHH:mmZ(UTC时间)。 | 2023-06-11T16:00Z |
PageSize | integer | 否 | 每页记录数。取值:
默认值:30。 | 30 |
PageNumber | integer | 否 | 页码,取值:大于0且不超过Integer的最大值。 默认值:1。 | 1 |
ResourceGroupId | string | 否 | 资源组ID。可调用DescribeDBInstanceAttribute获取。 | rg-acfmy***** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "B000AA91-393D-46F9-8D9B-098E28931A3A",
"PageNumber": 1,
"PageRecordCount": 1,
"TotalRecordCount": 1,
"Items": {
"ImportResultFromDB": [
{
"IncrementalImportingTime": "2023-06-11T15:00Z",
"ImportId": 123,
"ImportDataStatus": "NotStart",
"ImportDataType": "Full",
"ImportDataStatusDescription": "描述信息。"
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidMigrationType.Format | Specified migration type is not valid. | 指定的迁移类型无效。 |
400 | InvalidPageNumbers.Malformed | Specified page number is not valid. | 页码数不存在。 |
400 | ParameterLeastAssociate | Must input at least one optional parameter | 必须输入至少一个可选参数。 |
400 | InvalidParameterCombination | The end time must be greater than the start time | 结束时间必须晚于开始时间。 |
403 | OperationDenied.DBInstanceType | The operation is not permitted due to type of instance. | 实例类型不支持该操作,请核实是否是主实例。 |
403 | InvalidMaxRecordsPerPage.Malformed | Specified record number is not valid. | 指定的记录号不正确。 |
404 | InvalidDBInstanceName.NotFound | Invalid DBInstanceId NotFound. | 数据库实例ID不存在,请检查。 |
404 | InvalidDBInstance.NotFound | Specified instance does not exist or not support. | 指定的实例不存在指定的实例被删除或者实例不支持当前操作。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-07-25 | OpenAPI 错误码发生变更,OpenAPI 入参发生变更 | 看变更集 | ||||||||||||
|