Revokes database permissions.
Try it now
Test
RAM authorization
Request syntax
PUT /api/v1/instances/{instanceId}/revokeDatabasePermission HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The ID of the instance. |
hgpostcn-cn-zpr3426vxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| databaseName |
string |
No |
The name of the database. |
test_db |
| userName |
string |
No |
The user ID. For more information, see Hologres account overview. |
p4_1234xxxx |
| privileges |
array |
No |
The list of permissions. |
|
|
string |
No |
The list of permissions. For more information, see Hologres permission model. |
developer |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
819A7F0F-2951-540F-BD94-6A41ECF0281F |
| data |
boolean |
Indicates whether the request was successful. A value of `true` indicates success and a value of `false` indicates failure. |
true |
Examples
Success response
JSON format
{
"requestId": "819A7F0F-2951-540F-BD94-6A41ECF0281F",
"data": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.