All Products
Search
Document Center

DataWorks:ListWorkflowInstances

Last Updated:Jan 12, 2026

Queries a list of workflow instances by page. You can also specify filter conditions to query workflow instances.

Operation description

This API operation is available for all DataWorks editions.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dataworks:*get
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdlongYes

The workspace ID.

100
BizDatelongYes

The data timestamp. The value of this parameter is 00:00:00 of the day before the scheduling time of the instance. The value is a UNIX timestamp. Unit: milliseconds. Example: 1743350400000.

1710239005403
TypestringNo

The type of the workflow instance. Valid values:

  • Normal: Scheduled execution
  • Manual: Manually triggered node
  • SmokeTest: Smoke test
  • SupplementData: Data backfill
  • ManualWorkflow: Manually triggered workflow
  • TriggerWorkflow: Triggered Workflow
Normal
WorkflowIdlongNo

The ID of the workflow to which the instance belongs.

1234
NamestringNo

The instance name. Fuzzy match is supported.

WorkflowInstance1
IdsarrayNo

The IDs of the workflow instances. You can query multiple instances at a time by instance ID.

IdlongNo

The workflow instance ID.

1234
OwnerstringNo

The account ID of the workflow instance owner.

1000
SortBystringNo

The fields used for sorting. Fields such as TriggerTime and StartedTime are supported. The value of this parameter is in the Sort field + Sort by (Desc/Asc) format. By default, results are sorted in ascending order. Valid values:

  • TriggerTime (Desc/Asc)
  • StartedTime (Desc/Asc)
  • FinishedTime (Desc/Asc)
  • CreateTime (Desc/Asc)
  • Id (Desc/Asc)

Default value: Id Desc.

Id Desc
PageSizeintegerNo

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

10
PageNumberintegerNo

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

1

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

22C97E95-F023-56B5-8852-B1A77A17XXXX
PagingInfoobject

Pagination information.

WorkflowInstancesarray<object>

The workflow instances.

WorkflowInstanceobject
Idlong

The workflow instance ID.

1234
WorkflowTaskInstanceIdlong

The task instance ID corresponding to the workflow instance.

1234
Namestring

The name of the workflow instance.

WorkflowInstance1
Typestring

The type of the workflow instance. Valid values:

  • Normal: Scheduled execution
  • Manual: Manually triggered node
  • SmokeTest: Smoke test
  • SupplementData: Data backfill
  • ManualWorkflow: Manually triggered workflow
  • TriggerWorkflow: Triggered Workflow
Normal
Statusstring

The status of the workflow instance. Valid values:

  • NotRun: The instance is not run.
  • Running: The instance is running.
  • WaitTime: The instance is waiting for the scheduling time to arrive.
  • CheckingCondition: Branch conditions are being checked for the instance.
  • WaitResource: The instance is waiting for resources.
  • Failure: The instance fails to be run.
  • Success: The instance is successfully run.
  • Checking: Data quality is being checked for the instance.
Success
StartedTimelong

The time when the instance started to run.

1710239005403
FinishedTimelong

The time when the instance finished running.

1710239005403
ProjectIdlong

The workspace ID.

100
EnvTypestring

The environment of the workspace. Valid values:

  • Prod
  • Dev
Prod
Ownerstring

The account ID of the workflow owner.

1000
CreateTimelong

The creation time.

1710239005403
ModifyTimelong

The modification time.

1710239005403
CreateUserstring

The account ID of the creator.

100
ModifyUserstring

The account ID of the modifier.

100
WorkflowParametersstring

The workflow parameters.

WorkflowIdlong

The ID of the workflow to which the instance belongs.

1234
Tagsarray<object>

The task tag.

Tagobject
Keystring

The key of a tag.

key1
Valuestring

The value of a tag.

value1
TotalCountinteger

The total number of entries returned.

100
PageSizeinteger

The number of entries per page.

10
PageNumberinteger

The page number.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
  "PagingInfo": {
    "WorkflowInstances": [
      {
        "Id": 1234,
        "WorkflowTaskInstanceId": 1234,
        "UnifiedWorkflowInstanceId": 1234,
        "Name": "WorkflowInstance1",
        "Type": "Normal",
        "Status": "Success",
        "BizDate": 1710239005403,
        "StartedTime": 1710239005403,
        "FinishedTime": 1710239005403,
        "ProjectId": 100,
        "EnvType": "Prod",
        "Owner": 1000,
        "CreateTime": 1710239005403,
        "ModifyTime": 1710239005403,
        "CreateUser": 100,
        "ModifyUser": 100,
        "WorkflowParameters": "",
        "WorkflowId": 1234,
        "Tags": [
          {
            "Key": "key1",
            "Value": "value1"
          }
        ]
      }
    ],
    "TotalCount": 100,
    "PageSize": 10,
    "PageNumber": 1
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-11-25The request parameters of the API has changed. The response structure of the API has changedView Change Details
2025-10-29The response structure of the API has changedView Change Details