Queries the statistics of attack analysis.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:DescribeAttackAnalysisData | get |
|
| 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 | long | 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 | long | 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 parameters
Examples
Sample success responses
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 |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-24 | The Error code has changed | View Change Details |
2024-09-27 | The Error code has changed | View Change Details |