ListNodes

Updated at:

Retrieves a paginated list of Data Studio nodes. You can filter the list by using specified conditions.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

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

12345

Scene

string

No

The scenario to which the node belongs. This parameter is used as a filter condition. If you do not specify this parameter, leave it empty. In Data Studio, this parameter corresponds to the sections in the left-side directory tree. Valid values:

  • DataworksProject: project directory

  • DataworksManualWorkflow: manual workflow

  • DataworksManualTask: manual task.

DataworksProject

ContainerId

string

No

The ID of the container. This parameter is used as a filter condition to query nodes in a specified container. If you do not specify this parameter, leave it empty. This parameter is independent of the ResourceGroupId parameter.

Important Before SDK version 8.0.0, this field is of the Long type. In SDK version 8.0.0 and later, this field is of the String type. This change does not affect the normal use of the SDK, and the parameter is still returned based on the type defined in the SDK. However, if you upgrade the SDK across version 8.0.0, the type change may cause project compilation failures. In this case, you must manually correct the data type.

860438872620113XXXX

Path

string

No

The full path of the directory. Only the direct child nodes in the directory are returned. To query the root directory, set this parameter to /. To query a subdirectory, set this parameter to the full path of the subdirectory. The Path and ContainerId parameters are mutually exclusive.

Workflow/Order analysis

Recurrence

string

No

The scheduling type. This parameter is used as a filter condition. Valid values:

  • Normal: The node runs normally.

  • Pause: The node is paused, and the execution of downstream nodes that depend on the current node is blocked.

  • Skip: The node is set to dry run. The system directly returns a success status with an execution duration of 0 seconds. This does not block the execution of downstream nodes or consume resources.

Normal

RerunMode

string

No

The rerun mode. If you do not specify this parameter, leave it empty. Valid values:

  • Allowed: The node can be rerun after it succeeds or fails.

  • FailureAllowed: The node can be rerun only after it fails.

  • Denied: The node cannot be rerun regardless of whether it succeeds or fails.

Allowed

Name

string

No

The name of the node. Fuzzy match is supported.

test

OrderBy

string

No

The field by which nodes are sorted. Valid values: CreateTime and ModifyTime. Nodes are sorted in descending order based on the specified field. If you do not specify this parameter, nodes are sorted by creation time by default.

Valid values:

  • CreateTime
  • ModifyTime

ModifyTime

PageNumber

integer

No

The page number of the requested data.

1

PageSize

integer

No

The number of entries to return on each page. Default value: 10. Maximum value: 100.

10

Response elements

Element

Type

Description

Example

object

The response schema.

RequestId

string

The request ID. Used to locate logs and troubleshoot issues.

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

PagingInfo

object

The pagination information.

TotalCount

string

The total number of entries that meet the conditions.

42

PageSize

string

The number of entries displayed per page.

10

PageNumber

string

The page number of the requested data.

1

Nodes

array<object>

The list of Data Studio nodes.

array<object>

The Data Studio node information.

Description

string

The description of the node.

Node description

Name

string

The name of the node.

test

ProjectId

integer

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

33233

Owner

string

The owner of the Data Studio node.

110755000425XXXX

CreateTime

integer

The timestamp when the Data Studio node was created.

1722910655000

ModifyTime

integer

The timestamp when the Data Studio node was last modified.

1722910655000

DataSource

object

The data source.

Name

string

The name of the data source.

odps_first

Type

string

The type of the data source.

odps

TaskId

integer

The ID of the scheduling task.

88888888888

Tags

array<object>

The tag information. This field is currently not used.

object

The tag. This field is currently not used.

Key

string

The key of the tag.

null

Value

string

The value of the tag.

null

Strategy

object

The scheduling policy.

Timeout

integer

The timeout period. Unit: seconds.

0

InstanceMode

string

The mode for generating instances. Valid values:

  • T+1

  • Immediately

Valid values:

  • Immediately :

    Runs immediately.

  • T+1 :

    Runs the next day.

T+1

RerunMode

string

The rerun mode. Valid values:

  • Allowed

  • Denied

  • FailureAllowed

Valid values:

  • FailureAllowed :

    Allows reruns upon failure.

  • Denied :

    Denies reruns.

  • Allowed :

    Allows reruns.

Allowed

RerunTimes

integer

The number of retries.

3

RerunInterval

integer

The retry interval. Unit: milliseconds.

180000

Outputs

object

The node output.

Variables

array<object>

The list of variables.

array<object>

The variable element.

Name

string

The name of the variable.

output

ArtifactType

string

The type of the artifact.

Variable

Scope

string

The scope of the variable. Valid values:

  • NodeParameter

  • NodeContext

  • Workflow

  • Workspace

NodeParameter

Type

string

The type of the variable. Valid values:

  • NoKvVariableExpression

  • Constant

  • PassThrough

  • System

  • NodeOutput

Constant

Value

string

The value of the variable.

111

Node

object

The node to which the variable belongs.

Output

string

The node output.

860438872620113XXXX

Id

string

The ID of the variable.

