rds__UpdateDbUserPrivilege
Grants or revokes RDS database user privileges and system roles by specifying the instance, account, authorization type, and privilege set to control database access.
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": {
"authorization_type": "<authorization_type>",
"instance_id": "<instance_id>",
"privileges": "<privileges>",
"project_id": "<project_id>",
"user_name": "<user_name>"
},
"name": "rds__UpdateDbUserPrivilege"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_name | Yes | 账号,数据库相关联的帐号 | |
| privileges | Yes | 支持用户设置的权限集合。 1、privilege_type为ROLE时需要使用,枚举: CREATEDB CREATEROLE LOGIN REPLICATION 2、privilege_type为RECYCLING_ROLE时需要使用,枚举: NOCREATEDB NOCREATEROLE NOLOGIN NOREPLICATION 3、privilege_type为SYSTEM_ROLE /RECYCLING_ SYSTEM_ROLE时需要使用,枚举: pg_monitor pg_signal_backend root | |
| project_id | Yes | 项目ID。 | |
| instance_id | Yes | 实例ID。 | |
| authorization_type | Yes | 授权SQL类型,枚举: 1、ROLE(支持对指定用户设置以下权限) 2、RECYCLING_ROLE(支持对指定用户回收以下权限) 3、SYSTEM_ROLE(支持对指定用户授予以下系统角色) 4、RECYCLING_SYSTEM_ROLE(支持对指定用户回收以下系统角色) |