All Products
Search
Document Center

DataWorks:ListNodes

Last Updated:Jan 12, 2026

Queries a list of nodes in DataStudio. You can also specify filter conditions to query specific nodes.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dataworks:*list
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdstringYes

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID.

12345
ScenestringNo

The location of the nodes in the left-side navigation pane of the Data Studio page, which is a filter condition. If you do not want to use this condition for filtering, you do not need to configure this parameter. Valid values:

  • DataworksProject
  • DataworksManualWorkflow
  • DataworksManualTask
DATAWORKS_PROJECT
ContainerIdstringNo

Leave this parameter empty if not specified. Filter condition: within a specified container. Specify the container ID. This parameter is independent of the resource group ID (ResourceGroupId).

Note Prior to SDK version 8.0.0, this field is of type Long. In SDK version 8.0.0 and later, it is of type String. This change does not affect the normal use of the SDK. The parameter is returned based on the type defined in the SDK. Compilation failures caused by the type change may occur only when you upgrade the SDK across version 8.0.0. In this case, you must manually update the data type.
860438872620113XXXX
RecurrencestringNo

Leave this parameter empty if not specified. Filter condition: within a specified container. Specify the container ID. This parameter is independent of the resource group ID (ResourceGroupId).

Note Prior to SDK version 8.0.0, this field is of type Long. In SDK version 8.0.0 and later, it is of type String. This change does not affect the normal use of the SDK. The parameter is returned based on the type defined in the SDK. Compilation failures caused by the type change may occur only when you upgrade the SDK across version 8.0.0. In this case, you must manually update the data type.
Normal
RerunModestringNo

The rerun property, which is a filter condition. If you do not want to use this condition for filtering, you do not need to configure this parameter. Valid values:

  • Allowed: The nodes can be rerun regardless of whether they are successfully run or fail to run.
  • FailureAllowed: The nodes can be rerun only after they fail to run.
  • Denied: The nodes cannot be rerun regardless of whether they are successfully run or fail to run.
Allowed
NamestringNo

The name of the node. Fuzzy search is supported.

test
PageNumberintegerNo

The page number of the data to retrieve, used for pagination.

1
PageSizeintegerNo

The page number of the data to retrieve, used for pagination.

10

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

2197B9C4-39CE-55EA-8EEA-FDBAE52DXXXX
PagingInfoobject

The pagination information.

TotalCountstring

The total number of entries returned.

42
PageSizestring

The number of entries per page.

10
PageNumberstring

The page number.

1
Nodesarray<object>

The list of nodes in Data Studio.

nodeobject

Information about nodes in Data Studio.

Descriptionstring

The description of the node.

Node description
Namestring

The name of the node.

test
ProjectIdstring

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID.

33233
Ownerstring

The owner of nodes in Data Studio.

110755000425XXXX
CreateTimelong

The timestamp when the node in Data Studio was created.

1722910655000
ModifyTimelong

The timestamp when the node in DataStudio was last modified.

1722910655000
DataSourceobject

The data source.

Namestring

The name of the data source.

odps_first
Typestring

The type of the data source.

odps
TaskIdstring

The ID of the scheduling task.

88888888888
Tagsarray<object>

The tag information (not in use).

tagobject

The single tag (not in use).

Keystring

The tag key.

null
Valuestring

The tag value.

null
Strategyobject

The scheduling policy.

Timeoutinteger

Timeout.

0
InstanceModestring

The instance generation mode. Valid values:

  • T+1
  • Immediately
T+1
RerunModestring

The rerun mode. Valid values:

  • Allowed
  • Denied
  • FailureAllowed
Allowed
RerunTimesinteger

The number of reruns.

3
RerunIntervalinteger

The rerun interval. Unit: milliseconds.

180000
Outputsobject

The output of the node.

Variablesarray<object>

The variable list.

variableobject

The variable.

Namestring

The name of the variable.

output
ArtifactTypestring

The artifact type.

Variable
Scopestring

