Queries the alerts generated by defense rules.
Try it now
Test
RAM authorization
|
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 |
|
| 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 |
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 |
| Status |
integer |
The handling status. Valid values:
|
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 |
| RealInterceptionType |
integer |
The handling type of actual hits. Valid values:
|
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.