All Products
Search
Document Center

Cloud Firewall:DescribeRiskEventTopAttackType

Last Updated:Jan 07, 2026

Queries the ranking of attack types for intrusion prevention events.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

SourceIp

string

No

The source IP address of the visitor.

140.210.153.XXX

Lang

string

No

The language of the request and response.

Valid values:

  • en :

    English

  • zh :

    Chinese

zh

StartTime

string

Yes

The start time. The value is a UNIX timestamp in seconds.

1670307484

EndTime

string

Yes

The end time. The value is a UNIX timestamp in seconds.

1743387943

Direction

string

Yes

The direction of the traffic.

Valid values:

  • in :

    inbound traffic

  • out :

    outbound traffic

out

BuyVersion

string

No

The edition of Cloud Firewall.

Valid values:

  • 2 :

    Premium Edition

  • 3 :

    Enterprise Edition

  • 4 :

    Ultimate Edition

  • 10 :

    pay-as-you-go edition

2

Response elements

Element

Type

Description

Example

object

TotalProtectCnt

integer

The total number of mitigation sessions.

65

RequestId

string

The ID of the request.

BECDBF66-91DA-5B40-8B05-0D26541A****

TotalAttackCnt

integer

The total number of attacks.

47

TopAttackTypeList

array<object>

The list of attack types.

object

The list of attack types.

AttackType

integer

The attack type.

2

AttackCnt

integer

The number of attacks.

38

ProtectCnt

integer

The number of mitigation sessions.

42

Examples

Success response

JSON format

{
  "TotalProtectCnt": 65,
  "RequestId": "BECDBF66-91DA-5B40-8B05-0D26541A****",
  "TotalAttackCnt": 47,
  "TopAttackTypeList": [
    {
      "AttackType": 2,
      "AttackCnt": 38,
      "ProtectCnt": 42
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorAliUid Aliuid invalid. The aliuid is invalid.
400 ErrorDBSelectError A database select error occurred. The error message returned because an internal error has occurred in querying the database.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.