Queries created defense rules against brute-force attacks.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| SourceIp | string | No | The source IP address of the request. | 121.69.XX.XX |
| Id | long | No | The ID of the defense rule. Note
You can call the DescribeAntiBruteForceRules operation to query the IDs of defense rules.
| 1141**** |
| CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
| PageSize | string | No | The number of entries to return on each page. | 10 |
| Name | string | No | The name of the rule. | testName |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 2,
"Count": 2
},
"Rules": [
{
"MachineCount": 3,
"EnableSmartRule": false,
"FailCount": 15,
"ForbiddenTime": 360,
"Span": 10,
"DefaultRule": true,
"Name": "AntiBruteForceRule01",
"Id": 1629,
"UuidList": [
"uuid-018c-4ef7-89fd-988b9b0e****"
],
"CreateTimestamp": 1669800181000,
"ProtocolType": {
"Rdp": "on",
"Ssh": "on",
"SqlServer": "off"
}
}
]
}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 |
|---|---|---|
| 2023-06-08 | The response structure of the API has changed | View Change Details |
| 2023-04-06 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
