All Products
Search
Document Center

:ListPermissions

Last Updated:May 20, 2024

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /api/metastore/auth/permissions/list

Request parameters

ParameterTypeRequiredDescriptionExample
BodyobjectNo
CatalogIdstringNo

CatalogId

1344371

Response parameters

ParameterTypeDescriptionExample
object

Response Object

Codestring

Response Code

OK
Messagestring

Message Code

.
RequestIdstring

RequestId

745EAAE2-5010-5C9F-A95C-B8FC5C1B03BF
Successboolean

Success

true
NextPageTokenstring

NextPageToken

token!
TotalCountlong

TotalCount

Examples

Sample success responses

JSONformat

{
  "Code": "OK",
  "Message": ".",
  "RequestId": "745EAAE2-5010-5C9F-A95C-B8FC5C1B03BF",
  "Success": true,
  "NextPageToken": "token!",
  "TotalCount": 0,
  "PrincipalResourcePermissionsList": [
    {
      "Principal": {
        "PrincipalArn": "acs:ram::[AliyunAccountId]:user/username_abc"
      },
      "MetaResource": {
        "ResourceType": "TABLE",
        "CatalogResource": {
          "CatalogId": "1344371"
        },
        "DatabaseResource": {
          "DatabaseName": "default",
          "DatabaseWildcard": "*"
        },
        "TableResource": {
          "DatabaseName": "database_test",
          "TableName": "test_parquet"
        },
        "FunctionResource": {
          "DatabaseName": "default",
          "FunctionName": "default"
        },
        "ColumnResource": {
          "DatabaseName": "default",
          "TableName": "test",
          "ColumnNames": [
            "name"
          ]
        }
      },
      "Accesses": [
        "ALTER/SELECT/CREATE, etc."
      ],
      "DelegateAccesses": [
        "ALTER/SELECT/CREATE, etc."
      ]
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.