ListNodeDependencies

Updated at:

Retrieves the dependent nodes of a specified data development node in a paginated manner.

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.

This parameter specifies the DataWorks workspace used for this API call.

10001

Id

string

Yes

The unique identifier of the data development node.

Important This field is of the Long type in SDK versions earlier than 8.0.0, and of the String type in SDK version 8.0.0 and later. This change does not affect the normal use of the SDK. The parameter is still returned based on the data 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.

860438872620113XXXX

PageNumber

integer

No

The page number. Pages start from 1. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Default value: 10. Maximum value: 100.

10

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

204EAF68-CCE3-5112-8DA0-E7A60F02XXXX

PagingInfo

object

The pagination information.

TotalCount

string

The total number of entries that meet the specified conditions.

90

PageSize

string

The number of entries returned per page.

10

PageNumber

string

The page number of the returned page.

1

Nodes

array<object>

The list of queried dependent nodes.

array<object>

The dependent node.

Description

string

The description of the node.

Node description

Name

string

The name of the data development node.

Node name

ProjectId

integer

The ID of the workspace to which the data development node belongs.

65133

Owner

string

The owner of the data development node.

110755000425XXXX

CreateTime

integer

The timestamp when the data development node was created.

1724505917000

ModifyTime

integer

The timestamp when the data development node was last modified.

1724505917000

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.

580667964888595XXXX

Tags

array<object>

The tag information. This field is not used.

object

The tag information. This field is 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, in milliseconds.

0

InstanceMode

string

The mode in which instances are generated. Valid values:

  • T+1

  • Immediately

Valid values:

  • Immediately :

    Runs immediately.

  • T+1 :

    Runs on 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 after a failure.

3

RerunInterval

integer

The retry time after it failed, in milliseconds.

180000

Outputs

object

The output of the node.

Variables

array<object>

The list of variables.

array<object>

The variable.

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 that corresponds to the variable.

463497880880954XXXX

Id

string

The ID of the variable.

Important This field was of the Long type before SDK 8.0.0 and is 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.

543217824470354XXXX

NodeOutputs

array<object>

The list of node outputs.

object

The node output item.

Data

string

The output of the node.

463497880880954XXXX

RefTableName

string

The name of the destination data table generated by the node. This field provides an easy-to-understand semantic name to help you quickly identify the output content. It is used only for display and reference purposes and has no actual logical constraints.

testProject.testTableName

Tables

array<object>

The table list.

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.

Name

string

The name of the variable.

input

ArtifactType

string

The type of the artifact.

Variable

Scope

string

The scope. Valid values:

  • NodeParameter

  • NodeContext

  • Workflow

  • Workspace

NodeParameter

Type

string

The type. 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 output of the node.

860438872620113XXXX

Id

string

The ID of the variable.

Important This field was of the Long type before SDK 8.0.0 and is 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.

543218872620113XXXX

NodeOutputs

array<object>

The list of node outputs.

object

The node output item.

Data

string

The output of the node.

860438872620113XXXX

RefTableName

string

The name of the destination data table generated by the node. This field provides an easy-to-understand semantic name to help you quickly identify the output content. It is used only for display and reference purposes and has no actual logical constraints.

testProject.testTableName

Tables

array<object>

The table list.

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 scheduling.

  • Streaming: Streaming scheduler.

Scheduler

Cron

string

The cron expression for scheduling.

00 00 00 * * ?

StartTime

string

The start time when the schedule takes effect. The format is yyyy-MM-dd HH:mm:ss.

1970-01-01 00:00:00

EndTime

string

The end time when the schedule takes effect. The format is yyyy-MM-dd HH:mm:ss.

9999-01-01 00:00:00

Timezone

string

The time zone.

Asia/Shanghai

Id

string

The unique identifier of the trigger.

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. 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.

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 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. 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.

853573334108680XXXX

RuntimeResource

object

The resource group information.

ResourceGroupId

string

The resource group ID.

S_res_group_XXXX_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 development 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. 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.

723932906364267XXXX

Examples

Success response

JSON format

{
  "RequestId": "204EAF68-CCE3-5112-8DA0-E7A60F02XXXX",
  "PagingInfo": {
    "TotalCount": "90",
    "PageSize": "10",
    "PageNumber": "1",
    "Nodes": [
      {
        "Description": "Node description",
        "Name": "Node name",
        "ProjectId": 65133,
        "Owner": "110755000425XXXX",
        "CreateTime": 1724505917000,
        "ModifyTime": 1724505917000,
        "DataSource": {
          "Name": "odps_first",
          "Type": "odps"
        },
        "TaskId": 0,
        "Tags": [
          {
            "Key": "null",
            "Value": "null"
          }
        ],
        "Strategy": {
          "Timeout": 0,
          "InstanceMode": "T+1",
          "RerunMode": "Allowed",
          "RerunTimes": 3,
          "RerunInterval": 180000
        },
        "Outputs": {
          "Variables": [
            {
              "Name": "output",
              "ArtifactType": "Variable",
              "Scope": "NodeParameter",
              "Type": "Constant",
              "Value": "111",
              "Node": {
                "Output": "463497880880954XXXX"
              },
              "Id": "543217824470354XXXX"
            }
          ],
          "NodeOutputs": [
            {
              "Data": "463497880880954XXXX",
              "RefTableName": "testProject.testTableName"
            }
          ],
          "Tables": [
            {
              "Guid": "odps.autotest.test_output_table_1"
            }
          ]
        },
        "Inputs": {
          "Variables": [
            {
              "Name": "input",
              "ArtifactType": "Variable",
              "Scope": "NodeParameter",
              "Type": "Constant",
              "Value": "111",
              "Node": {
                "Output": "860438872620113XXXX"
              },
              "Id": "543218872620113XXXX"
            }
          ],
          "NodeOutputs": [
            {
              "Data": "860438872620113XXXX",
              "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": "S_res_group_XXXX_XXXX"
        },
        "Recurrence": "Normal",
        "Id": "723932906364267XXXX"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.