Locks an instance. After the instance is locked, you can only read data from the instance, but cannot write data to the instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:LockDBInstanceWrite |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
r-bp1zxszhcgatnx**** |
| LockReason |
string |
Yes |
The reason why write operations on the instance are locked. |
锁写操作验证。 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2BE6E619-A657-42E3-AD2D-18F8428A**** |
| DBInstanceName |
string |
The instance ID. |
r-2ev03avw0r0552*** |
| TaskId |
integer |
The task ID. |
21986**** |
| LockReason |
string |
The reason why write operations on the instance are locked. |
锁定写操作测试。 |
Examples
Success response
JSON format
{
"RequestId": "2BE6E619-A657-42E3-AD2D-18F8428A****",
"DBInstanceName": "r-2ev03avw0r0552***",
"TaskId": 0,
"LockReason": "锁定写操作测试。"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.