Querying Data-level Table Comparison Tasks
Function
This API is used to query data-level table comparison tasks.
URI
GET /v3/{project_id}/jobs/{job_id}/table/compare
Parameter | Mandatory | Type | Description |
|---|---|---|---|
project_id | Yes | String | Project ID of a tenant in a region. For details, see Obtaining a Project ID. |
job_id | Yes | String | Task ID. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
limit | No | Integer | Number of items displayed per page. Default value: 1000 |
offset | No | Integer | Offset, which is the position where the query starts. The value must be no less than 0. Default value: 0 |
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 Enumerated values:
|
Response Parameters
Status code: 200
Parameter | Type | Description |
|---|---|---|
compare_jobs | Array of objects | Table comparison task details. For details, see Table 5. |
count | Long | Number of tasks. |
Parameter | Type | Description |
|---|---|---|
id | String | ID of a comparison task. |
type | String | Comparison type.
|
options | Map<String,String> | Configuration item for a comparison task. The value is a key-value pair. Value comparison supports the following configuration items:
Row comparison supports the following configuration items:
|
start_time | String | Start time in UTC format, for example, 2020-09-01T18:50:20Z. |
end_time | String | End time in UTC format, for example, 2020-09-01T18:50:20Z. |
status | String | Status of a comparison task.
|
export_status | String | Status of the exported comparison result.
|
report_remain_seconds | Long | Remaining validity period of the exported comparison result. |
compare_job_tag | Map<String,String> | Tag of a comparison task. This parameter is returned only when a comparison policy is configured. |
proportion_value | String | Sampling ratio. Set this parameter when the comparison type is set to sampling comparison. |
Example Request
Querying data-level table comparison tasks
https://{endpoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/{job_id}/table/compare?offset=0&limit=10 Example Response
Status code: 200
OK
{
"count" : 2,
"compareJobs" : [ {
"id" : "48c6acb4-1473-48fd-8676-df3705758c27",
"type" : "lines",
"options" : { },
"status" : "SUCCESSFUL",
"start_time" : "2024-03-14T06:30:14Z",
"end_time" : "2024-03-14T06:31:14Z",
"export_status" : "INIT",
"report_remain_seconds" : -1
}, {
"id" : "9e01bd96-e627-4538-a545-5f31d1c88e94",
"type" : "lines",
"options" : { },
"status" : "SUCCESSFUL",
"start_time" : "2024-03-14T06:30:14Z",
"end_time" : "2024-03-14T06:31:14Z",
"export_status" : "INIT",
"report_remain_seconds" : -1,
"proportion_value" : "1"
} ]
} Status code: 400
Bad Request
{
"error_code" : "DRS.M00202",
"error_msg" : "The value of jobId is invalid."
} Status Code
Status Code | Description |
|---|---|
200 | OK |
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.

