Queries the statistics of attack analysis.
Authorization information
The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action
Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:
- 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 keyword: refers to the condition keyword defined by the cloud product itself.
- 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.
Operate | access level | Resource type | conditional keyword | Association operation |
---|---|---|---|---|
yundun-sas:DescribeAttackAnalysisData | Read |
|
| without |
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:
NoteIf 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. NoteThe 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. NoteThe 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. NoteIf 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. NoteIf the Type parameter is set to DETAILS, you must specify the PageSize parameter. | 10 |
Response parameters
Example
Normal return example
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 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 API error center.