Skip to main content

Query Replication Task Status

Use this API to query the status of a specified replication task, including the current subtask, progress, and incremental delay.

Request URL: /openapi/v1/replication/status

Request Method: GET

Request Parameters​

ParameterTypeRequiredDescriptionExample
replicationIdStringYesReplication task ID.rp-div0t0awwobr

Response Parameters​

ParameterTypeDescriptionExample
successBooleanWhether the request was successful.true
requestIdStringRequest ID.Zo7y2QBS-djkcnZHncghz7KWdekc9PRT
dataObjectReplication task status details. See data Fields.See the example below

data Fields​

ParameterTypeDescriptionExample
replicationIdStringReplication task ID.rp-div0t0awwobr
statusStringTask status. See Task Status Values.running
currentSubTaskTypeStringCurrent subtask type. See Subtask Type Values.inc_writer
subTaskListArraySubtask list. See Subtask Fields.See the example below

Subtask Fields​

ParameterTypeDescriptionExample
subTaskTypeStringSubtask type. See Subtask Type Values.schema
statusStringSubtask status. See Task Status Values.success
percentNumberSubtask progress percentage. The value range is 0 to 100. Running incremental subtasks usually return 0.100.0
delayIntegerIncremental synchronization delay in milliseconds. This field may be absent for non-incremental subtasks.0

Successful Invocation Example​

{
"success": true,
"requestId": "Zo7y2QBS-djkcnZHncghz7KWdekc9PRT",
"data": {
"replicationId": "rp-div0t0awwobr",
"status": "running",
"currentSubTaskType": "inc_writer",
"subTaskList": [
{
"subTaskType": "schema",
"status": "success",
"percent": 100.0
},
{
"subTaskType": "full",
"status": "success",
"percent": 100.0
},
{
"subTaskType": "inc_writer",
"status": "running",
"percent": 0.0,
"delay": 0
}
]
}
}

Result​

A successful response returns the task status and subtask progress for the specified replication task.

Task Status Values​

createSuccess, preChecking, preCheckSuccess, preCheckFailed, notStarted, starting, running, success, failed, suspended, abnormal, stopped, locked.

Subtask Type Values​

ValueDescription
schemaSchema replication.
fullFull replication.
inc_writerIncremental replication.
triggerTrigger replication.