Obtém as permissões baseadas em ACL concedidas a uma função no nível do projeto.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
odps:GetRoleAcl |
get |
*Project
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /api/v1/projects/{projectName}/roles/{roleName}/roleAcl HTTP/1.1
Parâmetros de caminho
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| projectName |
string |
Sim |
O nome do projeto MaxCompute. |
projectA |
| roleName |
string |
Sim |
O nome da função. |
roleA |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
Nenhum parâmetro necessário.
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
PopResult. |
||
| requestId |
string |
O ID da solicitação. |
0a06dc0916696898838762018e9564 |
| httpCode |
integer |
O código de status HTTP. |
200 |
| errorCode |
string |
O código de erro retornado se a solicitação falhar. |
040002 |
| errorMsg |
string |
A mensagem de erro. |
Exception information |
| data |
object |
Os dados retornados. |
|
| table |
array<object> |
A tabela. |
|
|
object |
A tabela. |
||
| name |
string |
The name of the table. |
tableA |
| schemaName |
string |
The Schema name. |
default |
| actions |
array |
The operations that were performed on the table. |
|
|
string |
The operations that were performed on the table. |
describe |
|
| resource |
array<object> |
O recurso. |
|
|
object |
O recurso. |
||
| name |
string |
The name of the resource. |
resourceA |
| schemaName |
string |
The Schema name. |
default |
| actions |
array |
The operations that were performed on the resource. |
|
|
string |
The operations that were performed on the resource. |
read |
|
| function |
array<object> |
A função. |
|
|
object |
A função. |
||
| name |
string |
The name of the function. |
functionA |
| schemaName |
string |
The Schema name. |
default |
| actions |
array |
The operations that were performed on the function. |
|
|
string |
The operations that were performed on the function. |
read |
|
| project |
array<object> |
O projeto. |
|
|
object |
O projeto. |
||
| name |
string |
The name of the MaxCompute project. |
projectA |
| schemaName |
string |
The Schema name. |
default |
| actions |
array |
The operations that were performed on the project. |
|
|
string |
The operations that were performed on the project. |
list |
|
| instance |
array<object> |
A instância. |
|
|
object |
A instância. |
||
| name |
string |
The name of the instance. |
instanceA |
| schemaName |
string |
The Schema name. |
default |
| actions |
array |
The operations that were performed on the instance. |
|
|
string |
The operations that were performed on the instance. |
read |
|
| package |
array<object> |
O pacote. |
|
|
object |
O pacote. |
||
| name |
string |
The name of the package. |
packageA |
| schemaName |
string |
The Schema name. |
default |
| actions |
array |
The operations that were performed on the package. |
|
|
string |
The operations that were performed on the package. |
read |
Exemplos
Resposta de sucesso
JSON formato
{
"requestId": "0a06dc0916696898838762018e9564",
"httpCode": 200,
"errorCode": "040002",
"errorMsg": "Exception information",
"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"
]
}
]
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.