ListNodes

Updated at:

Queries a list of nodes.

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

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 :

    The production environment.

  • DEV :

    The development environment.

PROD

NodeName

string

No

The name of the node.

liux_test_n****

SchedulerType

string

No

The scheduling type. Valid values:

  • NORMAL: normal scheduling task

  • PAUSE: paused task

  • SKIP: dry-run task, which is scheduled on a daily basis but is directly set to successful when the scheduling is triggered

Valid values:

  • PAUSE :

    Paused scheduling.

  • SKIP :

    Dry-run task.

  • MANUAL :

    Manual task.

  • NORMAL :

    Normal scheduling.

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: normal scheduling task

  • PAUSE: paused task

  • SKIP: dry-run task, which is scheduled on a daily basis but is directly set to successful when the scheduling is triggered

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.