All Products
Search
Document Center

Web Application Firewall:DescribeThreatEvent

Last Updated:Jan 04, 2026

Queries a paginated list of notable security 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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-waf:DescribeThreatEvent

list

*All Resource

*

  • acs:ResourceGroupId
None

Request parameters

Parameter

Type

Required

Description

Example

DomainName

string

No

The domain name to query.

www.abc.com

StartTime

integer

Yes

The start of the time range to query. The value is a UNIX timestamp in seconds. The time is in Coordinated Universal Time (UTC).

1668496310000

EndTime

integer

Yes

The end of the time range to query. The value is a UNIX timestamp in seconds. The time is in UTC.

1749916800000

PageNumber

integer

No

The page number. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Default value: 5. Valid values: 1 to 200.

10

InstanceId

string

Yes

The ID of the Web Application Firewall (WAF) instance.

Note

You can call DescribeInstance to query the ID of the current WAF instance.

waf_v2_public_cn-2bl4****

RegionId

string

No

The region where the WAF instance resides. Valid values:

  • cn-hangzhou: the Chinese mainland.

  • ap-southeast-1: a region outside the Chinese mainland.

cn-hangzhou

ResourceManagerResourceGroupId

string

No

The ID of the resource group.

rg-aeky65ka*****

Response elements

Element

Type

Description

Example

object

TotalCount

integer

The total number of entries returned.

10

RequestId

string

The request ID.

98106632-6865-5600-A834-3D909***

ThreatEvents

array<object>

The list of notable security events.

object

The security event.

EventLevel

string

The severity level of the event. Valid values:

  • critical: critical

  • high: high

  • medium: medium

  • low: low

high

EndTime

integer

The time of the last attack. The value is a UNIX timestamp in seconds. The time is in UTC.

1768406400000

EventSrc

string

The source IP address of the attack.

Note

A security event may have multiple source IP addresses. This operation returns only one of them.

3.3.3.3

EventId

string

The ID of the security event.

f439994c8ab39f84eced33490f0c4388

BlockRate

string

The block rate.

100%

EventTag

string

The name of the event. Valid values:

  • MultipleDomainDirscan: a directory and file scan against multiple domain names.

  • SingleDomainDirscan: a directory and file scan against a single domain name.

  • MultipleDomainWebscan: a web vulnerability scan against multiple domain names.

  • SingleDomainWebscan: a web vulnerability scan against a single domain name.

  • MultipleDomainWebattack: a web vulnerability attack against multiple domain names.

  • SingleDomainWebattack: a web vulnerability attack against a single domain name.

  • SingleURLWebattack: a web vulnerability attack against a specific URL.

  • SingleURLSqlattack: an SQL injection attack against a specific URL.

  • SingleURLXssattack: an XSS attack against a specific URL.

  • WebshellUpload: an attack that attempts to upload backdoor trojans.

  • RandomVulnTest: a random web vulnerability probe.

Event_InternalLoginWeakPasswd

EventTarget

string

The protected object that is the target of the attack.

Note

A security event may have multiple protected objects as targets. This operation returns only one of them.

test.aliyundemo.com-waf

Examples

Success response

JSON format

{
  "TotalCount": 10,
  "RequestId": "98106632-6865-5600-A834-3D909***",
  "ThreatEvents": [
    {
      "EventLevel": "high",
      "EndTime": 1768406400000,
      "EventSrc": "3.3.3.3",
      "EventId": "f439994c8ab39f84eced33490f0c4388",
      "BlockRate": "100%",
      "EventTag": "Event_InternalLoginWeakPasswd",
      "EventTarget": "test.aliyundemo.com-waf"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.