dws__UpdateDatabaseAuthority
Grants or revokes permissions on DWS database objects for specified roles, covering databases, schemas, tables, views, columns, functions, sequences, node groups, and roles.
Instructions
[DWS] 修改数据库对象权限。
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": {
"cluster_id": "<cluster_id>",
"database": "<database>",
"is_grant": "<is_grant>",
"object_list": "<object_list>",
"project_id": "<project_id>",
"role_list": "<role_list>",
"type": "<type>"
},
"name": "dws__UpdateDatabaseAuthority"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | 对象类型 [DATABASE | SCHEMA | TABLE | VIEW | COLUMN | FUNCTION| SEQUENCE | NODEGROUP | ROLE] | |
| table | No | 表名 | |
| schema | No | 模式名称 | |
| cascade | No | 撤销权限是否级联撤销 默认 true | |
| database | Yes | 数据库名称 | |
| is_grant | Yes | 是否授权操作 | |
| role_list | Yes | 被授权角色列表 | |
| all_object | No | schema下所有数据库对象权限,默认false | |
| cluster_id | Yes | cluster_id | |
| grant_list | No | 授权列表 is_grant为true时必填 | |
| project_id | Yes | project_id | |
| object_list | Yes | 权限所属对象列表 | |
| revoke_list | No | 撤销权限列表 is_grant为false时必填 |