tencent cloud

文档反馈

DescribeAttackLogs

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

1. API Description

This API will be disused soon.

Planned disuse time: 2025-01-28 10:17:37

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

DescribeAttackEvents 代替

This API is used to display the list of network attack logs in pagination.

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

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: DescribeAttackLogs.
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 returns. The maximum value is 100.
Offset No Integer Offset. Default value: 0.
Filters.N No Array of Filter Filter criteria
  • HttpMethod - String - required: no - attack method (POST|GET)
  • DateRange - String - required: no - timeframe (store data from the past 3 months), such as the last month ["2019-11-17", "2019-12-17"]
  • VulType - String threat type - required: no
  • SrcIp - String attack source IP - required: no
  • DstIp - String attack target IP - required: no
  • SrcPort - String attack source port - required: no
  • DstPort - String attack target port - required: no
  • Uuid No String CWPP client ID
    Quuid No String CVM machine ID

    3. Output Parameters

    Parameter Name Type Description
    AttackLogs Array of DefendAttackLog Log list
    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 Network Attack Log List

    This example shows you how to obtain the network attack log list.

    Input Example

    https://cwp.intl.tencentcloudapi.com/?Action=DescribeAttackLogs
    &<Common request parameters>
    

    Output Example

    {
        "Response": {
            "AttackLogs": [
                {
                    "Id": 1,
                    "Uuid": "abc",
                    "SrcIp": "abc",
                    "SrcPort": 1,
                    "HttpMethod": "abc",
                    "HttpCgi": "abc",
                    "HttpParam": "abc",
                    "VulType": "abc",
                    "CreatedAt": "abc",
                    "MachineIp": "abc",
                    "MachineName": "abc",
                    "DstIp": "abc",
                    "DstPort": 1,
                    "HttpContent": "abc",
                    "MachineExtraInfo": {
                        "WanIP": "abc",
                        "PrivateIP": "abc",
                        "NetworkType": 0,
                        "NetworkName": "abc",
                        "InstanceID": "abc",
                        "HostName": "abc"
                    }
                }
            ],
            "TotalCount": 1,
            "RequestId": "abc"
        }
    }
    

    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.InvalidFormat Incorrect parameter format.
    InvalidParameter.MissingParameter Missing parameter.
    InvalidParameter.ParsingError Incorrect parameter parsing.
    InvalidParameterValue Invalid parameter value.
    MissingParameter Missing parameter error.
    ResourceNotFound The resource does not exist.