All Products
Search
Document Center

Security Center:ListInterceptionHistory

Last Updated:Mar 25, 2026

Queries the alerts generated by defense rules.

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-sas:ListInterceptionHistory

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

HistoryName

string

No

The name of the alert.

Abnormal access.

StartTime

integer

No

The start of the time range to query. The value is a UNIX timestamp.

1651290987000

EndTime

integer

No

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

1635575219000

PageSize

integer

No

The number of entries to return on each page.

20

CurrentPage

integer

No

The number of the page to return.

1

InterceptionTypes

array

No

The types of exceptions.

integer

No

The type of the exception. Valid values:

  • 1: intercept

  • 2: generate alert

1

ClusterId

string

No

The ID of the container cluster.

c7c190a82d9a048be9038d352840f****

Lang

string

No

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese

  • en: English

zh

Response elements

Element

Type

Description

Example

object

The response body.

RequestId

string

The ID of the request, which is used to locate and troubleshoot issues.

D81DD78E-E006-5C65-A171-C8CB0904****

PageInfo

object

The pagination information.

CurrentPage

integer

The page number of the returned page.

1

PageSize

integer

The number of entries returned per page.

20

TotalCount

integer

The total number of entries returned.

45

Count

integer

The number of entries returned on the current page.

10

InterceptionHistoryList

array<object>

An array that consists of the alerts generated by defense rules.

object

The alert generated by defense rules.

SrcNamespace

string

The source namespace.

service****

SrcRuleTargetName

string

The name of the source network object.

sas-web****

RiskLevel

integer

The risk level. Valid values:

  • -1: unknown

  • 0: none

  • 1: low

  • 2: medium

  • 3: high

1

Status

integer

The handling status. Valid values:

  • 0: unhandled

  • 1: handled

  • 2: manually handled

  • 3: ignored

1

DstPort

integer

The destination port range configured for the defense rule.

33

FirstTime

integer

The timestamp when the alert was first generated on the current day.

1639718858000

SrcAppName

string

The name of the source application.

sas-web****

RuleId

integer

The ID of the defense rule based on which the alert was generated.

136

RuleName

string

The name of the defense rule.

all****

InterceptionName

integer

The name of the alert.

Abnormal access.

DstNamespace

string

The destination namespace.

service****

LastTime

integer

The timestamp when the alert was last generated on the current day.

1639731078000

DstAppName

string

The name of the destination application.

sas-web****

DstRuleTargetName

string

The name of the destination network object.

sas-web****

ClusterName

string

The name of the cluster.

opa-terway-nonet****

TryCount

integer

The number of attempts.

34

InterceptionType

integer

The handling type. Valid values:

  • 0: monitor

  • 1: intercept

  • 2: generate alert

  • 3: allow

0

RealInterceptionType

integer

The handling type of actual hits. Valid values:

  • 0: monitor

  • 1: intercept

  • 2: generate alert

  • 3: allow

0

Id

integer

The ID of the alert.

1126

ClusterId

string

The ID of the container cluster.

c556c8133b5ad4378b7fc533ddbda****

RealSrcAppName

string

The name of the source application.

sas-service****

RealSrcPodName

string

The source pod.

sas-service-757b9d****

RealDstAppName

string

The name of the destination application.

sas-service****

RealDstPodName

string

The destination pod.

sas-web-84cc7dd9****

RealDstNamespace

string

The destination namespace.

service****

RealDstImageName

string

The name of the destination image.

sas-servi****

RealSrcNamespace

string

The source namespace.

service****

RealSrcImageName

string

The name of the source image.

sas-servi****

Examples

Success response

JSON format

{
  "RequestId": "D81DD78E-E006-5C65-A171-C8CB0904****",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 45,
    "Count": 10
  },
  "InterceptionHistoryList": [
    {
      "SrcNamespace": "service****",
      "SrcRuleTargetName": "sas-web****",
      "RiskLevel": 1,
      "Status": 1,
      "DstPort": 33,
      "FirstTime": 1639718858000,
      "SrcAppName": "sas-web****",
      "RuleId": 136,
      "RuleName": "all****",
      "InterceptionName": 0,
      "DstNamespace": "service****",
      "LastTime": 1639731078000,
      "DstAppName": "sas-web****",
      "DstRuleTargetName": "sas-web****",
      "ClusterName": "opa-terway-nonet****",
      "TryCount": 34,
      "InterceptionType": 0,
      "RealInterceptionType": 0,
      "Id": 1126,
      "ClusterId": "c556c8133b5ad4378b7fc533ddbda****",
      "RealSrcAppName": "sas-service****",
      "RealSrcPodName": "sas-service-757b9d****",
      "RealDstAppName": "sas-service****",
      "RealDstPodName": "sas-web-84cc7dd9****",
      "RealDstNamespace": "service****",
      "RealDstImageName": "sas-servi****",
      "RealSrcNamespace": "service****",
      "RealSrcImageName": "sas-servi****\n"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

500 ServerError ServerError
403 NoPermission caller has no permission You are not authorized to do this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.