Verifica se uma tabela existe.
Descrição da operação
Antes de começar: Ative o DataWorks Enterprise Edition ou Ultimate Edition antes de chamar esta operação. Se a edição não estiver ativada, o serviço retornará 403 Forbidden.Access.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dataworks:* |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| TableGuid |
string |
Não |
O identificador globalmente exclusivo da tabela. |
odps.engine_name.table_name |
| ClusterId |
string |
Não |
O ID do cluster EMR. |
abc |
| DatabaseName |
string |
Não |
O nome do banco de dados EMR. |
abc |
| TableName |
string |
Não |
O nome da tabela EMR. |
abc |
| DataSourceType |
string |
Não |
O tipo de fonte de dados. Valores válidos: odps e emr. |
emr |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| Data |
boolean |
Indica se a tabela existe. |
true |
| RequestId |
string |
O ID da solicitação. |
0bc1ec92159376 |
Exemplos
Resposta de sucesso
JSON formato
{
"Data": true,
"RequestId": "0bc1ec92159376"
}
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.Illegal | The app guid parameter is invalid. | O parâmetro do aplicativo é inválido. |
| 400 | InvalidParameter.Meta.NotExist | The object does not exist. | |
| 400 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 400 | InternalError.Meta.NoCalcEngine | An error occurred while retrieving the compute engine based on the MaxCompute project. | O projeto especificado está incorreto. |
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 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.