Grants permissions to one or more DLF users or roles.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dlf:BatchGrantPermissions |
create |
*All Resource
|
None | None |
Request syntax
POST /dlf/v1/auth/permissions/{catalogId}/batchgrant HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| catalogId |
string |
No |
The ID of the catalog. |
clg-paimon-xxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| permissions |
array |
No |
The permissions to grant. |
|
| Permission |
No |
The permission. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| failurePermissions |
array |
The permissions failed to be granted. |
|
| FailurePermission |
The permission failed to be granted. |
||
| success |
boolean |
Indicates whether the API call was successful. |
True |
| errorMessage |
string |
The error message returned if the request fails. If the request is successful, this parameter is empty. |
空 |
Examples
Success response
JSON format
{
"failurePermissions": [
{
"errorMessage": "空",
"errorCode": "空",
"permission": {
"resourceType": "CATALOG",
"database": "database_name",
"table": "table_name",
"access": "DROP",
"principal": "acs:ram::[accountId]:user/user_name",
"columns": {
"columnNames": [
""
],
"excludedColumnNames": [
""
]
},
"function": "",
"view": "",
"expireTime": "",
"rowFilter": {
"expression": "",
"predicate": ""
}
}
}
],
"success": true,
"errorMessage": "空"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.