Consulta uma lista de mecanismos de computação associados a um espaço de trabalho do DataWorks.
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 |
| ProjectId |
integer |
Sim |
O ID do espaço de trabalho do DataWorks ao qual o mecanismo de computação está associado. |
27 |
| Name |
string |
Não |
O nome do mecanismo de computação, que deve corresponder exatamente. |
abc |
| CalcEngineType |
string |
Sim |
O tipo do mecanismo de computação. O valor deste parâmetro não diferencia maiúsculas de minúsculas. Valores válidos:
|
ODPS |
| EnvType |
string |
Não |
O ambiente no qual o mecanismo de computação é usado. Valores válidos:
|
PRD |
| PageSize |
integer |
Não |
O número de entradas por página. Valor padrão: 10. Valor máximo: 100. |
10 |
| PageNumber |
integer |
Não |
O número da página. As páginas começam na página 1. Valor padrão: 1. |
1 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| HttpStatusCode |
integer |
O código de status HTTP. |
200 |
| RequestId |
string |
O ID da solicitação. |
0bc1ec92159376**** |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
| Data |
object |
Os resultados da consulta de mecanismos de computação retornados em várias páginas. |
|
| PageNumber |
integer |
O número da página retornada. |
1 |
| PageSize |
integer |
O número de entradas por página. |
20 |
| TotalCount |
integer |
O número total de instâncias de mecanismo de computação. |
1 |
| CalcEngines |
array<object> |
Os mecanismos de computação. |
|
|
array<object> |
Os dados retornados. |
||
| BindingProjectName |
string |
The name of the workspace with which the compute engine is associated. |
abc |
| IsDefault |
boolean |
Indicates whether the compute engine is the default engine of the current type. |
true |
| EngineId |
integer |
The compute engine ID. |
35 |
| DwRegion |
string |
The region where the DataWorks workspace with which the compute engine is associated resides. |
cn-zhangjiakou |
| TaskAuthType |
string |
The identity that is used to access the compute engine. Valid values:
|
PROJECT |
| CalcEngineType |
string |
The type of the compute engine. |
ODPS |
| EngineInfo |
object |
The details of the compute engine.
|
{"pubEndpoint":"http://service.cn.maxcompute.aliyun.com/api","endpoint":"http://service.cn.maxcompute.aliyun-inc.com/api","resourceGroupType":"ODPS","resourceGroupId":"361826516****","vpcEndpoint":"http://service.cn.maxcompute.aliyun-inc.com/api","projectName":"onefall_test_zjk","taskSameAsOwner":"true"} |
| EnvType |
string |
The environment in which the compute engine is used. Valid values:
|
PRD |
| Region |
string |
The region where the compute engine resides. |
cn-zhangjiakou |
| GmtCreate |
string |
The time when the compute engine was created. |
Oct 10, 2019 3:42:44 PM |
| BindingProjectId |
integer |
The ID of the workspace with which the compute engine is associated. |
27 |
| Name |
string |
The display name of the compute engine. |
abc |
| TenantId |
integer |
The tenant ID. |
1234567 |
Exemplos
Resposta de sucesso
JSON formato
{
"HttpStatusCode": 200,
"RequestId": "1AFAE64E-D1BE-432B-A9****",
"Success": true,
"Data": {
"PageNumber": 1,
"PageSize": 20,
"TotalCount": 1,
"CalcEngines": [
{
"BindingProjectName": "test_project",
"IsDefault": true,
"EngineId": 35,
"DwRegion": "cn-zhangjiakou",
"TaskAuthType": "PROJECT",
"CalcEngineType": "ODPS",
"EngineInfo": {
"pubEndpoint": "service.cn.maxcompute.aliyun.com/api",
"endpoint": "service.cn.maxcompute.aliyun-inc.com/api",
"initProperties": " {\"odpsTypeMode\":\"STANDARD\",\"openPai\":false,\"openPaiGpu\":false}",
"resourceGroupType": "ODPS",
"resourceGroupId": "361826516****",
"vpcEndpoint": "service.cn.maxcompute.aliyun-inc.com/api",
"projectName": "onefall_test_zjk",
"taskSameAsOwner": "true"
},
"EnvType": "PRD",
"Region": "cn-zhangjiakou",
"GmtCreate": "Oct 10, 2019 3:42:44 PM",
"BindingProjectId": 466230,
"Name": "test_mc",
"TenantId": 1234567
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | Invalid.Tenant.ConnectionNotExists | The connection does not exist. | The connection does not exist. |
| 400 | Invalid.Tenant.ProjectNotExists | The project does not exist. | The project does not exist. |
| 400 | Invalid.Tenant.UserNotInProject | The user is not in the project. | The user is not in the project. |
| 400 | Invalid.CalcEngineEnvType | The specified envType %s is invalid. | The specify env type %s invalid |
| 400 | Invalid.CalcEngineType | The specified calcEngineType %s is invalid. | The specify calc engine type %s invalid. |
| 403 | Invalid.Tenant.UserIsNotProjectOwnerOrAdmin | The user is not a project administrator or owner. | The user is not a project administrator or owner. |
| 403 | Invalid.Tenant.UserNotInTenant | The user is not in tenant. | The user is not in tenant. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.