All Products
Search
Document Center

Security Center:DescribeAntiBruteForceRules

Last Updated:Dec 29, 2025

Queries created defense rules against brute-force attacks.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

121.69.XX.XX
IdlongNo

The ID of the defense rule.

Note You can call the DescribeAntiBruteForceRules operation to query the IDs of defense rules.
1141****
CurrentPageintegerNo

The number of the page to return. Default value: 1.

1
PageSizestringNo

The number of entries to return on each page.

10
NamestringNo

The name of the rule.

testName

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D
PageInfoobject

The pagination information.

CurrentPageinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

20
TotalCountinteger

The total number of entries returned.

2
Countinteger

The number of entries returned on the current page.

2
Rulesarray<object>

An array that consists of the defense rules returned.

AntiBruteForceRuleobject

The details about the defense rule.

MachineCountinteger

The number of servers to which the defense rule is applied.

3
EnableSmartRuleboolean

This parameter is deprecated.

false
FailCountinteger

The threshold of logon failures that you specify.

15
ForbiddenTimeinteger

The period of time during which logons from an account are not allowed. Unit: minutes.

360
Spaninteger

The period of time during which logon failures from an account are measured. Unit: minutes. If Span is set to 10, the defense rule takes effect when the logon failures measured within 10 minutes reaches the specified threshold. The IP address of attackers cannot be used to log on to the server in the specified period of time.

10
DefaultRuleboolean

Indicates whether the defense rule is the default rule. Valid values:

  • true: yes
  • false: no
Note The default rule takes effect on all servers that are not protected by defense rules against brute-force attacks.
true
Namestring

The name of the defense rule.

AntiBruteForceRule01
Idlong

The ID of the defense rule.

1629
UuidListarray

An array consisting of the UUIDs of servers to which the defense rule is applied.

uuidstring

The UUID of the server to which the defense rule is applied.

uuid-018c-4ef7-89fd-988b9b0e****
CreateTimestamplong

防暴力破解规则创建时间戳。单位:毫秒。

1669800181000
ProtocolTypeobject

The types of protocols that the brute force cracking rule supports to intercept.

Rdpstring

RDP interception method, values:

  • on: enable
  • off: disable
on
Sshstring

SSH interception method, with values:

  • on: enabled
  • off: disabled
on
SqlServerstring

SqlServer interception mode, with values:

  • on: enable
  • off: disable
off

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 codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-06-08The response structure of the API has changedView Change Details
2023-04-06The request parameters of the API has changed. The response structure of the API has changedView Change Details