All Products
Search
Document Center

MaxCompute:GetRoleAcl

Last Updated:Mar 03, 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.

tableobject []

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
resourceobject []

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
functionobject []

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
projectobject []

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
instanceobject []

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
packageobject []

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 changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.