The variable scope. Valid values:

  • NodeParameter
  • NodeContext
  • Workflow
  • Workspace
NodeParameter
Typestring

The variable type. Valid values:

  • NoKvVariableExpression
  • Constant
  • PassThrough
  • System
  • NodeOutput
Constant
Valuestring

The variable value.

111
Nodeobject

The node to which the variable belongs.

Outputstring

The output of the node.

860438872620113XXXX
Idstring

The variable ID.

Note Prior to SDK version 8.0.0, this field is of type Long. In SDK version 8.0.0 and later, it is of type String. This change does not affect the normal use of the SDK. The parameter is returned based on the type defined in the SDK. Compilation failures caused by the type change may occur only when you upgrade the SDK across version 8.0.0. In this case, you must manually update the data type.
623731286945488XXXX
NodeOutputsarray<object>

The node output list.

nodeoutputobject

The node output item.

Datastring

The output of the node.

860438872620113XXXX
Tablesarray<object>

The table list.

tableobject

The table output item.

Guidstring

The table ID.

odps.autotest.test_output_table_1
Inputsobject

The node input.

Variablesarray<object>

The variable list.

variableobject

The variable.

Namestring

The name of the variable.

input
ArtifactTypestring

The artifact type.

Variable
Scopestring

The scope of the variable. Valid values:

  • WorkSpace
  • NodeParameter
  • NodeContext
  • Workflow
NodeParameter
Typestring

The type of the variable. Valid values:

  • NoKvVariableExpression
  • Constant
  • PassThrough
  • System
  • NodeOutput
Constant
Valuestring

The variable value.

222
Nodeobject

The node to which the variable belongs.

Outputstring

The output of the node.

623731286945488XXXX
Idstring

The variable ID.

Note Prior to SDK version 8.0.0, this field is of type Long. In SDK version 8.0.0 and later, it is of type String. This change does not affect the normal use of the SDK. The parameter is returned based on the type defined in the SDK. Compilation failures caused by the type change may occur only when you upgrade the SDK across version 8.0.0. In this case, you must manually update the data type.
543211286945488XXXX
NodeOutputsarray<object>

The node output list.

nodeoutputobject

The node output item.

Datastring

The output of the node.

623731286945488XXXX
Tablesarray<object>

The table list.

tableobject

The table output item.

Guidstring

The table ID.

odps.autotest.test_output_table_1
Triggerobject

The trigger.

Typestring

The trigger type.

Valid values:

  • Scheduler: Periodic scheduling
  • Manual: Manual trigger
  • Streaming: Streaming task
Scheduler
Cronstring

The cron expression for scheduling.

00 00 00 * * ?
StartTimestring

The start time of the validity period of the trigger.

1970-01-01 00:00:00
EndTimestring

The end time of the validity period of the trigger.

9999-01-01 00:00:00
Timezonestring

The time zone.

Asia/Shanghai
Idstring

The trigger ID.

Note Prior to SDK version 8.0.0, this field is of type Long. In SDK version 8.0.0 and later, it is of type String. This change does not affect the normal use of the SDK. The parameter is returned based on the type defined in the SDK. Compilation failures caused by the type change may occur only when you upgrade the SDK across version 8.0.0. In this case, you must manually update the data type.
543680677872062XXXX
Scriptobject

The script information.

Pathstring

The script path.

root/demo
Runtimeobject

The runtime.

Commandstring

The command used to distinguish node types.

ODPS_SQL
Idstring

The ID of the script.

Note This field is of type Long in SDK versions prior to 8.0.0, and of type String in SDK version 8.0.0 and later. This change does not affect the normal use of the SDK. The parameter is returned based on the type defined in the SDK. Compilation failures caused by the type change may occur only when you upgrade the SDK across version 8.0.0. In this case, you must manually update the data type.
853573334108680XXXX
RuntimeResourceobject

The information about the resource group.

ResourceGroupIdstring

The resource group ID.

