rds__SetReadOnlySwitch
Set a Huawei Cloud RDS database user to read-only or restore write access by specifying the instance, project, and desired read-only flag.
Instructions
[RDS] 根据业务需求,设置数据库用户只读
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"readonly": "<readonly>"
},
"name": "rds__SetReadOnlySwitch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| readonly | Yes | 是否设置为只读权限 | |
| project_id | Yes | 租户在某一region下的project ID。获取方法请参见获取项目ID。 | |
| instance_id | Yes | 实例ID。 |