云数据库 RDS-授权数据库账号的读写权限:请求示例

时间:2023-12-20 17:03:01

请求示例

授权数据库账号读写权限,rds账号可读可写、rds001账号只读、rds002账号可读可写
POST https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/f569f1358436479dbcba8603c32cc4aein03/db_privilege
{"db_name": "rds_test",
    "users": [
        {
            "name": "rds",
            "readonly": false,
            "schema_name": "teste123"
        },
        {
            "name": "rds001",
            "readonly": true,
            "schema_name": "teste123"
        },
       {
            "name": "rds002",
            "readonly": false,
            "schema_name": "teste123"
        }
    ]
 }
support.huaweicloud.com/api-rds/rds_11_0004.html