tencent cloud

Feedback

DescribeMalWareList

Last updated: 2024-08-27 11:37:54

1. API Description

Domain name for API request: cwp.tencentcloudapi.com.

This API is used to obtain the Trojan list.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

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 Params. The value used for this API: DescribeMalWareList.
Version Yes String Common Params. The value used for this API: 2018-02-28.
Region No String Common Params. This parameter is not required.
Limit No Integer Number of items to be returned. It is 10 by default, and the maximum value is 100.
Offset No Integer Offset, which defaults to 0
Filters.N No Array of Filter Filter criteria
  • IpOrAlias - String - required: no - filter by host IP or alias
  • FilePath - String - required: no - filter by path
  • VirusName - String - required: no - filter by description
  • CreateBeginTime - String - required: no - filter by creation time - start time
  • CreateEndTime - String - required: no - filter by creation time - end time
  • Status - String - required: no - filter by status: 4 - pending; 5 -- trusted; 6 - isolated; 10 - isolation in progress; 11 - recovering from isolation; 14 - processed
  • By No String Detection sorting CreateTime
    Order No String Sorting method: ASC, DESC

    3. Output Parameters

    Parameter Name Type Description
    MalWareList Array of MalWareList List of Trojans
    Note: This field may return null, indicating that no valid values can be obtained.
    TotalCount Integer Total number
    RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Obtaining the List of Trojan

    This example shows you how to obtain the list of Trojans.

    Input Example

    POST / HTTP/1.1
    Host: cwp.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeMalWareList
    <Common request parameters>
    
    {}
    

    Output Example

    {
        "Response": {
            "MalWareList": [
                {
                    "Alias": "v_aaa",
                    "CheckPlatform": "1,2",
                    "CreateTime": "2023-12-22 16:25:44",
                    "FileCreateTime": "",
                    "FileExists": 1,
                    "FileModifierTime": "",
                    "FilePath": "/root/aaa/061d0056bc2a3af43051b88a7ca30555",
                    "HostIp": "172.16.16.10",
                    "Id": 160250,
                    "LatestScanTime": "2023-12-25 16:34:50",
                    "Level": 4,
                    "MD5": "061d0056bc2a3af43051b88a7ca30555",
                    "MachineExtraInfo": {
                        "HostName": "",
                        "InstanceID": "ins-aaaa",
                        "NetworkName": "",
                        "NetworkType": 0,
                        "PrivateIP": "172.16.16.10",
                        "WanIP": "172.16.16.10"
                    },
                    "ProcessExists": 0,
                    "Quuid": "aaaaa-8c8d-4077-9acc-80ce542a6937",
                    "Status": 4,
                    "Tags": [],
                    "Uuid": "aaaaa-8c8d-4077-9acc-80ce542a6937",
                    "VirusName": "Win32.Trojan.Kryptik.Jmnw"
                }
            ],
            "RequestId": "8a201811-8d1c-4545-b6b9-63be9b6ccafc",
            "TotalCount": 21780
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

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

    Error Code Description
    InternalError Internal error
    InvalidParameter Incorrect parameter.
    InvalidParameter.IllegalRequest Invalid request.
    InvalidParameter.MissingParameter Missing parameter.
    InvalidParameter.ParsingError Incorrect parameter parsing.
    InvalidParameterValue Invalid parameter value.
    MissingParameter Missing parameter error.
    ResourceNotFound The resource does not exist.
    UnsupportedOperation The operation is not supported.