Consulta a linhagem de dados de uma tabela.
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 exclusivo da tabela. |
odps.engine_name.table_name |
| Direction |
string |
Sim |
A direção da linhagem. Valores válidos:\n\n- up: upstream.\n- down: downstream. |
up |
| NextPrimaryKey |
string |
Não |
A lógica de paginação.\n\nSe HasNext estiver definido como true e NextPrimaryKey não estiver vazio na última resposta, defina este parâmetro com o valor de NextPrimaryKey na próxima solicitação. |
next_primary_key |
| PageSize |
integer |
Não |
O número de entradas por página. Valor padrão: 10. Valor máximo: 100. |
10 |
| ClusterId |
string |
Não |
O ID do cluster EMR. Este parâmetro se aplica a cenários EMR. |
abc |
| DatabaseName |
string |
Não |
O nome do banco de dados. |
abc |
| TableName |
string |
Não |
O nome da tabela. |
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 |
A estrutura da resposta. |
||
| HttpStatusCode |
integer |
O código de status HTTP. |
200 |
| ErrorMessage |
string |
A mensagem de erro. |
The connection does not exist. |
| RequestId |
string |
O ID da solicitação. |
0bc1ec92159376 |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. |
true |
| ErrorCode |
string |
O código de erro. |
Invalid.Tenant.ConnectionNotExists |
| Data |
object |
Os dados de negócio. |
|
| NextPrimaryKey |
string |
A chave de paginação. Quando HasNext for true na resposta, use a chave retornada para paginação. |
odps.tt.2 |
| HasNext |
boolean |
Indica se há uma próxima página. |
true |
| DataEntityList |
array<object> |
As informações da tabela. |
|
|
object |
A estrutura da resposta. |
||
| TableName |
string |
O nome da tabela. |
name |
| TableGuid |
string |
O identificador exclusivo da tabela. |
odps.tt.name |
| CreateTimestamp |
integer |
A hora de criação. |
1638720736000 |
| DatabaseName |
string |
O nome do banco de dados. |
db1 |
Exemplos
Resposta de sucesso
JSON formato
{
"HttpStatusCode": 200,
"ErrorMessage": "A conexão não existe",
"RequestId": "0bc1ec92159376",
"Success": true,
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Data": {
"NextPrimaryKey": "odps.tt.2",
"HasNext": true,
"DataEntityList": [
{
"TableName": "name",
"TableGuid": "odps.tt.name",
"CreateTimestamp": 1638720736000,
"DatabaseName": "db1"
}
]
}
}
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.GuidFormat | The GUID format is invalid. | O formato do GUID é inválido. |
| 400 | InvalidParameter.Meta.Illegal | The app guid parameter is invalid. | O parâmetro App é inválido. |
| 400 | InvalidParameter.Meta.IllegalDate | The date format is invalid. | O formato da 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. | |
| 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 API está inacessível. |
| 500 | InternalError.Meta.Unknown | An unknown error occurred while processing your request. | Ocorreu um erro desconhecido. |
| 403 | Forbidden.Access | Access is forbidden. Activate DataWorks first. | |
| 403 | ResourceNotAuthorized.Api | You are not authorized to access the resources. | |
| 403 | Forbidden.Meta.NoTenant | The user is not the owner of any tenants. | O usuário atual não é proprietário de nenhum inquilino. |
| 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.