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

NameTypeRequiredExampleDescription
TaskIdStringYescfecd128592941f48c 2da0FFF********The unique ID of the detection task.

Response parameters

NameTypeExampleDescription
CodeInteger200The error code. A value of 200 indicates that the call is successful. For information about other error codes, see Error codes.
MessageStringSuccessThe returned message.
DataStructSee the Data structureThe returned data.
RequestIdStringA07E3902-B92E-44A6-B6C5-FFFFFFFFFFFA common parameter. The ID of each request is unique. Use this ID to troubleshoot and locate issues.
Data structure
NameTypeExampleDescription
ScanStatusStringSCAN_STATUS_SCAN_COMPLETEThe name of the detection status.
DescriptionStringSee the Detection statusThe description of the detection status.
ScannedRateString91.3The percentage of the detection that is complete.
Detection status
Status valueDescription
SCAN_STATUS_QUEUINGThe detection task is in the queue.
SCAN_STATUS_DOWNLOADINGThe firmware is being downloaded.
SCAN_STATUS_DOWNLOAD_FAILEDThe firmware failed to be downloaded. This is a final status of the detection task.
SCAN_STATUS_PARSINGThe firmware is being parsed.
SCAN_STATUS_PARSE_COMPLETEThe firmware is parsed.
SCAN_STATUS_SCANNINGThe firmware is being scanned.
RPT_GENERATINGThe detection report is being generated.
RPT_GENERATE_FAILEDThe detection report failed to be generated. This is a final status of the detection task.
SCAN_STATUS_SCAN_EXCEPTIONThe firmware scan failed. An exception occurred during the detection. This is a final status of the detection task.
SCAN_STATUS_SCAN_COMPLETEThe 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.