ListCalcEngines
Queries the data sources bound in the Data Studio environment of a specified DataWorks workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The DataWorks workspace to which the data source belongs. |
466230 |
| Name |
string |
No |
The name of the data source to query. Exact match. |
test_mc |
| CalcEngineType |
string |
Yes |
The type of the data source to query. This parameter is case-insensitive. Valid values:
|
ODPS |
| EnvType |
string |
No |
The environment to which the data source belongs. Valid values:
|
PRD |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 100. |
10 |
| PageNumber |
integer |
No |
The page number. The value must be a positive integer greater than or equal to 1. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
1AFAE64E-D1BE-432B-A9**** |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Data |
object |
The paginated query results. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
20 |
| TotalCount |
integer |
The total number of data sources. |
1 |
| CalcEngines |
array<object> |
The list of data sources. |
|
|
array<object> |
The data source information. |
||
| BindingProjectName |
string |
The name of the workspace associated with the data source. |
test_project |
| IsDefault |
boolean |
Indicates whether the data source is the default data source of the current type. |
true |
| EngineId |
integer |
The ID of the data source. |
35 |
| DwRegion |
string |
The region where the DataWorks workspace associated with the data source is located. |
cn-zhangjiakou |
| TaskAuthType |
string |
The access identity of the data source. Valid values:
|
PROJECT |
| CalcEngineType |
string |
The type of the data source. |
ODPS |
| EngineInfo |
object |
The detailed information of the data source.
|
{ "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 |
string |
The environment where the data source is located. Valid values:
|
PRD |
| Region |
string |
The region where the data source is located. |
cn-zhangjiakou |
| GmtCreate |
string |
The time when the data source was created. |
Oct 10, 2019 3:42:44 PM |
| BindingProjectId |
integer |
The ID of the workspace to which the data source belongs. |
466230 |
| Name |
string |
The display name of the data source. |
test_mc |
| TenantId |
integer |
The tenant ID. |
1234567 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "0bc1ec92159376****",
"Success": true,
"Data": {
"PageNumber": 1,
"PageSize": 20,
"TotalCount": 1,
"CalcEngines": [
{
"BindingProjectName": "abc",
"IsDefault": true,
"EngineId": 35,
"DwRegion": "cn-zhangjiakou",
"TaskAuthType": "PROJECT",
"CalcEngineType": "ODPS",
"EngineInfo": {
"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": "PRD",
"Region": "cn-zhangjiakou",
"GmtCreate": "Oct 10, 2019 3:42:44 PM",
"BindingProjectId": 27,
"Name": "abc",
"TenantId": 1234567
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.