Modifies the anti-brute-force-attack rule that is applied to a specific server.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyInstanceAntiBruteForceRule |
The operation that you want to perform. Set the value to ModifyInstanceAntiBruteForceRule. |
SourceIp | String | No | 1.2.3.4 |
The source IP address of the request. |
Uuid | String | No | cc62fb70-fa90-4c1a-91a5-25806b36**** |
The UUID of the server for which you want to modify the anti-brute-force-attack rule. Note You can call the DescribeCloudCenterInstances operation to query the UUID of the server.
|
NewRuleId | Long | No | 12 |
Specify the ID of the rule with which you want to replace the current rule. You can apply only one rule to each server. Therefore, you can specify only one rule ID. Note You can call the DescribeAntiBruteForceRules operation to query the rule ID The value of the Id parameter indicates the rule ID..
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D |
The ID of the request. |
Sample requests
Sample request
http(s)://[Endpoint]/? Action=ModifyInstanceAntiBruteForceRule
&Uuid=cc62fb70-fa90-4c1a-91a5-25806b36****
&NewRuleId=12
&<Common request parameters>
Sample success responses
XML
format
<ModifyInstanceAntiBruteForceRuleResponse>
<RequestId>4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D</RequestId>
</ModifyInstanceAntiBruteForceRuleResponse>
JSON
format
{
"RequestId": "4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D"
}
Error codes
For a list of error codes, visit the API Error Center.