QueryTaskStatus
Updated at:
Call this operation to query the current status of a detection task.
Background information
This API operation is being deprecated. Use the QueryTaskReportUrls operation to obtain detection reports.
Request parameters
| Name | Type | Required | Example | Description |
| TaskId | String | Yes | cfecd128592941f48c 2da0FFF******** | The unique ID of the detection task. |
Response parameters
| Name | Type | Example | Description |
| Code | Integer | 200 | The error code. A value of 200 indicates that the call is successful. For information about other error codes, see Error codes. |
| Message | String | Success | The returned message. |
| Data | Struct | See the Data structure | The returned data. |
| RequestId | String | A07E3902-B92E-44A6-B6C5-FFFFFFFFFFF | A common parameter. The ID of each request is unique. Use this ID to troubleshoot and locate issues. |
Data structure
| Name | Type | Example | Description |
| ScanStatus | String | SCAN_STATUS_SCAN_COMPLETE | The name of the detection status. |
| Description | String | See the Detection status | The description of the detection status. |
| ScannedRate | String | 91.3 | The percentage of the detection that is complete. |
Detection status
| Status value | Description |
| SCAN_STATUS_QUEUING | The detection task is in the queue. |
| SCAN_STATUS_DOWNLOADING | The firmware is being downloaded. |
| SCAN_STATUS_DOWNLOAD_FAILED | The firmware failed to be downloaded. This is a final status of the detection task. |
| SCAN_STATUS_PARSING | The firmware is being parsed. |
| SCAN_STATUS_PARSE_COMPLETE | The firmware is parsed. |
| SCAN_STATUS_SCANNING | The firmware is being scanned. |
| RPT_GENERATING | The detection report is being generated. |
| RPT_GENERATE_FAILED | The detection report failed to be generated. This is a final status of the detection task. |
| SCAN_STATUS_SCAN_EXCEPTION | The firmware scan failed. An exception occurred during the detection. This is a final status of the detection task. |
| SCAN_STATUS_SCAN_COMPLETE | The firmware is scanned. The detection is complete. This is a final status of the detection task. Note When ScanStatus is SCAN_STATUS_SCAN_COMPLETE, call the QueryTaskReport operation to obtain the complete detection report. |
Is this page helpful?