Get Data Query Task Results¶
GET /api/v1/log_backup_query/get_result
Overview¶
Retrieve the results of an asynchronous data forwarding query task, returning the query results.
Query Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| taskId | string | Y | Task ID Example: xxx Allow Empty: False |
Parameter Additional Notes¶
Field descriptions in the response results.
| Parameter Name | type | Description |
|---|---|---|
| token | string | Query cursor, if pagination query is needed, carry the token from the request result |
| row | string | Retrieved row information |
| task_status | string | Task status (created, running, completed, failed) |
| total_files | integer | Total number of files |
Note: When the task status is created and running, it indicates that the retrieval is still in progress. completed and failed indicate that the retrieval has ended.¶
Request Example¶
curl 'https://openapi.guance.com/api/v1/log_backup_cfg/get_result?taskId=d4ih5flt3l333a0ulmu0:a29kby14LWJhY2t1cGxvZy0w' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed
Response¶
{
"code": 200,
"content": {
"token": "xxxxx",
"row": [
{
"message": "{\"date\":1764000000519,\"message\":\"{}\",\"source\":\"xxxx\"}",
"date": 1764000000519
},
{
"message": "{\"date\":1764000000519,\"message\":\"{}\",\"source\":\"xxxx\"}",
"date": 1764000000220
}
],
"is_truncated": true,
"total_files": 2,
"search_completed": 0,
"task_status": "completed"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "5f9d98a48909bae85d711a9d5219e882"
}