全部產品
Search
文件中心

Web Application Firewall:DescribeApisecEvents

更新時間:Jul 13, 2026

查詢 API 安全事件列表。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

yundun-waf:DescribeApisecEvents

get

*All Resource

*

  • acs:ResourceGroupId

請求參數

名稱

類型

必填

描述

樣本值

InstanceId

string

WAF 執行個體的 ID。

說明

您可以呼叫 DescribeInstance 取得目前 WAF 執行個體的 ID。

waf_v2_public_cn-5y***d31

EventId

string

API 安全事件 ID。

18ba94fea9***e66ba0557b7b91

ApiFormat

string

API 介面。

/apisec/v1/***.php

MatchedHost

string

API 介面所屬的網域或 IP。

a.***.com

EventTag

string

事件類型。

說明

您可以呼叫 DescribeApisecRules 取得支援的事件類型。

ObtainSensitiveUnauthorized

StartTs

integer

查詢的開始時間,格式為 Unix 時間戳記(UTC 時間),單位為秒。

1683648000

EndTs

integer

查詢的結束時間,格式為 Unix 時間戳記(UTC 時間),單位為秒。

1683703260

OrderKey

string

排序欄位的名稱。取值:

  • allCnt:表示攻擊次數。

  • startTs:表示事件開始時間。

  • endTs:表示事件結束時間。

startTs

OrderWay

string

排序的方式。取值:

  • desc:表示降序(預設)。

  • asc:表示升序。

desc

PageNumber

integer

分頁查詢時,返回第幾頁資料。預設值為 1,表示返回第 1 頁資料。

1

PageSize

integer

分頁查詢時,每頁包含多少筆結果。預設值為 10,表示每頁包含 10 筆結果。

10

ApiTag

string

API 業務用途。

說明

您可以呼叫 DescribeApisecRules 取得支援的業務用途。

SendMail

Origin

string

事件類型的來源。取值:

  • custom:表示自訂。

  • default:表示內建。

default

EventLevel

string

事件等級。取值:

  • high:表示高危。

  • medium:表示中危。

  • low:表示低危。

low

UserStatus

string

事件狀態。取值:

  • toBeConfirmed:表示待確認。

  • confirmed:表示已確認。

  • actioned:表示已處置。

  • ignored:表示忽略。

ignored

AttackIp

string

攻擊 IP。

42.224.*.*

ApiId

string

API 的 ID。

820b860***6205da93b935b28

ClusterId

string

混合雲叢集 ID。

說明

僅針對混合雲情境,您可以呼叫 DescribeHybridCloudClusters 取得混合雲叢集資訊。

428

RegionId

string

WAF 執行個體所屬地域。取值:

  • cn-hangzhou:表示中國內地。

  • ap-southeast-1:表示非中國內地。

cn-hangzhou

ResourceManagerResourceGroupId

string

阿里雲資源群組 ID。

rg-acfm***q

EventScope

string

安全事件的維度。

枚舉值:

  • ip :

    (預設)表示 IP 安全事件。

  • account :

    表示帳號安全事件。

ip

Account

string

帳號資訊。

1818743389962696

返回參數

名稱

類型

描述

樣本值

object

請求結果。

TotalCount

integer

返回結果的總數。

3

RequestId

string

請求 ID。

12F4CC8F-7E9F-5E4D-BF7C-BD1EDDE0C282

Data

array<object>

安全事件列表。

object

安全事件資訊。

Origin

string

事件類型的來源。取值:

  • custom:表示自訂。

  • default:表示內建。

custom

EventLevel

string

事件等級。取值:

  • high:表示高危。

  • medium:表示中危。

  • low:表示低危。

medium

StartTs

integer

查詢的開始時間,格式為 Unix 時間戳記(UTC 時間),單位為秒。

1683648000

EventInfo deprecated

string

事件詳細資訊,以一系列參數建構的 JSON 格式轉化成字串。包括:

  • ip_info:表示攻擊 IP 資訊,可以參考本介面的返回參數 AttackIpInfo

  • rule_id:表示事件對應的規則 ID。

  • rule_tag:表示事件對應的規則資訊。

{ "ip_info": [ { "ip": "112.224.143.**", "country_id": "CN", "region_id": "-", "cnt": "4" } ], "rule_id": "837**", "rule_tag": "interface returns a large amount of sensitive information" }

ApiFormat

string

API 介面。

/apisec/v1/register.php

ApiTag

string

API 業務用途。

說明

您可以呼叫 DescribeApisecRules 取得支援的業務用途。

SendMail

UserStatus

string

事件狀態。取值:

  • toBeConfirmed:表示待確認。

  • confirmed:表示已確認。

  • actioned:表示已處置。

  • ignored:表示忽略。

toBeConfirmed

Follow

integer

是否關注。取值:

  • 1:表示關注。

  • 0:表示未關注。

0

RequestData deprecated

string

API 請求資料執行個體,以一系列參數建構的 JSON 格式轉化成字串。

{}

EventId

string

事件 ID。

c82cb276847e9c96f9597d9f4b0cdcff

AttackIp deprecated

string

攻擊 IP。

重要 參數已棄用,請使用 AttackIps 參數。

104.234.140.**

AttackIpInfo deprecated

string

攻擊 IP 相關資訊,以一系列參數建構的 JSON 格式轉化成字串。包括:

  • ip:表示 IP 地址。

  • country_id:表示所屬國家。

  • region_id:表示所屬地區。

  • cnt:表示攻擊次數。

[ { "ip": "72.*.*.119", "country_id": "US", "region_id": "", "cnt": "2100" } ]

EndTs

integer

查詢的結束時間,格式為 Unix 時間戳記(UTC 時間),單位為秒。

1683703260

AttackCntInfo deprecated

string

攻擊數量相關資訊,以一系列參數建構的 JSON 格式轉化成字串。其中 Key 為時間戳記,單位為秒、Value 為攻擊數量。

{ "1717498320": 500, "1717498380": 529, "1717498440": 20 }

AllCnt

integer

攻擊次數。

10

RemoteRegion

string

攻擊 IP 所屬地區。

110000

ResponseData deprecated

string

API 回應資料範例,以一系列參數建構的 JSON 格式轉化成字串。

{}

AttackClient

string

攻擊用戶端。

Chrome

EventTag

string

事件類型。

說明

您可以呼叫 DescribeApisecRules 取得支援的事件類型。

ObtainSensitiveUnauthorized

MatchedHost

string

API 介面所屬的網域或 IP。

a.***.com

Note

string

備註資訊。

Notify

ApiId

string

安全事件關聯 API 的 ID。

2ecc1cf67b91853bc55545052ccf06a8

RemoteCountry

string

攻擊 IP 所屬國家。

US

AttackIps deprecated

array

攻擊 IP 列表。

string

攻擊 IP。

104.234.140.**

AttackerList

array

事件對應的攻擊者列表。

string

事件對應的攻擊者。

說明

當安全事件的維度 EventScope 取值為 ip 時,為攻擊者 IP,取值為 account 時,為攻擊者帳號。

1.1.1.1

樣本

正常返回樣本

JSON格式

{
  "TotalCount": 3,
  "RequestId": "12F4CC8F-7E9F-5E4D-BF7C-BD1EDDE0C282",
  "Data": [
    {
      "Origin": "custom",
      "EventLevel": "medium",
      "StartTs": 1683648000,
      "EventInfo": "{\n    \"ip_info\": [\n        {\n            \"ip\": \"112.224.143.**\",\n            \"country_id\": \"CN\",\n            \"region_id\": \"-\",\n            \"cnt\": \"4\"\n        }\n    ],\n    \"rule_id\": \"837**\",\n    \"rule_tag\": \"interface returns a large amount of sensitive information\"\n}\n",
      "ApiFormat": "/apisec/v1/register.php",
      "ApiTag": "SendMail",
      "UserStatus": "toBeConfirmed",
      "Follow": 0,
      "RequestData": "{}",
      "EventId": "c82cb276847e9c96f9597d9f4b0cdcff",
      "AttackIp": "104.234.140.**",
      "AttackIpInfo": "[\n    {\n        \"ip\": \"72.*.*.119\",\n        \"country_id\": \"US\",\n        \"region_id\": \"\",\n        \"cnt\": \"2100\"\n    }\n]",
      "EndTs": 1683703260,
      "AttackCntInfo": "{\n    \"1717498320\": 500,\n    \"1717498380\": 529,\n    \"1717498440\": 20\n}",
      "AllCnt": 10,
      "RemoteRegion": "110000",
      "ResponseData": "{}",
      "AttackClient": "Chrome",
      "EventTag": "ObtainSensitiveUnauthorized",
      "MatchedHost": "a.***.com",
      "Note": "Notify",
      "ApiId": "2ecc1cf67b91853bc55545052ccf06a8",
      "RemoteCountry": "US",
      "AttackIps": [
        "104.234.140.**\n"
      ],
      "AttackerList": [
        "1.1.1.1"
      ]
    }
  ]
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情