Queries compute engine instances.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListCalcEngines |
The operation that you want to perform. Set the value to ListCalcEngines. |
ProjectId | Long | Yes | 27 |
The DataWorks workspace with which the compute engine instances are associated. |
Name | String | No | abc |
The name of the compute engine instance, which must be exactly matched. |
CalcEngineType | String | Yes | ODPS |
The type of the compute engine instance. Valid values: |
EnvType | String | No | PRD |
The environment in which the compute engine instance runs. Valid values: DEV and PRD. The value DEV indicates the development environment, and the value PRD indicates the production environment. |
PageSize | Integer | No. | 10 |
The number of entries to return on each page. Default value: 100. Maximum value: 100. |
PageNumber | Integer | No. | 1 |
The number of the page to return. Pages start from page 1. Default value: 1. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
HttpStatusCode | Integer | 200 |
The HTTP status code returned. |
RequestId | String | 0bc1ec92159376**** |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request was successful. |
Data | Object |
The query results for compute engine instances that are returned on multiple pages. |
|
PageNumber | Integer | 1 |
The number of the returned page. |
PageSize | Integer | 20 |
The number of entries returned per page. Default value: 10. Maximum value: 100. |
TotalCount | Integer | 1 |
The total number of compute engine instances. |
CalcEngines | Array of CalcEngines |
The compute engine instances. |
|
BindingProjectName | String | abc |
The name of the workspace with which the compute engine instance is associated. |
IsDefault | Boolean | true |
Indicates whether the compute engine instance is the default instance of the same compute engine type. |
EngineId | Integer | 35 |
The ID of the compute engine instance. |
DwRegion | String | cn-zhangjiakou |
The region ID of the DataWorks workspace with which the compute engine instance is associated. |
TaskAuthType | String | PROJECT |
The identity that is used to access the compute engine instance. Valid values:
|
CalcEngineType | String | ODPS |
The type of the compute engine instance. Valid values: |
EngineInfo | Map |
The details of the compute engine instance.
|
|
EnvType | String | PRD |
The environment in which the compute engine instance runs. Valid values:
|
Region | String | cn-zhangjiakou |
The region ID of the compute engine instance. |
GmtCreate | String | Oct 10, 2019 3:42:44 PM |
The time when the compute engine instance was created. This value is a timestamp. |
BindingProjectId | Integer | 27 |
The ID of the workspace with which the compute engine instance is associated. |
Name | String | abc |
The display name of the compute engine instance. |
TenantId | Long | 1234567 |
The ID of the tenant. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListCalcEngines
&ProjectId=27
&Name=abc
&CalcEngineType=ODPS
&EnvType=PRD
&PageSize=10
&PageNumber=1
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListCalcEnginesResponse>
<HttpStatusCode>200</HttpStatusCode>
<RequestId>0bc1ec92159376****</RequestId>
<Success>true</Success>
<Data>
<PageNumber>1</PageNumber>
<PageSize>20</PageSize>
<TotalCount>1</TotalCount>
<CalcEngines>
<BindingProjectName>abc</BindingProjectName>
<IsDefault>true</IsDefault>
<EngineId>35</EngineId>
<DwRegion>cn-zhangjiakou</DwRegion>
<TaskAuthType>PROJECT</TaskAuthType>
<CalcEngineType>ODPS</CalcEngineType>
<EnvType>PRD</EnvType>
<Region>cn-zhangjiakou</Region>
<GmtCreate>Oct 10, 2019 3:42:44 PM</GmtCreate>
<BindingProjectId>27</BindingProjectId>
<Name>abc</Name>
<TenantId>1234567</TenantId>
</CalcEngines>
</Data>
</ListCalcEnginesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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",
"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 error message returned because the specified data source does not exist. |
400 | Invalid.Tenant.ProjectNotExists | The project does not exist. | The error message returned because the specified workspace does not exist. |
400 | Invalid.Tenant.UserNotInProject | The user is not in the project. | The error message returned because the user is not added to the workspace. |
400 | Invalid.CalcEngineEnvType | The specified envType %s is invalid. | The error message returned because the value of the EnvType parameter is invalid. |
400 | Invalid.CalcEngineType | The specified calcEngineType %s is invalid. | The error message returned because the value of the CalcEngineType parameter is invalid. |
403 | Invalid.Tenant.UserIsNotProjectOwnerOrAdmin | The user is not a project administrator or owner. | The error message returned because the user is not the workspace owner or workspace administrator. |
403 | Invalid.Tenant.UserNotInTenant | The user is not in tenant. | The error message returned because the user does not belong to the tenant. |
For a list of error codes, see Service error codes.