Querying Task Progress in Batches
Function
This API is used to query the full progress and incremental delay information in batches based on the task ID.
URI
POST /v3/{project_id}/jobs/batch-progress
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region For details about how to obtain the project ID, see Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
The content type. The default value is application/json. |
X-Auth-Token |
Yes |
String |
User token obtained from IAM. |
X-Language |
No |
String |
Request language type Default value: en-us Values:
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
jobs |
Yes |
Array of strings |
Request for querying task progress in batches. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
count |
Integer |
Total number. |
results |
Array of objects |
Response body for querying the migration progress in batches. For details, see Table 5. |
Parameter |
Type |
Description |
---|---|---|
job_id |
String |
Task ID. |
progress |
String |
Migration percentage. |
incre_trans_delay |
String |
Incremental migration delay (unit: s). |
incre_trans_delay_millis |
String |
Incremental migration delay (unit: ms). |
task_mode |
String |
Task mode. Values:
|
transfer_status |
String |
Task status. |
process_time |
String |
Migration time in timestamp format. |
remaining_time |
String |
Estimated remaining time. |
progress_map |
Map<String,ProgressInfo> |
Data, structure, and index migration progress information body. For details, see Table 6. |
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Request
Example of querying the DR progress:
https://{endpoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/batch-progress { "jobs" : [ "8d0e8e36-a618-490d-8a46-8c61ac9jb502" ] }
Example Response
Status code: 200
OK
- Example response 1 for querying the DR progress:
{ "count" : 1, "results" : [ { "progress" : "100", "job_id" : "8d0e8e36-a618-490d-8a46-8c61ac9jb502", "incre_trans_delay" : "0", "task_mode" : "FULL_INCR_TRANS", "transfer_status" : "INCRE_TRANSFER_STARTED", "process_time" : "1608274919000", "remaining_time" : "0" } ] }
- Example response 2 for querying the DR progress:
{ "count" : 2, "results" : [ { "progress" : "100", "job_id" : "edae91cb-5892-49b6-a529-4921fb26jb21", "incre_trans_delay" : "0", "task_mode" : "FULL_INCR_TRANS", "transfer_status" : "INCRE_TRANSFER_STARTED", "process_time" : "1594864576000", "remaining_time" : "10" }, { "progress" : "0", "job_id" : "f95c5d83-d0c9-42bd-b295-38c31cd1jb15", "incre_trans_delay" : "-1", "task_mode" : "FULL_INCR_TRANS", "transfer_status" : "FULL_TRANSFER_COMPLETE", "process_time" : "0", "remaining_time" : "0", "progress_map" : { "struct" : { "completed" : "94%", "remaining_time" : null }, "data" : { "completed" : "100%", "remaining_time" : null }, "index" : { "completed" : "100%", "remaining_time" : null } } } ] }
Status Code
Status Code |
Description |
---|---|
202 |
Accepted |
400 |
Bad Request |
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.