Consulta as informações de tema e nível de uma tabela.
Descrição da operação
Antes de começar: Ative o DataWorks Enterprise Edition ou Ultimate Edition. Você pode fazer login no console do DataWorks para ativar ou atualizar para a edição necessária.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| TableGuid |
string |
Sim |
O ID exclusivo da tabela. Formato: odps.${projectName}.${tableName}. |
odps.project1.name1 |
| DataSourceType |
string |
Sim |
O tipo de dados. Atualmente, apenas odps é suportado. |
odps |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| HttpStatusCode |
integer |
O código de status HTTP. |
200 |
| ErrorMessage |
string |
A mensagem de erro. |
success |
| RequestId |
string |
O ID da solicitação. Você pode usar este ID para solucionar problemas. |
1324afdsfde |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. |
true |
| ErrorCode |
string |
O código de erro. |
0 |
| Entity |
object |
Os dados retornados. |
|
| Theme |
array<object> |
As informações do tema. |
|
|
object |
As informações do tema. |
||
| ParentId |
integer |
O ID do tema pai. |
0 |
| Name |
string |
O nome do tema. |
theme1 |
| ThemeId |
integer |
O ID do tema. |
123 |
| Level |
integer |
O nível do tema. Valores válidos:
|
1 |
| Level |
array<object> |
As informações de nível. |
|
|
object |
As informações de nível. |
||
| Type |
integer |
O tipo do nível. Valores válidos:
|
1 |
| Description |
string |
A descrição do nível. |
描述 |
| Name |
string |
O nome do nível. |
level1 |
| LevelId |
integer |
O ID do nível. |
1 |
Exemplos
Resposta de sucesso
JSON formato
{
"HttpStatusCode": 200,
"ErrorMessage": "success",
"RequestId": "1324afdsfde",
"Success": true,
"ErrorCode": "0",
"Entity": {
"Theme": [
{
"ParentId": 0,
"Name": "theme1",
"ThemeId": 123,
"Level": 1
}
],
"Level": [
{
"Type": 1,
"Description": "描述",
"Name": "level1",
"LevelId": 1
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | Invalid.Meta.TableNotExist | The table does not exist. | A tabela não existe. |
| 400 | InvalidParameter.Meta.CommonError | The specified parameter is invalid. | O parâmetro da solicitação é inválido. |
| 400 | InvalidParameter.Meta.Illegal | The app guid parameter is invalid. | O parâmetro do aplicativo é inválido. |
| 400 | InvalidParameter.Meta.IllegalDate | The date format is invalid. | O formato de data é inválido. |
| 400 | InvalidParameter.Meta.IllegalPageError | The parameter for paging is invalid. | As informações de paginação são inválidas. |
| 400 | InvalidParameter.Meta.NotExist | The object does not exist. | |
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 500 | InternalError.Meta.NoCalcEngine | An error occurred while retrieving the compute engine based on the MaxCompute project. | |
| 500 | InternalError.Meta.TenantTimeOut | Failed to connect to the interface network. | A rede da interface está desconectada. |
| 500 | InternalError.Meta.Unknown | An unknown error occurred while processing your request. | Ocorreu um erro desconhecido. |
| 403 | Forbidden.Meta.NoTenant | The user is not the owner of any tenants. | O usuário atual não é o proprietário de nenhum locatário. |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | Acesso negado. Autorize o acesso. |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.