Skip to main content

Query Data Comparison Precheck Status

Query the execution status and check item results of a specified data comparison precheck task.

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

Request Method: GET

Before You Call

Request Parameters

ParameterTypeRequiredDescriptionExample
taskIdStringYesID of the data comparison task whose precheck status you want to query.cd-tg3isu1xgs
precheckTaskIdStringYesID of the precheck task to query.pcte-dj02vti9tabd

Response Parameters

ParameterTypeDescriptionExample
successBooleanWhether the request is successful.true
requestIdStringRequest ID, which can be used for troubleshooting and tracing.Lu8t2KPM-eqqraVGnllse6BZdmnh5DQM
dataObjectPrecheck status object.See the field descriptions below

data Fields

ParameterTypeDescriptionExample
taskIdStringData comparison task ID.cd-tg3isu1xgs
precheckTaskIdStringPrecheck task ID.pcte-dj02vti9tabd
statusStringPrecheck task status. Valid values: Unstarted, Running, Failed, and Success.Success
precheckItemsArrayList of precheck items, including each item's status, failure reason, and remediation suggestion.See the field descriptions below

precheckItems Fields

ParameterTypeDescriptionExample
precheckItemStringCheck item identifier.targetDataExistCheck
statusStringCheck item status. Valid values: Unstarted, Running, Failed, and Success.Success
errorMessageStringFailure reason and remediation suggestion returned when the check item fails.Target tables are missing _sign and _version columns. Add the columns and run the precheck again.
itemNameStringCheck item name.Source database privilege check
itemDescriptionStringCheck item description.Check whether the account privileges of the source database meet the requirements

Request Example

{
"taskId": "cd-tg3isu1xgs",
"precheckTaskId": "pcte-dj02vti9tabd"
}

Successful Invocation Example

{
"success": true,
"requestId": "Lu8t2KPM-eqqraVGnllse6BZdmnh5DQM",
"data": {
"taskId": "cd-tg3isu1xgs",
"precheckTaskId": "pcte-dj02vti9tabd",
"status": "Success",
"precheckItems": [
{
"precheckItem": "compareSrcPermissionCheck",
"itemName": "Source database privilege check",
"itemDescription": "Check whether the account privileges of the source database meet the requirements",
"status": "Success"
},
{
"precheckItem": "targetDataSourceCheck",
"itemName": "Target Connection Check",
"itemDescription": "Check the status of the gateway of the target datasource, database connectable, and verify the username and password",
"status": "Success"
}
]
}
}