Skip to main content

Query Schema Comparison Precheck Status

Query the precheck status and check item results for a schema comparison task.

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

Request Method: GET

Before You Call

Request Parameters

ParameterTypeRequiredDescriptionExample
taskIdStringYesSchema comparison task ID.cc-th6j3fs58y
precheckTaskIdStringYesPrecheck task ID.pcte-dji009w2k499

Response Parameters

ParameterTypeDescriptionExample
successBooleanWhether the request is successful.true
requestIdStringRequest ID, which can be used for troubleshooting and tracing.Pc2k1HKI-CIJDvWQnEIIb9GFdDHg0IUT
dataObjectPrecheck status object. See the fields below.See the example below
messageStringError message returned when the request fails.precheck task not found

data Fields

ParameterTypeDescriptionExample
taskIdStringSchema comparison task ID.cc-th6j3fs58y
precheckTaskIdStringPrecheck task ID.pcte-dji009w2k499
statusStringPrecheck status. Valid values include Unstarted, Running, Failed, and Success.Success
precheckItemsArrayExecution status, failure reason, and suggested fix for each precheck item.See the fields below

precheckItems Fields

ParameterTypeDescriptionExample
precheckItemStringCheck item identifier.srcDataSourceCheck
itemNameStringCheck item name.Source Connection Check
itemDescriptionStringCheck item description.Check the status of the gateway...
statusStringCheck item status. Valid values include Unstarted, Running, Failed, and Success.Success
errorMessageStringFailure reason and suggested fix returned when the check item fails.Please check datasource privileges.

Request Example

{
"taskId": "cc-th6j3fs58y",
"precheckTaskId": "pcte-dji009w2k499"
}

Successful Invocation Example

{
"success": true,
"requestId": "Pc2k1HKI-CIJDvWQnEIIb9GFdDHg0IUT",
"data": {
"taskId": "cc-th6j3fs58y",
"precheckTaskId": "pcte-dji009w2k499",
"status": "Success",
"precheckItems": [
{
"precheckItem": "srcDataSourceCheck",
"itemName": "Source Connection Check",
"itemDescription": "Check the status of the gateway of the source datasource, database connectable, and verify the username and password",
"status": "Success"
}
]
}
}