S_resgrop_xxx
ResourceGroupstring

The identifier of the resource group. You can call the ListResourceGroups operation to query the identifier of the resource group.

S_res_group_XXXX
Recurrencestring

The scheduling type.

Valid values:

  • Normal: The node is scheduled as expected.
  • Pause: The node is paused, and the running of its descendant nodes is blocked.
  • Skip: The node is dry run. The system does not actually run the node but directly prompts that the node is successfully run. The running duration of the node is 0 seconds. In addition, the node does not occupy resources or block the running of its descendant nodes.
Normal
Idstring

The unique identifier of the Data Studio node.

Note This field is of the Long type in SDK versions prior to 8.0.0, and of the String type in SDK versions 8.0.0 and later. This change does not affect the normal use of the SDK. The parameter is returned based on the type defined in the SDK. Compilation failures caused by the type change may occur only when you upgrade the SDK across version 8.0.0. In this case, you must manually update the data type.
860438872620113XXXX

Examples

Sample success responses

JSONformat

{
  "RequestId": "2197B9C4-39CE-55EA-8EEA-FDBAE52DXXXX",
  "PagingInfo": {
    "TotalCount": 42,
    "PageSize": 10,
    "PageNumber": 1,
    "Nodes": [
      {
        "Description": "Node description\n",
        "Name": "test",
        "ProjectId": 33233,
        "Owner": "110755000425XXXX",
        "CreateTime": 1722910655000,
        "ModifyTime": 1722910655000,
        "DataSource": {
          "Name": "odps_first",
          "Type": "odps"
        },
        "TaskId": 88888888888,
        "Tags": [
          {
            "Key": null,
            "Value": null
          }
        ],
        "Strategy": {
          "Timeout": 0,
          "InstanceMode": "T+1",
          "RerunMode": "Allowed",
          "RerunTimes": 3,
          "RerunInterval": 180000
        },
        "Outputs": {
          "Variables": [
            {
              "Name": "output\n",
              "ArtifactType": "Variable",
              "Scope": "NodeParameter",
              "Type": "Constant",
              "Value": 111,
              "Node": {
                "Output": "860438872620113XXXX"
              },
              "Id": "623731286945488XXXX"
            }
          ],
          "NodeOutputs": [
            {
              "Data": "860438872620113XXXX"
            }
          ],
          "Tables": [
            {
              "Guid": "odps.autotest.test_output_table_1"
            }
          ]
        },
        "Inputs": {
          "Variables": [
            {
              "Name": "input",
              "ArtifactType": "Variable",
              "Scope": "NodeParameter",
              "Type": "Constant",
              "Value": 222,
              "Node": {
                "Output": "623731286945488XXXX"
              },
              "Id": "543211286945488XXXX"
            }
          ],
          "NodeOutputs": [
            {
              "Data": "623731286945488XXXX"
            }
          ],
          "Tables": [
            {
              "Guid": "odps.autotest.test_output_table_1"
            }
          ]
        },
        "Trigger": {
          "Type": "Scheduler",
          "Cron": "00 00 00 * * ?",
          "StartTime": "1970-01-01 00:00:00",
          "EndTime": "9999-01-01 00:00:00",
          "Timezone": "Asia/Shanghai",
          "Id": "543680677872062XXXX"
        },
        "Script": {
          "Path": "root/demo",
          "Runtime": {
            "Command": "ODPS_SQL"
          },
          "Id": "853573334108680XXXX"
        },
        "RuntimeResource": {
          "ResourceGroupId": "S_resgrop_xxx",
          "ResourceGroup": "S_res_group_XXXX"
        },
        "Recurrence": "Normal",
        "Id": "860438872620113XXXX"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-12-29The response structure of the API has changedView Change Details
2025-04-02The response structure of the API has changedView Change Details
2025-01-13The internal configuration of the API is changed, but the call is not affectedView Change Details
2025-01-13The response structure of the API has changedView Change Details
2024-10-11The request parameters of the API has changedView Change Details