Important This field is of the Long type in SDK versions earlier than 8.0.0, and of the String type in SDK 8.0.0 and later. This change does not affect the normal use of the SDK. The parameter is still returned based on the type defined in the SDK. The type change may cause project compilation failures only when you upgrade the SDK across version 8.0.0. In this case, you must manually correct the data type.

623731286945488XXXX

NodeOutputs

array<object>

The list of node outputs.

object

The node output item.

Data

string

The node output.

860438872620113XXXX

RefTableName

string

The name of the destination data table generated by the node. This field provides a semantic name that is easy to understand and helps users quickly identify the output content. It is used only for display and remarks, and has no actual logical constraints.

testProject.testTableName

Tables

array<object>

The list of tables.

object

The table output item.

Guid

string

The table ID.

odps.autotest.test_output_table_1

Inputs

object

The node input.

Variables

array<object>

The list of variables.

array<object>

The variable element.

Name

string

The name of the variable.

input

ArtifactType

string

The type of the artifact.

Variable

Scope

string

The scope of the input variable. Valid values:

  • WorkSpace

  • NodeParameter

  • NodeContext

  • Workflow

NodeParameter

Type

string

The type. Valid values:

  • NoKvVariableExpression

  • Constant

  • PassThrough

  • System

  • NodeOutput

Constant

Value

string

The value of the variable.

222

Node

object

The node to which the variable belongs.

Output

string

The node output.

623731286945488XXXX

Id

string

The ID of the variable.

Important This field is of the Long type in SDK versions earlier than 8.0.0, and of the String type in SDK 8.0.0 and later. This change does not affect the normal use of the SDK. The parameter is still returned based on the type defined in the SDK. The type change may cause project compilation failures only when you upgrade the SDK across version 8.0.0. In this case, you must manually correct the data type.

543211286945488XXXX

NodeOutputs

array<object>

The list of node outputs.

object

The node output item.

Data

string

The node output.

623731286945488XXXX

RefTableName

string

The name of the destination data table generated by the node. This field provides a semantic name that is easy to understand and helps users quickly identify the output content. It is used only for display and remarks, and has no actual logical constraints.

testProject.testTableName

Tables

array<object>

The list of tables.

object

The table output item.

Guid

string

The table ID.

odps.autotest.test_output_table_1

Trigger

object

The trigger.

Type

string

The trigger type. Valid values:

  • Scheduler: periodic scheduling.

  • Manual: manual trigger.

  • Steaming: streaming task.

Scheduler

Cron

string

The cron expression for scheduling.

00 00 00 * * ?

StartTime

string

The start time of the trigger validity period. The format is yyyy-MM-dd HH:mm:ss, such as 1970-01-01 00:00:00. This example does not include a time zone identifier.

1970-01-01 00:00:00

EndTime

string

The end time of the trigger validity period. The format is yyyy-MM-dd HH:mm:ss, such as 9999-01-01 00:00:00. This example does not include a time zone identifier.

9999-01-01 00:00:00

Timezone

string

The time zone.

Asia/Shanghai

Id

string

The trigger ID.

Important This field is of the Long type in SDK versions earlier than 8.0.0 and of the String type in SDK 8.0.0 and later. This change does not affect the normal use of the SDK. The parameter is still returned based on the type defined in the SDK. The type change may cause project compilation to fail only when you upgrade the SDK across version 8.0.0. In this case, you must manually correct the data type.

543680677872062XXXX

Script

object

The script information.

Path

string

The script path.

root/demo

Runtime

object

The runtime.

Command

string

The command used to distinguish node types.

ODPS_SQL

Id

string

The script ID.

Important This field is of the Long type in SDK versions earlier than 8.0.0 and of the String type in SDK 8.0.0 and later. This change does not affect the normal use of the SDK. The parameter is still returned based on the type defined in the SDK. The type change may cause project compilation to fail only when you upgrade the SDK across version 8.0.0. In this case, you must manually correct the data type.

853573334108680XXXX

RuntimeResource

object

The resource group information.

ResourceGroupId

string

The resource group ID.

123456XXX

ResourceGroup

string

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

S_res_group_XXXX

Recurrence

string

The scheduling type. Valid values:

  • Normal: The node runs normally.

  • Pause: The node is paused, and the execution of downstream nodes that depend on the current node is blocked.

  • Skip: The node is set to dry run. The system directly returns a success response with an execution duration of 0 seconds. This does not block the execution of downstream nodes or consume resources.

Normal

Id

string

The unique identifier of the Data Studio node.

Important This field is of the Long type before SDK 8.0.0 and of the String type in SDK 8.0.0 and later. This change does not affect the normal use of the SDK, and the parameter is still returned based on the type defined in the SDK. This type change may cause project compilation to fail only if you upgrade the SDK across version 8.0.0. In this case, you must manually correct the data type.

860438872620113XXXX

Examples

Success response

JSON format

{
  "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",
              "RefTableName": "testProject.testTableName"
            }
          ],
          "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",
              "RefTableName": "testProject.testTableName"
            }
          ],
          "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": "123456XXX",
          "ResourceGroup": "S_res_group_XXXX"
        },
        "Recurrence": "Normal",
        "Id": "860438872620113XXXX"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.