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.
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: |
| 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:all is used, indicating a query for all attack types. |
| ProtocolType | No | String | Protocol type. Valid values: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: |
| 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. |
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"
}
{
"Response": {
"TotalCount": 10,
"Data": [
{
"Value": [
{
"Count": 123,
"Name": "udp"
}
],
"Key": "zone-21xfqlh4qjee"
}
],
"RequestId": "3824cf60-c2aa-4f4a-95b7-a4d5e4dee188"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
피드백