GetAclAuthInfo
Checks whether the current caller identity has the ACL permissions for a specified operation on a group of objects of the same type in a specified project. Returns the check result for each object.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetAclAuthInfo |
get |
*Project
|
None | None |
Request syntax
POST /api/v1/projects/{projectName}/auth HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the MaxCompute project. |
example_project |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| schemaName |
string |
No |
The name of the schema to which the object belongs. |
default |
| objectType |
string |
Yes |
The object type to be checked. Valid values: TABLE, FUNCTION, and RESOURCE. |
TABLE |
| actionType |
string |
Yes |
The operation to be checked. Valid values: SELECT and DESCRIBE. |
SELECT |
| body |
array |
No |
The array of object names for which permissions need to be checked. The objects in the array must belong to the same project, schema, and object type. |
["sales_daily"] |
|
string |
No |
The name of a single object for which permissions need to be checked. |
sales_daily |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The API response, including the request ID and permission query results. |
||
| requestId |
string |
The request ID, which can be used to locate server-side call logs. |
EFAB5AA9-394A-5B28-81FB-A32F03C4DD13 |
| data |
object |
The object permission check results and the total number of results. |
|
| result |
array<object> |
The list of permission check results for the specified objects. |
|
|
object |
The permission check result for a single object. |
||
| objectType |
string |
The object type to be checked. Valid values: TABLE, FUNCTION, and RESOURCE. |
TABLE |
| actionType |
string |
The operation to be checked. Valid values: SELECT and DESCRIBE. |
SELECT |
| objectName |
string |
The name of the checked object. |
sales_daily |
| isGranted |
boolean |
Indicates whether the caller has the permissions for the specified operation. A value of true indicates that the caller is authorized. A value of false indicates that the caller is not authorized. |
true |
| totalCount |
integer |
The total number of results returned for this permission check. |
1 |
| pageNumber |
integer |
The page number of the results, which is fixed to 1. |
1 |
| pageSize |
integer |
The number of objects returned for this permission check. |
1 |
Examples
Success response
JSON format
{
"requestId": "EFAB5AA9-394A-5B28-81FB-A32F03C4DD13",
"data": {
"result": [
{
"objectType": "TABLE",
"actionType": "SELECT",
"objectName": "sales_daily",
"isGranted": true
}
],
"totalCount": 1,
"pageNumber": 1,
"pageSize": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.