Retrieves the list of test results for a custom rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListCustomizeRuleTestResult |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
No |
The ID of the custom rule. |
123456789 |
| CurrentPage |
integer |
Yes |
The page number. The value must be greater than or equal to 1. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. The maximum value is 100. |
10 |
| RoleType |
integer |
No |
The type of the view.
|
1 |
| RoleFor |
integer |
No |
The user ID of a member. This parameter is used by an administrator to switch to the perspective of the member. |
113091674488**** |
| RegionId |
string |
No |
The region where the Data Management center of Threat Analysis is located. Select a region based on the region where your assets are deployed. Valid values:
|
cn-hangzhou |
| DetectionRuleId |
string |
No |
The ID of the custom rule. You can obtain the rule ID from the rule list. |
dr-53np4nguf5jmh1vc**** |
| VerifyType |
string |
No |
The verification result for the accuracy of alert fields based on the alert template.
|
true |
| StartTime |
integer |
No |
The start time. |
1723057091000 |
| EndTime |
integer |
No |
The end time. |
1731797891000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PageResponse<List |
||
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Code |
integer |
The status code of the request. |
200 |
| Message |
string |
The message returned for the request. |
success |
| RequestId |
string |
The request ID. |
9AAA9ED9-78F4-5021-86DC-D51C7511**** |
| Data |
object |
The data returned. |
123456 |
| PageInfo |
object |
The pagination information. |
|
| CurrentPage |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| TotalCount |
integer |
The total number of entries. |
100 |
| VerifiedCount |
integer |
The number of alerts that passed the verification. |
30 |
| ResponseData |
array<object> |
The detailed data. |
|
|
object |
|||
| Uuid |
string |
The UUID of the alert. |
sas_71e24437d2797ce8fc59692905a4**** |
| MainUserId |
string |
The ID of the main Alibaba Cloud account for Security Information and Event Management (SIEM) that is associated with the alert. |
127608589417**** |
| SubUserId |
string |
The ID of the member account that is associated with the alert. |
176555323*** |
| LogType |
string |
The log type that corresponds to the rule. |
ALERT_ACTIVITY |
| LogSource |
string |
The log source that corresponds to the rule. |
cloud_siem_aegis_sas_alert |
| AlertSrcProd |
string |
The source product of the alert that is associated with the event. |
sas |
| AlertSrcProdModule |
string |
The sub-module of the source product of the alert that is associated with the event. |
waf |
| AttCk |
string |
The ATT&CK attack technique tag. |
T1595.002 Vulnerability Scanning |
| AlertDesc |
string |
The description of the alert. |
The account you logged in this time is not in the legal account category defined by you. Please confirm the legality of the login behavior。 |
| OnlineStatus |
string |
The status of the alert data. Valid values:
|
test |
| EventName |
string |
The name of the alert. This value corresponds to the name of the custom rule. |
waf_scan |
| Level |
string |
The threat level. Valid values:
|
remind |
| EventType |
string |
The threat type. This parameter is equivalent to the alert type. |
WEBSHELL |
| AlertDetail |
string |
The details of the alert, in JSON format. |
{"main_user_id": "165295629792****";"log_uuid_count": "99";"attack_ip": "218.92.XX.XX"} |
| LogTime |
string |
The time when the alert was recorded. |
2023-01-06 16:37:29 |
| VerifyType |
string |
The result of verifying the alert based on the alert template.
|
true |
Examples
Success response
JSON format
{
"Success": true,
"Code": 200,
"Message": "success",
"RequestId": "9AAA9ED9-78F4-5021-86DC-D51C7511****",
"Data": {
"PageInfo": {
"CurrentPage": 1,
"PageSize": 10,
"TotalCount": 100,
"VerifiedCount": 30
},
"ResponseData": [
{
"Uuid": "sas_71e24437d2797ce8fc59692905a4****",
"MainUserId": "127608589417****",
"SubUserId": "176555323***",
"LogType": "ALERT_ACTIVITY",
"LogSource": "cloud_siem_aegis_sas_alert",
"AlertSrcProd": "sas",
"AlertSrcProdModule": "waf",
"AttCk": "T1595.002 Vulnerability Scanning",
"AlertDesc": "The account you logged in this time is not in the legal account category defined by you. Please confirm the legality of the login behavior。",
"OnlineStatus": "test",
"EventName": "waf_scan",
"Level": "remind",
"EventType": "WEBSHELL",
"AlertDetail": "{\"main_user_id\": \"165295629792****\";\"log_uuid_count\": \"99\";\"attack_ip\": \"218.92.XX.XX\"}",
"LogTime": "2023-01-06 16:37:29",
"VerifyType": "true"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.