CreateScanTask

Updated at:

This operation creates a security scan task for firmware.

Request parameters

NameTypeRequiredExampleDescription
FwNameStringNocameraThe name of the firmware. The maximum length is 50 bytes.
FwVersionStringNo1.0The firmware version number. The maximum length is 50 bytes.
FwUrlStringYeshttps://****com/18/91fd9e86f53b4429b68b5266a9ce****?Expires=1572506923&OSSAccessKeyId=LT*******b31QS&Signature=f2deFrds/****The URL where the firmware file is stored. The scanner downloads the file from this URL. Only URLs for files stored in Alibaba Cloud OSS are supported.
EmailStringNo<username>@<company_domain>The email address to receive a notification when the firmware scan is complete. The maximum length is 128 bytes.
FwIdStringNodT7HdBSANYYc9chZRajy84eBCMQA****A custom firmware ID to identify a scan task. This parameter can be empty. The maximum length is 64 bytes.
DetectionRuleCodesStringNoCPoC2_3The detection rule. Valid values: empty, BASIC, CPoC2_2, and CPoC2_3. If you do not specify this parameter or leave it empty, BASIC is used by default. BASIC indicates a basic scan. CPoC2_2 indicates an MLPS 2.0 Level 2 scan. CPoC2_3 indicates an MLPS 2.0 Level 3 scan.

Response parameters

NameTypeExampleDescription
CodeInteger200The error code. A value of 200 indicates that the call is successful. For more information about other error codes, see Error codes.
MessageStringsuccessReturns a message.
DataStructRefer to the Data structure descriptionThe returned data.
RequestIdStringA07E3902-B92E-44A6-B6C5-6AA1111111359The unique ID generated by Alibaba Cloud for the request.

Data structure

NameTypeExampleDescription
TaskIdStringcfecd128592941f48c 2da09492a4****The unique ID of the scan task.