Obtém as informações sobre um pacote.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
odps:GetPackage |
get |
*Project
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /api/v1/projects/{projectName}/packages/{packageName} HTTP/1.1
Parâmetros de caminho
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| projectName |
string |
Sim |
O nome do projeto MaxCompute. |
projectA |
| packageName |
string |
Sim |
O nome do pacote. |
test_package |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| sourceProject |
string |
Não |
O projeto ao qual o pacote pertence. Este parâmetro é obrigatório se o pacote estiver instalado no projeto MaxCompute. |
projectB |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
PopResult. |
||
| requestId |
string |
O ID da solicitação. |
0b57ff8316614119858417939e3e54 |
| httpCode |
integer |
Indica se a solicitação foi bem-sucedida. Se este parâmetro não estiver vazio e o valor deste parâmetro não for 200, a solicitação falhou. |
200 |
| errorCode |
string |
O código de erro retornado se a solicitação falhou. |
040002 |
| errorMsg |
string |
A mensagem de erro. |
Exception information |
| data |
object |
Os dados retornados. |
|
| allowedProjectList |
array<object> |
Os projetos nos quais o pacote está instalado. |
|
|
object |
Os projetos nos quais o pacote está instalado. |
||
| label |
string |
The security level for sensitive data. |
2 |
| project |
string |
The name of the MaxCompute project. |
proejctB |
| resourceList |
object |
Os detalhes dos recursos incluídos no pacote. |
|
| table |
array<object> |
The tables. |
|
|
object |
The tables. |
||
| name |
string |
The name of the table. |
dim_odps |
| schemaName |
string |
The name of schema. |
default |
| actions |
array |
The operations that were performed on the table. |
|
|
string |
The operations that were performed on the table. |
describe |
|
| resource |
array<object> |
The resources. |
|
|
object |
The resources. |
||
| name |
string |
The name of the resource. |
res_1 |
| schemaName |
string |
The name of schema. |
default |
| actions |
array |
The operations that were performed on the resource. |
|
|
string |
The operations that were performed on the resource. |
read |
|
| function |
array<object> |
The functions. |
|
|
object |
The functions. |
||
| name |
string |
The name of the function. |
function_1 |
| schemaName |
string |
The name of schema. |
default |
| actions |
array |
The operations that were performed on the function. |
|
|
string |
The operations that were performed on the function. |
read |
Exemplos
Resposta de sucesso
JSON formato
{
"requestId": "0b57ff8316614119858417939e3e54",
"httpCode": 200,
"errorCode": "040002",
"errorMsg": "Exception information",
"data": {
"allowedProjectList": [
{
"label": "2",
"project": "proejctB"
}
],
"resourceList": {
"table": [
{
"name": "dim_odps\n",
"schemaName": "default",
"actions": [
"describe"
]
}
],
"resource": [
{
"name": "res_1",
"schemaName": "default",
"actions": [
"read"
]
}
],
"function": [
{
"name": "function_1",
"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.