Queries the statistics of attack analysis.
This API has been deprecated. We recommend migrating to Sas(2018-12-03) - ListAttackEventInfo for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeAttackAnalysisData |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the content within the request and response. Default value: zh. Valid values:
|
zh |
| Type |
string |
Yes |
The details of attack analysis. Valid values:
Note
If the Type parameter is set to DETAILS, you must specify the CurrentPage and PageSize parameters. |
DETAILS |
| StartTime |
integer |
Yes |
The timestamp at which the attack starts. By default, the statistics of the previous seven days are queried. Unit: seconds. Note
The start time that you specify must be within the previous 40 days. |
1644027670 |
| EndTime |
integer |
Yes |
The timestamp when the attack stops. Unit: seconds. |
1649040221 |
| Data |
string |
No |
The condition that is used to filter attack events. Note
The following list describes the valid values of crack_type:
|
{"crack_type":"9"} |
| Base64 |
string |
No |
Specifies whether to encode the value of the client_url field in the query results by using the Base64 algorithm. Valid values:
|
true |
| CurrentPage |
integer |
No |
The number of the page to return. Pages start from page 1. Note
If the Type parameter is set to DETAILS, you must specify the CurrentPage parameter. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Note
If the Type parameter is set to DETAILS, you must specify the PageSize parameter. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| Data |
string |
The attack events. Valid values:
|
[{\"crack_hour\":1662480000000,\"crack_cnt\":471},{\"crack_hour\":1662483600000,\"crack_cnt\":461},{\"crack_hour\":1662487200000,\"crack_cnt\":445},{\"crack_hour\":1662490800000,\"crack_cnt\":471},{\"crack_hour\":1662494400000,\"crack_cnt\":534},{\"crack_hour\":1662498000000,\"crack_cnt\":652},{\"crack_hour\":1662501600000,\"crack_cnt\":706},{\"crack_hour\":1662505200000,\"crack_cnt\":613},{\"crack_hour\":1662508800000,\"crack_cnt\":578},{\"crack_hour\":1662512400000,\"crack_cnt\":577},{\"crack_hour\":1662516000000,\"crack_cnt\":616},{\"crack_hour\":1662519600000,\"crack_cnt\":597},{\"crack_hour\":1662523200000,\"crack_cnt\":575},{\"crack_hour\":1662526800000,\"crack_cnt\":507}] |
| PageSize |
integer |
The number of entries returned per page. Default value: 10. |
10 |
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
4C1AE3F3-18FA-4108-BBB9-AFA1A032756C |
| Total |
integer |
The total number of attack events returned. |
1000 |
| Page |
integer |
The page number of the returned page. |
1 |
Examples
Success response
JSON format
{
"Data": "[{\\\"crack_hour\\\":1662480000000,\\\"crack_cnt\\\":471},{\\\"crack_hour\\\":1662483600000,\\\"crack_cnt\\\":461},{\\\"crack_hour\\\":1662487200000,\\\"crack_cnt\\\":445},{\\\"crack_hour\\\":1662490800000,\\\"crack_cnt\\\":471},{\\\"crack_hour\\\":1662494400000,\\\"crack_cnt\\\":534},{\\\"crack_hour\\\":1662498000000,\\\"crack_cnt\\\":652},{\\\"crack_hour\\\":1662501600000,\\\"crack_cnt\\\":706},{\\\"crack_hour\\\":1662505200000,\\\"crack_cnt\\\":613},{\\\"crack_hour\\\":1662508800000,\\\"crack_cnt\\\":578},{\\\"crack_hour\\\":1662512400000,\\\"crack_cnt\\\":577},{\\\"crack_hour\\\":1662516000000,\\\"crack_cnt\\\":616},{\\\"crack_hour\\\":1662519600000,\\\"crack_cnt\\\":597},{\\\"crack_hour\\\":1662523200000,\\\"crack_cnt\\\":575},{\\\"crack_hour\\\":1662526800000,\\\"crack_cnt\\\":507}]",
"PageSize": 10,
"RequestId": "4C1AE3F3-18FA-4108-BBB9-AFA1A032756C",
"Total": 1000,
"Page": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | -101 | Invalid parameter value. | Invalid parameter. |
| 400 | UserInstanceVersionNotSupportAttackAnalysisData | Attack analysis data is not supported for the instance version. | The user instance version does not support viewing attack analysis data. |
| 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.