Enables the status of a specific instance in a custom rule.
Operation description
Before calling this operation, associate the target instance with a specified blocking rule by calling ModifyCustomBlockRecord. You can call CreateCustomBlockRecord to create a rule, call DescribeCustomBlockRecords to query rules, and then perform the association and enablement operations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:EnableCustomInstanceBlockRecord |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Uuid |
string |
Yes |
The UUID of the server. |
50d213b4-3a35-427a-b8a5-04b0c7e1**** |
| BlockIp |
string |
Yes |
The IP address for brute-force attacks prevention that you want to enable on the server. |
192.168.xx.xx |
| Bound |
string |
No |
The direction in which the brute-force attacks blocking policy blocks the IP address on the server. Valid values:
|
in |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. It is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues. |
571B2642-BF51-5BDD-906B-D2340DB9**** |
Examples
Success response
JSON format
{
"RequestId": "571B2642-BF51-5BDD-906B-D2340DB9****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.