All Products
Search
Document Center

DataWorks:ListWorkflows

Last Updated:Jan 12, 2026

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

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
EnvTypestringNo

The environment of the workspace. Valid values:

  • Prod: production environment
  • Dev: development environment
Prod
IdsarrayNo

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

IdlongNo

The workflow ID.

1234
NamestringNo

The name of the workflow. Fuzzy match is supported.

Workflow1
OwnerstringNo

The account ID of the workflow owner.

1000
TriggerTypestringNo

The trigger type.

  • Scheduler
  • Manual
  • TriggerWorkflow
Scheduler
SortBystringNo

The field 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:

  • ModifyTime (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.

Workflowsarray<object>

The workflows.

Workflowobject
Idlong

The workflow ID.

1234
Namestring

The name.

Workflow1
Descriptionstring

The description.

test
Triggerobject

The trigger method.

Typestring

The trigger type. Valid values:

  • Scheduler: scheduling cycle-based trigger
  • Manual: manual trigger
Scheduler
Recurrencestring

The running mode of the workflow after it is triggered. This parameter takes effect only if the Type parameter is set to Scheduler. Valid values:

  • Pause
  • Skip
  • Normal
Normal
Cronstring

The CRON expression. This parameter takes effect only if the Type parameter is set to Scheduler.

00 00 00 * * ?
StartTimestring

The start time of the time range during which the workflow is periodically scheduled. This parameter takes effect only if the Type parameter is set to Scheduler.

1970-01-01 00:00:00
EndTimestring

The end time of the time range during which the workflow is periodically scheduled. This parameter takes effect only if the Type parameter is set to Scheduler.

9999-01-01 00:00:00
Parametersstring

The parameters.

para1=$bizdate para2=$[yyyymmdd]
ClientUniqueCodestring

The unique code of the client. This parameter is used to create a workflow asynchronously and implement the idempotence of the workflow. If you do not specify this parameter when you create the workflow, the system automatically generates a unique code. The unique code is uniquely associated with the workflow ID. If you specify this parameter when you update or delete the workflow, the value of this parameter must be the unique code that is used to create the workflow.

Workflow_0bc5213917368545132902xxxxxxxx
ProjectIdlong

The workspace ID.

100
EnvTypestring

The environment of the workspace. Valid values:

  • Prod
  • Dev
Prod
Ownerstring

The account ID of the owner.

1000
CreateTimelong

The creation time.

1710239005403
ModifyTimelong

The modification time.

1710239005403
CreateUserstring

The account ID of the creator.

1000
ModifyUserstring

The account ID of the modifier.

1000
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": {
    "Workflows": [
      {
        "Id": 1234,
        "Name": "Workflow1",
        "Description": "test",
        "Trigger": {
          "Type": "Scheduler",
          "Recurrence": "Normal",
          "Cron": "00 00 00 * * ?",
          "StartTime": "1970-01-01 00:00:00",
          "EndTime": "9999-01-01 00:00:00"
        },
        "Parameters": "para1=$bizdate para2=$[yyyymmdd] ",
        "ClientUniqueCode": "Workflow_0bc5213917368545132902xxxxxxxx",
        "ProjectId": 100,
        "EnvType": "Prod",
        "Owner": 1000,
        "CreateTime": 1710239005403,
        "ModifyTime": 1710239005403,
        "CreateUser": 1000,
        "ModifyUser": 1000,
        "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 changedView Change Details