跳到主要内容

查看复制任务预检查状态

查询指定复制任务的预检查状态和检查项结果。

请求地址:/openapi/v1/replication/precheck/status

请求方法:GET

请求参数

参数类型是否必选说明示例
replicationIdString复制任务 ID。rp-div0qqpbffio

返回参数

参数类型说明示例
successBoolean请求是否成功。true
requestIdString请求 ID。Tv8j8OCQ-JPQIeDXnIMNi2TEdLNx0HDG
dataObject预检查状态详情,字段见data 字段说明见下方示例
messageString失败时返回的提示信息。replication rp-xxx not found

data 字段说明

参数类型说明示例
replicationIdString复制任务 ID。rp-div0qqpbffio
precheckStatusString预检查总体状态,取值为 successwarningfailurefailure
itemsArray检查项列表,元素字段见items 字段说明见下方示例

items 字段说明

参数类型说明示例
itemIdString检查项 ID。srcDataSourceCheck
itemNameString检查项名称。Source datasource connection check
itemDescriptionString检查项描述。Check the status of the gateway of the source datasource, database connectable, and verify the username and password
statusString检查项状态,取值为 successwarningfailurefailure
messageString检查项提示信息。检查通过时通常为空字符串。Failed to connect datasource...

调用成功示例

{
"success": true,
"requestId": "Tv8j8OCQ-JPQIeDXnIMNi2TEdLNx0HDG",
"data": {
"replicationId": "rp-div0qqpbffio",
"precheckStatus": "failure",
"items": [
{
"itemId": "replBidirectionLoopExistCheck",
"itemName": "Cyclic replication check",
"itemDescription": "Check for replication loops",
"status": "success",
"message": ""
},
{
"itemId": "srcDataSourceCheck",
"itemName": "Source datasource connection check",
"itemDescription": "Check the status of the gateway of the source datasource, database connectable, and verify the username and password",
"status": "failure",
"message": "Failed to connect datasource hzyh-ce-gaussdb: root@123.60.66.55:8000:0 Caused by: Connection timed out"
}
]
}
}