Skip to main content

Query Replication Task Precheck Status

Queries the precheck status and check item results of a specified replication task.

Request URL: /openapi/v1/replication/precheck/status

Request Method: GET

Request Parameters

ParameterTypeRequiredDescriptionExample
replicationIdStringYesReplication task ID.rp-div0qqpbffio

Response Parameters

ParameterTypeDescriptionExample
successBooleanWhether the request was successful.true
requestIdStringRequest ID.Tv8j8OCQ-JPQIeDXnIMNi2TEdLNx0HDG
dataObjectPrecheck status details. See data Fields.See the example below
messageStringMessage returned when the request fails.replication rp-xxx not found

data Fields

ParameterTypeDescriptionExample
replicationIdStringReplication task ID.rp-div0qqpbffio
precheckStatusStringOverall precheck status. Values: success, warning, failure.failure
itemsArrayCheck item list. See items Fields.See the example below

items Fields

ParameterTypeDescriptionExample
itemIdStringCheck item ID.srcDataSourceCheck
itemNameStringCheck item name.Source datasource connection check
itemDescriptionStringCheck item description.Check the status of the gateway of the source datasource, database connectable, and verify the username and password
statusStringCheck item status. Values: success, warning, failure.failure
messageStringCheck item message. Usually empty when the item passes.Failed to connect datasource...

Successful Invocation Example

{
"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"
}
]
}
}