Alibaba Cloud CLI
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oceanbase:ModifyDatabaseUserRoles |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DatabaseName |
string |
Yes |
The ID of the tenant. |
sms_pre |
| TenantId |
string |
Yes |
A list of usernames and their respective roles. |
t4louaeei**** |
| Users |
string |
Yes |
The ID of the OceanBase cluster. |
[{"UserName":"oceanbase1","Role":"readwrite"},{"UserName":"oceanbase2","Role":"readonly"}] |
| InstanceId |
string |
No |
The account information. |
ob317v4uif**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The ID of the tenant. |
||
| TenantUser |
object |
The name of the database. |
|
| DatabaseName |
string |
Example 1 |
sms_pre |
| Users |
array<object> |
List of accounts granted permissions on the database. |
|
|
object |
You can call this operation to modify the privileges of an account on a database. |
||
| Role |
string |
Role permission assigned to the account for this database.
|
ReadOnly |
| UserName |
string |
Account name. |
user_pay_ro |
| TenantId |
string |
Tenant ID. |
t33h8y08k**** |
| RequestId |
string |
Request ID. |
EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C |
Examples
Success response
JSON format
{
"TenantUser": {
"DatabaseName": "sms_pre",
"Users": [
{
"Role": "ReadOnly",
"UserName": "user_pay_ro"
}
],
"TenantId": "t33h8y08k****"
},
"RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 2014 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.