tencent cloud

APIs

DescribeDDoSAttackTopData

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-25 16:59:53

1. API Description

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

This API is used to query Top-ranked data of DDoS attacks.

A maximum of 100 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: DescribeDDoSAttackTopData.
Version Yes String Common Params. The value used for this API: 2022-09-01.
Region No String Common Params. This parameter is not required.
StartTime Yes Timestamp ISO8601 Start time.
EndTime Yes Timestamp ISO8601 End time. The query time range (EndTime - StartTime) must be less than or equal to 31 days.
MetricName Yes String Queried statistical metric. Valid values:
  • ddos_attackFlux_protocol: ranking of attack traffic by protocol;
  • ddos_attackPackageNum_protocol: ranking by attack packet volume of each protocol;
  • ddos_attackNum_attackType: Ranking by number of attacks for each attack type;
  • ddos_attackNum_sregion: ranking by number of attacks by attack source region;
  • ddos_attackFlux_sip: ranking by number of attacks from attack source IPs;
  • ddos_attackFlux_sregion: ranking of attackNum by attack source region.
  • ZoneIds.N No Array of String Site ID set. This parameter will change from optional to required after May 30, 2024. For details, see the announcement: Tencent Cloud EdgeOne Cloud API Change Notification. Import up to 100 site IDs. To query data of all sites under the Tencent Cloud root account, use * instead. To query account-level data, you need permission for all site resources of this interface.
    PolicyIds.N No Array of Integer Set of DDoS policy group IDs. If not specified, all policy IDs are selected by default.
    AttackType No String Attack type. Valid values:
  • flood: flood attack;
  • icmpFlood: ICMP flood attack;
  • all: all attack types.
  • If this parameter is not input, the default value all is used, indicating a query for all attack types.
    ProtocolType No String Protocol type. Valid values:
  • tcp: TCP protocol;
  • udp: UDP protocol;
  • all: all protocol types.
  • If this parameter is not input, the default value all is used, indicating a query for all protocols.
    Port No Integer Port number.
    Limit No Integer Indicates the top N data to be queried. If this parameter is not input, the default value is 10, indicating querying the top 10 data.
    Area No String Data ownership region. Valid values:
  • overseas: global (excluding the Chinese mainland) data;
  • mainland: Chinese mainland data.
  • If not specified, the region will be smart selected according to the user's location.

    3. Output Parameters

    Parameter Name Type Description
    Data Array of TopEntry DDoS attack Top Data List.
    TotalCount Integer Total number of entries in the query result.
    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 DDoS Attack Top-Ranked Data

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeDDoSAttackTopData
    <Common request parameters>
    
    {
        "AttackType": "UDPFLOOD",
        "MetricName": "ddos_attackFlux_protocol",
        "ProtocolType": "udp",
        "PolicyIds": [
            1705
        ],
        "ZoneIds": [
            "zone-21xfqlh4qjee"
        ],
        "Limit": 1,
        "StartTime": "2020-09-22T00:00:00+00:00",
        "EndTime": "2020-09-22T00:00:00+00:00",
        "Port": 22,
        "Area": "overseas"
    }

    Output Example

    {
        "Response": {
            "TotalCount": 10,
            "Data": [
                {
                    "Value": [
                        {
                            "Count": 123,
                            "Name": "udp"
                        }
                    ],
                    "Key": "zone-21xfqlh4qjee"
                }
            ],
            "RequestId": "3824cf60-c2aa-4f4a-95b7-a4d5e4dee188"
        }
    }

    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
    FailedOperation Operation failed.
    InternalError.ProxyServer Unknown error occurs on the real server.
    LimitExceeded.QueryTimeLimitExceeded Query time range exceeds the limit.
    ResourceNotFound The resource does not exist.
    UnauthorizedOperation.CamUnauthorized Unauthorized Cam operation.

    Ajuda e Suporte

    Esta página foi útil?

    comentários