All Products
Search
Document Center

Security Center:ListInterceptionHistory

Last Updated:Feb 20, 2024

Queries the alerts generated by defense rules.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ListInterceptionHistoryList
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
HistoryNamestringNo

The name of the alert.

Abnormal access
StartTimelongNo

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

1651290987000
EndTimelongNo

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

1635575219000
PageSizeintegerNo

The number of entries to return on each page.

20
CurrentPageintegerNo

The number of the page to return.

1
InterceptionTypesarrayNo

The types of exceptions.

integerNo

The type of the exception. Valid values:

  • 1: intercept
  • 2: generate alert
1
ClusterIdstringNo

The ID of the container cluster.

c7c190a82d9a048be9038d352840f****
LangstringNo

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

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The response body.

RequestIdstring

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

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

The pagination information.

CurrentPageinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

20
TotalCountinteger

The total number of entries returned.

45
Countinteger

The number of entries returned on the current page.

10
InterceptionHistoryListobject []

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

SrcNamespacestring

The source namespace.

service****
SrcRuleTargetNamestring

The name of the source network object.

sas-web****
RiskLevellong

The risk level. Valid values:

  • -1: unknown
  • 0: none
  • 1: low
  • 2: medium
  • 3: high
1
Statuslong

The handling status. Valid values:

  • 0: unhandled
  • 1: handled
  • 2: manually handled
  • 3: ignored
1
DstPortlong

The destination port range configured for the defense rule.

33
FirstTimelong

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

1639718858000
SrcAppNamestring

The name of the source application.

sas-web****
RuleIdlong

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

136
RuleNamestring

The name of the defense rule.

all****
InterceptionNamelong

The name of the alert.

Abnormal access
DstNamespacestring

The destination namespace.

service****
LastTimelong

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

1639731078000
DstAppNamestring

The name of the destination application.

sas-web****
DstRuleTargetNamestring

The name of the destination network object.

sas-web****
ClusterNamestring

The name of the cluster.

opa-terway-nonet****
TryCountinteger

The number of attempts.

34
InterceptionTypeinteger

The handling type. Valid values:

  • 0: monitor
  • 1: intercept
  • 2: generate alert
  • 3: allow
0
RealInterceptionTypeinteger

The handling type of actual hits. Valid values:

  • 0: monitor
  • 1: intercept
  • 2: generate alert
  • 3: allow
0
Idlong

The ID of the alert.

1126
ClusterIdstring

The ID of the container cluster.

c556c8133b5ad4378b7fc533ddbda****
RealSrcAppNamestring

The name of the source application.

sas-service****
RealSrcPodNamestring

The source pod.

sas-service-757b9d****
RealDstAppNamestring

The name of the destination application.

sas-service****
RealDstPodNamestring

The destination pod.

sas-web-84cc7dd9****
RealDstNamespacestring

The destination namespace.

service****
RealDstImageNamestring

The name of the destination image.

sas-servi****
RealSrcNamespacestring

The source namespace.

service****
RealSrcImageNamestring

The name of the source image.

sas-servi****

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history