ListInstances
Queries a list of instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectEnv |
string |
Yes |
The runtime environment. Valid values: PROD (production environment) and DEV (development environment). Valid values:
|
PROD |
| NodeId |
integer |
No |
The ID of the node. You can call the ListNodes operation to query the node ID. |
100000000000 |
| NodeName |
string |
No |
The name of the node. You can call the ListNodes operation to query the node name. |
openmr_8**** |
| Owner |
string |
No |
The ID of the owner, which is the UID of the workspace administrator. You can log on to the Alibaba Cloud Management Console and view the account UID in Security Management under Account Management. |
193379**** |
| ProjectId |
integer |
Yes |
The ID of the workspace. You can call the ListProjects operation to query the workspace ID. |
12345 |
| BizName |
string |
No |
The name of the workflow. You can call the ListBusiness operation to query the workflow information. |
test_bizName |
| ProgramType |
string |
No |
The type of the node. You can call the ListNodes operation to query the node type. |
ODPS_SQL |
| PageNumber |
integer |
No |
The page number. Minimum value: 1. Maximum value: 100. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. Maximum value: 100. |
10 |
| DagId |
integer |
No |
The ID of the directed acyclic graph (DAG). The value can be the DagId returned by operations such as RunCycleDagNodes for backfilling data, RunSmokeTest for smoke testing, and RunManualDagNodes for running manual workflows. |
11111 |
| Bizdate |
string |
No |
The date for querying the instance list. Format: yyyy-MM-dd HH:mm:ss. |
2020-02-02 00:00:00 |
| BeginBizdate |
string |
No |
The start date for querying the instance list. Format: yyyy-MM-dd HH:mm:ss. |
2020-02-02 00:00:00 |
| EndBizdate |
string |
No |
The end date for querying the instance list. Format: yyyy-MM-dd HH:mm:ss. |
2020-02-03 00:00:00 |
| Status |
string |
No |
The status of the node. Valid values:
Valid values:
|
NOT_RUN |
| OrderBy |
string |
No |
The sorting rule for the returned results. Valid values:
Valid values:
|
INSTANCE_ID_DESC |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
E6F0DBDD-5AD**** |
| ErrorMessage |
string |
The error message. |
The project does not exist. |
| ErrorCode |
string |
The error code. |
Invalid.Tenant.ProjectNotExists |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
object |
The list of instances. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries returned per page. Default value: 10. Maximum value: 100. |
10 |
| TotalCount |
integer |
The total number of instances. |
66 |
| Instances |
array<object> |
The instance information. |
|
|
object |
The returned data. |
||
| Status |
string |
The status of the node. Valid values:
|
NOT_RUN |
| CycTime |
integer |
The time when the scheduled node runs. The value is a 13-digit timestamp, such as |
1590422400000 |
| BeginRunningTime |
integer |
The time when the instance started running. The value is a 13-digit timestamp, such as |
1590416703313 |
| FinishTime |
integer |
The time when the scheduled node finished running. The value is a 13-digit timestamp, such as |
1590416703313 |
| ErrorMessage |
string |
[Deprecated] The error message of the instance. You can call the GetInstanceLog operation to obtain the error message of the executed node. |
error message |
| CreateTime |
integer |
The time when the instance was created. The value is a 13-digit timestamp, such as |
1590416703313 |
| DagId |
integer |
The ID of the workflow. |
33845 |
| Priority |
integer |
The priority of the instance. Valid values: 1, 3, 5, 7, and 8. A larger value indicates a higher priority. Default value: 1. |
1 |
| TaskType |
string |
The scheduling type of the instance. Valid values:
|
NORMAL(0) |
| ParamValues |
string |
The parameter values. |
bizdate=$bizdate tbods=$tbods |
| Connection |
string |
The connection string. |
odps_source |
| BaselineId |
integer |
The baseline ID. |
123123 |
| DqcType |
integer |
The DQC type. Valid values:
|
1 |
| DagType |
string |
The type of the workflow. Valid values:
|
DAILY |
| BusinessId |
integer |
The workflow ID. |
123 |
| TaskRerunTime |
integer |
The number of times the instance can be rerun. The value can be empty or an integer greater than or equal to 0.
|
0 |
| ModifyTime |
integer |
The last time the scheduled node was modified. The value is a 13-digit timestamp, such as |
1590416703313 |
| Repeatability |
boolean |
Indicates whether the instance can be repeatedly run. |
true |
| RepeatInterval |
integer |
The interval at which the scheduling is retried after the scheduled node fails. Unit: milliseconds. |
60000 |
| InstanceId |
integer |
The ID of the instance. |
1234 |
| BeginWaitResTime |
integer |
The time when the instance started waiting for resources. The value is a 13-digit timestamp, such as |
1590416703313 |
| RelatedFlowId |
integer |
The ID of the associated workflow. |
123456 |
| Bizdate |
integer |
The business date of the scheduled node. Typically, this is the day before the node runs. The value is a 13-digit timestamp, such as |
1590336000000 |
| NodeName |
string |
The name of the node. |
kzh |
| BeginWaitTimeTime |
integer |
The time when the instance started waiting to be scheduled. The value is a 13-digit timestamp, such as |
1590416703313 |
| DqcDescription |
string |
The DQC partitioning rule string. |
[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\u003d$[yyyy-mm-dd-1]"}] |
| NodeId |
integer |
The ID of the node. |
33115 |
| CreateUser |
string |
The user who triggered the instance. For example, if the user Test triggers a data backfill instance, the value is Test. |
Test |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "E6F0DBDD-5AD****",
"ErrorMessage": "The project does not exist.",
"ErrorCode": "Invalid.Tenant.ProjectNotExists",
"Success": true,
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 66,
"Instances": [
{
"Status": "NOT_RUN",
"CycTime": 1590422400000,
"BeginRunningTime": 1590416703313,
"FinishTime": 1590416703313,
"ErrorMessage": "error message",
"CreateTime": 1590416703313,
"DagId": 33845,
"Priority": 1,
"TaskType": "NORMAL(0)",
"ParamValues": "bizdate=$bizdate tbods=$tbods",
"Connection": "odps_source",
"BaselineId": 123123,
"DqcType": 1,
"DagType": "DAILY",
"BusinessId": 123,
"TaskRerunTime": 0,
"ModifyTime": 1590416703313,
"Repeatability": true,
"RepeatInterval": 60000,
"InstanceId": 1234,
"BeginWaitResTime": 1590416703313,
"RelatedFlowId": 123456,
"Bizdate": 1590336000000,
"NodeName": "kzh",
"BeginWaitTimeTime": 1590416703313,
"DqcDescription": "[{\"projectName\":\"ztjy_dim\",\"tableName\":\"dim_user_agent_manage_area_a\",\"partition\":\"ds\\u003d$[yyyy-mm-dd-1]\"}]",
"NodeId": 33115,
"CreateUser": "Test"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.