Last updated: 2019-06-26 20:08:04

1. API Description

Domain name for API request:

This API (DescribeMalwares) is used to obtain the list of Trojan events.

Default request rate limit: 20/sec.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value​used for this API: DescribeMalwares.
Version Yes String Common parameter. The value used for this API: 2/28/2018
Region No String Common parameter. This parameter is not required for this API.
Uuid No String Unique Uuid of the client.
Limit No Integer Number of returned results. It defaults to 10. The maximum is 100.
Offset No Integer Offset. It defaults to 0.
Filters.N No Array of Filter Filter condition.
  • Keywords - String - Required: No - Query keywords
  • Status - String - Required: No - Trojan status (UN_OPERATED: Unprocessed | SEGREGATED: Isolated | TRUSTED: Trusted)

  • Only one value is allowed for each filter. Querying multiple values using "OR" relationship is not supported.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Total number of Trojans.
    Malwares Array of Malware Malware array.
    RequestId String The unique ID of a request, which is required for each troubleshooting case.

    4. Example

    Example 1 Obtain Trojan information

    Input example
    &<Common request parameters>

    Output example

      "Response": {
        "TotalCount": 100,
        "Malwares": [
            "Status": "TRUSTED",
            "Description": "webshell",
            "FilePath": "/temp/a.txt",
            "MachineName": "gd_1",
            "MachineIp": "",
            "ModifyTime": "2018/07/16 16:20",
            "FileCreateTime": "2018/07/16 16:20",
            "Id": 123,
            "Uuid": "UUID"
        "RequestId": "354f4ac3-8546-4516-8c8a-69e3ab73aa8a"

    5. Resources for Developers

    API Explorer

    This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using cloud APIs.

    6. Error Codes

    The following only lists the error codes related to this API. For other error codes, see Common Error Codes.

    Error Code Description
    InternalError Internal error.
    InvalidParameter.InvalidFormat Incorrect parameter format.
    InvalidParameter.MissingParameter Missing parameter.
    InvalidParameter.ParsingError Parameter parsing error.