ListInstanceHistory

Updated at:

Retrieves the history records of all instances. A history record is generated each time a node is rerun.

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:*

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

integer

Yes

The ID of the instance. You can call the ListInstances operation to obtain the instance ID.

1234

ProjectEnv

string

No

The workspace environment. Valid values: PROD (production environment) and DEV (development environment). Default value: PROD.

PROD

Response elements

Element

Type

Description

Example

object

The returned result.

RequestId

string

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

E6F0DBDD-5AD****

Success

boolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

Instances

array<object>

The list of instances.

object

The instance details.

Status

string

The status of the node. Valid values:

  • NOT_RUN: The node is not run.

  • WAIT_TIME: The node is waiting for the scheduled time (DueTime or CycTime).

  • WAIT_RESOURCE: The node is waiting for resources.

  • RUNNING: The node is running.

  • CHECKING: The node is delivered to Data Quality for data verification.

  • CHECKING_CONDITION: Branch condition verification is in progress.

  • FAILURE: The execution failed.

  • SUCCESS: The execution succeeded.

NOT_RUN

CycTime

integer

The run time of the scheduled node. The value is a timestamp.

1590422400000

BeginRunningTime

integer

The time when the instance started to run. The value is a timestamp.

1590416703313

FinishTime

integer

The end time of the scheduled node. The value is a timestamp.

1590416703313

ErrorMessage deprecated

string

The error message generated during the instance execution. [Deprecated] You can call the GetInstanceLog operation to obtain the error information about the executed node.

error message

CreateTime

integer

The creation time of the instance.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

DagId

integer

The ID of the workflow.

33845

TaskType

string

The scheduling type of the node instance. Valid values:

  • NORMAL(0): Normal scheduled node. The node is scheduled on a regular basis.

  • MANUAL(1): Manual node. The node is not scheduled on a regular basis.

  • PAUSE(2): Frozen node. The node is scheduled on a regular basis, but its status is set to failed when scheduling starts.

  • SKIP(3): Dry-run node. The node is scheduled on a regular basis, but its status is set to successful when scheduling starts.

  • SKIP_UNCHOOSE(4): Unselected node in a temporary workflow. This type of node exists only in temporary workflows, and its status is set to successful when scheduling starts.

  • SKIP_CYCLE(5): Weekly or monthly node that has not reached its run cycle. The node is scheduled on a regular basis, but its status is set to successful when scheduling starts.

  • CONDITION_UNCHOOSE(6): Unselected downstream node. An upstream instance contains a branch (IF) node, but this downstream node is not selected by the branch node, so its status is set to dry-run.

  • REALTIME_DEPRECATED(7): Expired periodic instance generated in real time. The status of this type of node is directly set to successful.

NORMAL(0)

DagType

string

The Data Quality Check (DQC) type. Valid values:

  • 0: Associated with DQC.

  • 1: Not associated with DQC.

1

ModifyTime

integer

The latest modification time of the scheduled node.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

InstanceId

integer

The ID of the instance.

1234

BeginWaitResTime

integer

The time when the instance started to wait for resources.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

Bizdate

integer

The date when the scheduled node is executed. Typically, this is the day before the run time of the node.

The value is a 13-digit timestamp, such as 1590336000000.

1590336000000

NodeName

string

The name of the node.

kzh

BeginWaitTimeTime

integer

The time when the instance started to wait for scheduling.

The value is a 13-digit timestamp, such as 1590416703313.

1590416703313

NodeId

integer

The ID of the node.

33115

InstanceHistoryId

integer

The ID of the instance history record.

1

Examples

Success response

JSON format

{
  "RequestId": "E6F0DBDD-5AD****",
  "Success": true,
  "Instances": [
    {
      "Status": "NOT_RUN",
      "CycTime": 1590422400000,
      "BeginRunningTime": 1590416703313,
      "FinishTime": 1590416703313,
      "ErrorMessage": "error message",
      "CreateTime": 1590416703313,
      "DagId": 33845,
      "TaskType": "NORMAL(0)",
      "DagType": "1",
      "ModifyTime": 1590416703313,
      "InstanceId": 1234,
      "BeginWaitResTime": 1590416703313,
      "Bizdate": 1590336000000,
      "NodeName": "kzh",
      "BeginWaitTimeTime": 1590416703313,
      "NodeId": 33115,
      "InstanceHistoryId": 1
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.