Skip to main content

CreateAntiBruteForceRule

Description

call CreateAntiBruteForceRule to add anti-brute-force cracking rules.

Request Method

POST

Request Path

/apsara/route/Sas/CreateAntiBruteForceRule

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
DefaultRuleBODYbooleanNotruewhether the added brute-force defense rule is set as the default policy. Valid values include: true: set as default policy false: not set as the default policy
ForbiddenTimeBODYintegerNo10the length of time to prohibit login when adding brute-force defense rules.
SourceIpBODYstringNo1.2.3.4access the IP address of the source.
regionIdBODYstringYesNo sample value for this parameter.region id
FailCountBODYintegerNo10the threshold for the number of login failures set when adding brute-force defense rules.
UuidList.NBODYrepeatlistNouuid-1312133-ssas,uuid-1234-qwer-dssList of servers where the brute force defense rule takes effect.
SpanBODYintegerNo15the interval between logons set in the brute-force cracking defense rule.
versionBODYstringNo2016-01-01version of api
NameBODYstringNobrute force cracking defense rulesthe name of the brute-force defense rule.

Return data

NameTypeSample valueDescription
RequestIdstringFB3E435F-4116-46F9-A5DE-C338DDA04F47the unique identifier generated by alibaba cloud for this request.
CreateAntiBruteForceRulestructNo sample value for this parameter.the return result of creating an anti-brute force cracking rule.
RuleIdlong6363anti-brute force cracking rule ID.

Example

Successful Response example

{
"RequestId":"FB3E435F-4116-46F9-A5DE-C338DDA04F47",
"CreateAntiBruteForceRule":"",
"RuleId":"6363"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}