ListUpstreamTasks
Retrieves a paginated list of upstream nodes for a specified node.
Operation description
You must purchase DataWorks Basic Edition or a higher edition to use this operation.
Before you begin
A DataWorks workspace is activated in the target region, and you have access permissions for the workspace.
The calling identity is assigned the AliyunDataWorksFullAccess policy or an equivalent DataWorks access policy.
The node ID (Id) can be obtained by calling ListTasks.
If the preceding prerequisites are not met, the operation returns a 403 Forbidden.Access error.
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 |
| ProjectEnv |
string |
No |
The workspace environment where the node resides. Valid values:
|
Prod |
| Id |
integer |
Yes |
The ID of the node whose upstream dependencies you want to query. You can obtain the ID from the |
1234 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. |
10 |
| PageNumber |
integer |
No |
The page number. Pages start from 1. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. You can use this ID to locate logs and troubleshoot issues. |
22C97E95-F023-56B5-8852-B1A77A17XXXX |
| PagingInfo |
object |
The pagination information. |
|
Tasks
deprecated
|
array<object> |
[Deprecated] The list of nodes. Use UpstreamTasks instead. |
|
|
array<object> |
|||
| Name |
string |
The name. |
SQL node |
| Description |
string |
The description. |
test |
| WorkflowId |
integer |
The ID of the workflow to which the node belongs. |
1234 |
| InstanceMode |
string |
The instance generation mode.
|
T+1 |
| Type |
string |
The node type. |
ODPS_SQL |
| BaselineId |
integer |
The baseline ID. |
1234 |
| Priority |
integer |
The node priority. Valid values: 1 to 8. A larger value indicates a higher priority. Default value: 1. |
1 |
| Timeout |
integer |
The node execution timeout period, in seconds. |
3600 |
| RerunMode |
string |
The rerun configuration for the node. Valid values:
|
AllAllowed |
| RerunTimes |
integer |
The number of retries. This parameter takes effect only when the node is configured to be rerunnable. |
3 |
| RerunInterval |
integer |
The retry time interval, in seconds. |
60 |
| Trigger |
object |
The trigger type of the node. |
|
| Type |
string |
The trigger type. Valid values:
|
Scheduler |
| Recurrence |
string |
The running mode upon triggering. This parameter takes effect only when Type is set to Scheduler. Valid values:
|
Normal |
| Cron |
string |
The cron expression. This parameter takes effect only when Type is set to Scheduler. |
00 00 00 * * ? |
| StartTime |
string |
The start time of the periodic trigger. This field applies when The format is |
1970-01-01 00:00:00 |
| EndTime |
string |
The expiration time of periodic triggering. This parameter takes effect only when Type is set to Scheduler. The format is |
9999-01-01 00:00:00 |
| Timezone |
string |
The time zone. |
Asia/Shanghai |
| RuntimeResource |
object |
The runtime environment configuration, such as the resource group information. |
|
| ResourceGroupId |
string |
The identifier of the scheduling resource group configured for node execution. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Image |
string |
The ID of the image configured for node execution. |
i-xxxxxx |
| Cu |
string |
The compute unit (CU) consumption configured for node execution. |
0.25 |
| DataSource |
object |
The associated data source information. |
|
| Name |
string |
The name of the data source. |
mysql_test |
| Id |
integer |
The unique identifier of the node. |
1234 |
| ProjectId |
integer |
The project ID. |
100 |
ProjectEnv
deprecated
|
string |
[Deprecated] The project environment. Use EnvType instead. Valid values:
|
Prod |
| EnvType |
string |
The project environment.
|
Prod |
| Owner |
string |
The account ID of the node owner. |
1000 |
| StepType |
string |
The dependency type.
|
Normal |
| CreateTime |
integer |
The creation time. The value is a 13-digit number, such as |
1710239005403 |
| ModifyTime |
integer |
The modification time. The value is a 13-digit number, such as |
1710239005403 |
| CreateUser |
string |
The account ID of the user who created the node. |
1000 |
| ModifyUser |
string |
The account ID of the user who modified the node. |
1000 |
| UpstreamTasks |
array<object> |
The list of upstream nodes. Each item contains the node information and dependency type. |
|
|
array<object> |
|||
| DependencyType |
string |
The dependency type.
|
Normal |
| Task |
object |
The detailed information of the node. |
|
| Name |
string |
The name. |
SQL node |
| Description |
string |
The description. |
test |
| WorkflowId |
integer |
The ID of the workflow to which the node belongs. |
1234 |
| InstanceMode |
string |
The instance generation mode.
|
T+1 |
| Type |
string |
The node type. |
ODPS_SQL |
| BaselineId |
integer |
The baseline ID. |
1234 |
| Priority |
integer |
The node priority. Valid values: 1 to 8. |
1 |
| Timeout |
integer |
The node execution timeout period, in seconds. |
3600 |
| RerunMode |
string |
The rerun configuration for the node.
|
AllAllowed |
| RerunTimes |
integer |
The number of retries. This parameter takes effect only when the node is configured to be rerunnable. |
3 |
| RerunInterval |
integer |
The retry time interval, in seconds. |
60 |
| Trigger |
object |
The trigger type of the node. |
|
| Type |
string |
The trigger type. Valid values:
|
Scheduler |
| Recurrence |
string |
The execution mode when the task is triggered. This parameter takes effect only when Type is set to Scheduler. Valid values:
|
Normal |
| Cron |
string |
The cron expression. This parameter takes effect only when Type is set to Scheduler. |
00 00 00 * * ? |
| StartTime |
string |
The start time of the periodic trigger. This field applies when The format is |
1970-01-01 00:00:00 |
| EndTime |
string |
The expiration time of periodic triggering. This parameter takes effect only when Type is set to Scheduler. The format is |
9999-01-01 00:00:00 |
| Timezone |
string |
The time zone. |
Asia/Shanghai |
| RuntimeResource |
object |
The runtime environment configuration, such as the resource group information. |
|
| ResourceGroupId |
string |
The identifier of the scheduling resource group configured for node execution. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Image |
string |
The ID of the image configured for node execution. |
i-xxxxxx |
| Cu |
string |
The compute unit (CU) consumption configured for node execution. |
0.25 |
| DataSource |
object |
The associated data source information. |
|
| Name |
string |
The name of the data source. |
mysql_test |
| Id |
integer |
The unique identifier of the node. |
1234 |
| ProjectId |
integer |
The project ID. |
100 |
| EnvType |
string |
The project environment.
|
Prod |
| Owner |
string |
The account ID of the node owner. |
1000 |
| CreateTime |
integer |
The creation time. The value is a 13-digit number, such as |
1710239005403 |
| ModifyTime |
integer |
The modification time. The format is a 13-digit number, such as |
1710239005403 |
| CreateUser |
string |
The account ID of the user who created the node. |
1000 |
| ModifyUser |
string |
The account ID of the user who modified the node. |
1000 |
| TotalCount |
integer |
The total number of upstream nodes for this node. |
100 |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
Examples
Success response
JSON format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX\n",
"PagingInfo": {
"Tasks": [
{
"Name": "SQL node\n",
"Description": "test",
"WorkflowId": 1234,
"InstanceMode": "T+1",
"Type": "ODPS_SQL\n",
"BaselineId": 1234,
"Priority": 1,
"Timeout": 3600,
"RerunMode": "AllAllowed",
"RerunTimes": 3,
"RerunInterval": 60,
"Trigger": {
"Type": "Scheduler",
"Recurrence": "Normal",
"Cron": "00 00 00 * * ?\n",
"StartTime": "1970-01-01 00:00:00\n",
"EndTime": "9999-01-01 00:00:00\n",
"Timezone": "Asia/Shanghai"
},
"RuntimeResource": {
"ResourceGroupId": "S_res_group_524258031846018_1684XXXXXXXXX",
"Image": "i-xxxxxx",
"Cu": "0.25"
},
"DataSource": {
"Name": "mysql_test\n"
},
"Id": 1234,
"ProjectId": 100,
"ProjectEnv": "Prod",
"EnvType": "Prod",
"Owner": "1000",
"StepType": "Normal",
"CreateTime": 1710239005403,
"ModifyTime": 1710239005403,
"CreateUser": "1000",
"ModifyUser": "1000"
}
],
"UpstreamTasks": [
{
"DependencyType": "Normal",
"Task": {
"Name": "SQL node",
"Description": "test",
"WorkflowId": 1234,
"InstanceMode": "T+1",
"Type": "ODPS_SQL",
"BaselineId": 1234,
"Priority": 1,
"Timeout": 3600,
"RerunMode": "AllAllowed\n",
"RerunTimes": 3,
"RerunInterval": 60,
"Trigger": {
"Type": "Scheduler",
"Recurrence": "Normal\n",
"Cron": "00 00 00 * * ?",
"StartTime": "1970-01-01 00:00:00",
"EndTime": "9999-01-01 00:00:00",
"Timezone": "Asia/Shanghai"
},
"RuntimeResource": {
"ResourceGroupId": "S_res_group_524258031846018_1684XXXXXXXXX",
"Image": "i-xxxxxx",
"Cu": "0.25"
},
"DataSource": {
"Name": "mysql_test"
},
"Id": 1234,
"ProjectId": 100,
"EnvType": "Prod",
"Owner": "1000",
"CreateTime": 1710239005403,
"ModifyTime": 1710239005403,
"CreateUser": "1000",
"ModifyUser": "1000"
}
}
],
"TotalCount": 100,
"PageSize": 10,
"PageNumber": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.