You can call the ListFlowNodeInstance operation to query the instances on which workflow nodes run.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes ListFlowNodeInstance

The operation that you want to perform. If you use a custom HTTP URL or HTTPS URL to make an API request, you must specify this parameter. Set this parameter to ListFlowNodeInstance.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call DescribeRegions To view the latest list of Alibaba Cloud regions.

ProjectId String No FP-257A173659F5****

The ID of the project. You can call ListFlowProject View the ID of the project.

StartTime Long No 1540796248000

The beginning of the time range where workflow node instances are queried.

StatusList.N RepeatList No FAILED

The status of the job instance. Valid values:

  • SUCCESS (execution successful)
  • FAILED (execution FAILED)
  • KILL_FAILED (termination failed)
  • KILL_SUCCESS (termination successful)
OrderBy String No start_time

The sort field.

OrderType String No desc

Sort type:

  • ASC
  • DESC
PageNumber Integer No 1

The page number of the returned page.

PageSize Integer No 20

The number of entries returned on each page.

ResourceGroupId String No rg-bp67acfmxazb4p****

The ID of the resource group. You can call ListResourceGroups View the resource group ID.

Response parameters

Parameter Type Example Description
FlowNodeInstances Array of FlowNodeInstance

The list of workflow node instances.

ClusterId String C-A6C9F4F1E9E****

The ID of the cluster.

Duration Long 200

The running duration, in milliseconds.

EndTime Long 1540796248000

The time when the workflow node instance stopped.

ExternalChildIds String application_1541559535023_34028

The application list of the tasks of the job.

ExternalId String application_1541559535023_3****

The application ID of the launcher.

ExternalInfo String empty

The external information of the node instance, such as the error diagnosis information of the node instance.

ExternalStatus String SUCCESS

The status of the Container corresponding to the instance:

  • SUCCESS (execution successful)
  • FAILED (execution FAILED)
  • KILL_FAILED (termination failed)
  • KILL_SUCCESS (termination successful)
ExternalSubId String container_1541559535023_34027_01_00****

The container ID of the launcher.

FailAct String STOP

The action to take upon an operation failure of the node instance. Valid values:

  • STOP (terminate the workflow)
  • CONTINUE (skip)
FlowId String F-35683D0E4573****

The ID of the workflow.

FlowInstanceId String FI-7CAF9709CD32****

The ID of the workflow instance.

GmtCreate Long 1540796236000

The creation time of the project.

GmtModified Long 1540796247000

The time when the workflow node instance was modified.

HostName String emr-header-1.cluster-12345

The name of the host where the workflow node instance is running. The host can be a master node or gateway node. The format of Hostname is emr-header-1.cluster-12345 , can log in to the machine with hostname Command to view the corresponding value.

Id String FNI-9D14A7CCF268****

The ID of the workflow node instance.

JobId String FJ-A23BD131A862****

The ID of the job.

JobName String myJob

The name of the job.

JobParams String ls -l

The content of the job.

JobType String HIVE_SQL

The type of the job. Valid values: MR, Spark, Hive_SQL, Hive, Pig, Sqoop, Spark_SQL, Spark_Streaming, and Shell.

MaxRetry String 0

The maximum number of times the job can be retried.

NodeName String node

The name of the node.

Pending Boolean false

Indicates whether the workflow node instance was completed.

ProjectId String FP-7A1018ADE917****

The ID of the project.

Retries Integer 0

The number of retries of running the node instance.

RetryInterval String 200

The retry interval, in milliseconds.

StartTime Long 1540796237000

The time when the job started.

Status String OK

The execution status of the instance. Valid values:

  • PREP (waiting to start)
  • DONE (completed)
  • OK (successful execution)
  • FAILED (execution FAILED)
  • KILLED (terminated)
  • KILL_FAILED (termination failed)
Type String JOB

The type of node.

PageNumber Integer 1

The page number.

PageSize Integer 20

The page number of the returned page.

RequestId String 83B256D4-4E95-454B-AD08-799DF31D5556

The ID of the request.

Total Integer 12

The total number of returned entries.


Sample requests

&<common request parameters>

Sample success responses

XML format

        <JobParams>ls -l</JobParams>

JSON Syntax

                "JobParams":"ls -l",