All Products
Search
Document Center

MaxCompute:GetRoleAcl

Last Updated:Jul 15, 2024

Obtains the ACL-based permissions that is granted to a project-level role.

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

GET /api/v1/projects/{projectName}/roles/{roleName}/roleAcl

Request parameters

ParameterTypeRequiredDescriptionExample
projectNamestringYes

The name of the MaxCompute project.

projectA
roleNamestringYes

The name of the role.

roleA

Response parameters

ParameterTypeDescriptionExample
object

PopResult

requestIdstring

The ID of the request.

0a06dc0916696898838762018e9564
httpCodeinteger

The HTTP status code.

200
errorCodestring

The error code returned if the request failed.

040002
errorMsgstring

The error message.

error message
dataobject

The returned data.

tablearray<object>

The table.

object

The table.

namestring

The name of the table.

tableA
schemaNamestring

The Schema name.

default
actionsarray

The operations that were performed on the table.

string

The operations that were performed on the table.

describe
resourcearray<object>

The resource.

object

The resource.

namestring

The name of the resource.

resourceA
schemaNamestring

The Schema name.

default
actionsarray

The operations that were performed on the resource.

string

The operations that were performed on the resource.

read
functionarray<object>

The function.

object

The function.

namestring

The name of the function.

functionA
schemaNamestring

The Schema name.

default
actionsarray

The operations that were performed on the function.

string

The operations that were performed on the function.

read
projectarray<object>

The project.

object

The project.

namestring

The name of the MaxCompute project.

projectA
schemaNamestring

The Schema name.

default
actionsarray

The operations that were performed on the project.

string

The operations that were performed on the project.

list
instancearray<object>

The instance.

object

The instance.

namestring

The name of the instance.

instanceA
schemaNamestring

The Schema name.

default
actionsarray

The operations that were performed on the instance.

string

The operations that were performed on the instance.

read
packagearray<object>

The package.

object

The package.

namestring

The name of the package.

packageA
schemaNamestring

The Schema name.

default
actionsarray

The operations that were performed on the package.

string

The operations that were performed on the package.

read

Examples

Sample success responses

JSONformat

{
  "requestId": "0a06dc0916696898838762018e9564",
  "httpCode": 200,
  "errorCode": "040002",
  "errorMsg": "error message",
  "data": {
    "table": [
      {
        "name": "tableA",
        "schemaName": "default",
        "actions": [
          "describe"
        ]
      }
    ],
    "resource": [
      {
        "name": "resourceA",
        "schemaName": "default",
        "actions": [
          "read"
        ]
      }
    ],
    "function": [
      {
        "name": "functionA",
        "schemaName": "default",
        "actions": [
          "read"
        ]
      }
    ],
    "project": [
      {
        "name": "projectA",
        "schemaName": "default",
        "actions": [
          "list"
        ]
      }
    ],
    "instance": [
      {
        "name": "instanceA",
        "schemaName": "default",
        "actions": [
          "read"
        ]
      }
    ],
    "package": [
      {
        "name": "packageA",
        "schemaName": "default",
        "actions": [
          "read"
        ]
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-12-10The response structure of the API has changedView Change Details