tencent cloud

文档反馈

DescribeRansomDefenseEventsList

最后更新时间:2024-12-06 15:42:27

1. API Description

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

This API is used to query the anti-ransomware event 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: DescribeRansomDefenseEventsList.
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 Yes Integer Pagination parameters (The maximum quantity is 100)
Offset Yes Integer Pagination parameter
Filters.N No Array of Filters Filter criteria
  • HostName- string- host name
  • Status - Uint64: 0 - pending; 1 processed; 2 -trusted
  • HostIp - String - host IP
  • Order No String Sorting method: ASC / DESC
    By No String Sorting field, supporting CreateTime

    3. Output Parameters

    Parameter Name Type Description
    List Array of RansomDefenseEvent Event list
    Note: This field may return null, indicating that no valid values can be obtained.
    TotalCount Integer Total number of pagination query records
    Note: This field may return null, indicating that no valid values can be obtained.
    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 Querying the List of Anti-ransomware Events

    This example shows you how to query the list of anti-ransomware events based on the filter parameters.

    Input Example

    POST / HTTP/1.1
    Host: cwp.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeRansomDefenseEventsList
    <Common request parameters>
    
    {
        "Limit": "10",
        "Offset": "0"
    }
    

    Output Example

    {
        "Response": {
            "TotalCount": 1,
            "List": [
                {
                    "Id": 10001,
                    "CreateTime": "2024-05-14 11:01:02",
                    "ModifyTime": "2024-07-19 17:59:03",
                    "Quuid": "1c26308c-5493-4eaf-a817-112ec25f4991",
                    "Uuid": "1c26308c-5493-4eaf-a817-112ec25f4991",
                    "Status": 2,
                    "BaitFilePath": "/home/.yjfile/121hcXh.doc",
                    "FilePath": "/usr/bin/bash",
                    "FileMd5": "708c8760385810080c4d17fa84d325ca",
                    "FileSize": 964536,
                    "Pid": 32254,
                    "PidParam": "bash -c echo \"Csip data test\" >> /home/.yjfile/121hcXh.doc  1>&2",
                    "Type": 0,
                    "PsTree": "W3sicGlkIjozMjI1NCwiZXhlIjoiL3Vzci9iaW4vYmFzaCIsImNtZGxpbmUiOiJiYXNoIC1jIGVjaG8gXCJDc2lwIGRhdGEgdGVzdFwiIFx1MDAzZVx1MDAzZSAvaG9tZS8ueWpmaWxlLzEyMWhjWGguZG9jICAxXHUwMDNlXHUwMDI2MiIsImFjY291bnQiOiIwOjAiLCJzdGFydF90aW1lIjoxNzE1NjU1NjYyLCJleGVfcGVybSI6Ii1yd3hyLXhyLXgiLCJleGVfbXRpbWUiOjE1ODU3MDc0NTEsInNlc3Npb25pZCI6MzIyNTQsInNzaF9zb3VyY2UiOiIxMTMuMTA4Ljc3LjUzOjM5NjIyIiwic3NoX3NlcnZpY2UiOiIxNzIuMTYuNDkuMTA0OjIyIn0seyJwaWQiOjMyMjUyLCJleGUiOiIvdXNyL3NiaW4vc3NoZCIsImNtZGxpbmUiOiIvdXNyL3NiaW4vc3NoZCAtRCAtUiIsImFjY291bnQiOiIwOjAiLCJzdGFydF90aW1lIjoxNzE1NjU1NjYxLCJleGVfcGVybSI6Ii1yd3hyLXhyLXgiLCJleGVfbXRpbWUiOjE2OTExNjQ4NTIsInNlc3Npb25pZCI6MzIyNTJ9XQ==",
                    "ProcessStartTime": "2024-05-14 11:01:02",
                    "InstanceId": "ins-qwea",
                    "HostName": "机器名称",
                    "StrategyId": 10001,
                    "StrategyName": "测试勿动",
                    "HostIp": "1.1.1.1",
                    "WanIp": "1.1.1.1",
                    "SnapshotNum": 45
                }
            ],
            "RequestId": "4e1f7136-1777-59a3-f31e-ed0623b3d270"
        }
    }
    

    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.