ListNodes
Queries a list of nodes.
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 |
| Owner |
string |
No |
The ID of the owner. |
193379**** |
| BizName |
string |
No |
The name of the workflow. |
test_bizName |
| ProgramType |
string |
No |
The type of the node. You can call the ListFileType operation to view the node types. |
ODPS_SQL |
| PageNumber |
integer |
No |
The page number. Valid values: 1 to 100. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. Maximum value: 100. |
10 |
| ProjectId |
integer |
Yes |
The ID of the workspace. |
1234 |
| ProjectEnv |
string |
Yes |
The runtime environment. Valid values: DEV and PROD. Valid values:
|
PROD |
| NodeName |
string |
No |
The name of the node. |
liux_test_n**** |
| SchedulerType |
string |
No |
The scheduling type. Valid values:
Valid values:
|
NORMAL |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response entity. |
||
| 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 connection does not exist. |
| ErrorCode |
string |
The error code. |
Invalid.Tenant.ConnectionNotExists |
| Success |
boolean |
Indicates whether the call was successful. |
true |
| Data |
object |
The list of nodes. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries to return on each page. Default value: 10. Maximum value: 100. |
10 |
| TotalCount |
integer |
The total number of nodes that meet the query conditions. |
66 |
| Nodes |
array<object> |
The information about the nodes. |
|
|
object |
The response entity. |
||
| SchedulerType |
string |
The scheduling type. Valid values:
|
NORMAL |
| RepeatInterval |
integer |
The rescheduling interval after an error occurs. |
60 |
| Repeatability |
boolean |
Indicates whether the node can be run repeatedly. |
true |
| RepeatMode |
integer |
The rerun mode. A value of 0 indicates that the node can be rerun only after it fails. A value of 1 indicates that the node can be rerun in all scenarios. A value of 2 indicates that the node cannot be rerun in any scenario. |
1 |
| ProjectId |
integer |
The ID of the workspace. |
33671 |
| ProgramType |
string |
The type of the node. |
ODPS_SQL |
| Priority |
integer |
The priority of the node. Valid values: 1, 3, 5, 7, and 8. |
1 |
| OwnerId |
string |
The ID of the owner. |
19337906836551 |
| Connection |
string |
The connection string. |
odps_source |
| ParamValues |
string |
The additional parameters. |
a=b |
| RelatedFlowId |
integer |
The ID of the associated workflow. |
1231123 |
| DqcType |
integer |
The DQC type. A value of 0 indicates that no DQC is associated. A value of 1 indicates that a DQC is associated. |
1 |
| BaselineId |
integer |
The baseline ID. |
123456 |
| Description |
string |
The description of the node. |
test |
| NodeName |
string |
The name of the node. |
liux_test_n**** |
| ResGroupName |
string |
The name of the resource group. |
Default resource group |
| BusinessId |
integer |
The ID of the workflow. |
123 |
| DqcDescription |
string |
The DQC partitioning rule string. |
[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\u003d$[yyyy-mm-dd-1]"}] |
| CronExpress |
string |
The cron expression. |
00 00 00 * * ? |
| NodeId |
integer |
The ID of the node. |
1234 |
| ResGroupIdentifier |
string |
The identifier of the resource group. |
group_123 |
| FileType |
integer |
The code varies with the file type. For more information, see DataWorks node collection. You can also call the ListFileType operation to query the code type of the file. |
10 |
| FileId |
integer |
The ID of the file. You can call the ListFiles operation to query the ID of the file. Warning This field is deprecated. |
20 |
| FileVersion |
integer |
The version of the file. This is the latest submitted version number. |
3 |
| DeployDate |
integer |
The timestamp of the submission and release date. Unit: milliseconds. |
1734537600000 |
| CreateTime |
integer |
The timestamp when the node was created. Unit: milliseconds. |
1593879116000 |
| ModifyTime |
integer |
The timestamp when the node was modified. Unit: milliseconds. |
1593879116000 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "E6F0DBDD-5AD****",
"ErrorMessage": "The connection does not exist.",
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Success": true,
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 66,
"Nodes": [
{
"SchedulerType": "NORMAL",
"RepeatInterval": 60,
"Repeatability": true,
"RepeatMode": 1,
"ProjectId": 33671,
"ProgramType": "ODPS_SQL",
"Priority": 1,
"OwnerId": "19337906836551",
"Connection": "odps_source",
"ParamValues": "a=b",
"RelatedFlowId": 1231123,
"DqcType": 1,
"BaselineId": 123456,
"Description": "test",
"NodeName": "liux_test_n****",
"ResGroupName": "Default resource group",
"BusinessId": 123,
"DqcDescription": "[{\"projectName\":\"ztjy_dim\",\"tableName\":\"dim_user_agent_manage_area_a\",\"partition\":\"ds\\u003d$[yyyy-mm-dd-1]\"}]",
"CronExpress": "00 00 00 * * ?",
"NodeId": 1234,
"ResGroupIdentifier": "group_123",
"FileType": 10,
"FileId": 20,
"FileVersion": 3,
"DeployDate": 1734537600000,
"CreateTime": 1593879116000,
"ModifyTime": 1593879116000
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.