Queries the brute-force attacks prevention rules that you have created.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeAntiBruteForceRules |
get |
*AntiBruteForceRule
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The IP address of the access source. |
121.69.XX.XX |
| Id |
integer |
No |
The ID of the brute-force attacks prevention rule. Note
You can invoke the DescribeAntiBruteForceRules operation to obtain this parameter. |
1141**** |
| CurrentPage |
integer |
No |
The page number of the page to return. Default value: 1, which indicates the first page. |
1 |
| PageSize |
string |
No |
The maximum number of entries to return on each page in a paged query. This parameter is used for paging. |
10 |
| Name |
string |
No |
The name of the brute-force attacks prevention rule. |
testName |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D |
| PageInfo |
object |
The pagination information of the query result. |
|
| CurrentPage |
integer |
The page number of the current page in a paged query. This parameter is used for paging. |
1 |
| PageSize |
integer |
The maximum number of entries returned per page in a paged query. This parameter is used for paging. |
20 |
| TotalCount |
integer |
The total number of brute-force attacks prevention rules that have been created. |
2 |
| Count |
integer |
The number of entries returned on the current page in a paged query. This parameter is used for paging. |
2 |
| Rules |
array<object> |
The details of brute-force attacks prevention rules. |
|
|
array<object> |
The details of a brute-force attacks prevention rule. |
||
| MachineCount |
integer |
The number of servers to which the brute-force attacks prevention rule is applied. |
3 |
| EnableSmartRule |
boolean |
This parameter is deprecated and does not need to be specified. |
false |
| FailCount |
integer |
The threshold for the number of failed logon attempts that triggers the brute-force attacks prevention rule. |
15 |
| ForbiddenTime |
integer |
The duration for which the attacker IP address is disabled after the brute-force attacks prevention rule is triggered. Unit: minutes. |
360 |
| Span |
integer |
The time threshold within which the brute-force attacks prevention rule takes effect. Unit: minutes. For example, if Span is set to 10, the brute-force attacks prevention rule is triggered and blocks logon attempts for the specified duration when the number of failed logon attempts within 10 minutes exceeds the settings threshold. |
10 |
| DefaultRule |
boolean |
Indicates whether the current rule is the default rule. Valid values:
Note
A brute-force attacks prevention rule that is configured as the default rule takes effect on all servers that do not have a prevention rule configured. See Settings for more information. |
true |
| Name |
string |
The name of the brute-force attacks prevention rule. |
AntiBruteForceRule01 |
| Id |
integer |
The ID of the brute-force attacks prevention rule. |
1629 |
| UuidList |
array |
The list of UUIDs of the servers to which the brute-force attacks prevention rule is applied. |
|
|
string |
The UUID of a server to which the brute-force attacks prevention rule is applied. |
uuid-018c-4ef7-89fd-988b9b0e**** |
|
| CreateTimestamp |
integer |
The UNIX timestamp when the brute-force attacks prevention rule was created. Unit: milliseconds. |
1669800181000 |
| ProtocolType |
object |
The protocol types that the brute-force attacks prevention rule supports for interception. |
|
| Rdp |
string |
RDP interception method, with values:
|
on |
| Ssh |
string |
SSH interception method, with values:
|
on |
| SqlServer |
string |
SQL Server interception method, with values:
|
off |
Examples
Success response
JSON format
{
"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 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.