ListWorkflowTasks

Updated at:

Lists workflow task instances.

Operation description

This operation returns only the instances executed within the last 90 days.

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

ice:ListWorkflowTasks

list

*All Resource

*

None None

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

WorkflowId

string

No

The ID of the workflow template. You can view the template ID in the Intelligent Media Services console by choosing Configuration Management > Workflow Templates.

******b4fb044839815d4f2cd8******

WorkflowName

string

No

The name of the workflow template.

example-workflow-****

KeyText

string

No

The file name or media asset ID. This parameter supports fuzzy match for TaskInput and has a maximum length of 32 characters.

******7aa4cc4459ada8ef35f7****** or **TestVideo***.flv

StartOfCreateTime

string

No

The start time for the task creation time filter. Only the last 90 days are supported. Specify the time in ISO 8601 format in UTC (ending with Z).

2025-07-12T00:00:00Z

EndOfCreateTime

string

No

The end time for the task creation time filter. Only the last 90 days are supported. Specify the time in ISO 8601 format in UTC (ending with Z).

2025-07-15T00:00:00Z

MaxResults

integer

No

The maximum number of media workflow task instances to return. Valid values: 1 to 100. Default value: 10.

10

NextToken

string

No

The token for the next page in a continuous paging query. This parameter is not returned for the first page.

**************VRpbWUQARgBIpcBCgkA1bUtaAAAAAAKiQEDhAAAADFTMzg2NTY2NjU2MzM3NjU2NjYyMzkzMTYyMzI2MjYzNjY2**********

Response elements

Element

Type

Description

Example

object

Schema of Response

TotalCount

integer

The total number of entries that meet the current request conditions. This parameter is optional and is not returned by default.

4

RequestId

string

The ID of the request.

C0C02296-113C-5838-8FE9-8F3A32998DDC

NextToken

string

The pagination token for the next page.

****8EqYpQbZ6Eh7+Zz8DxVYoQ==

TaskList

array<object>

The list of media workflow tasks.

array<object>

MediaServiceWorkflowTask - The detailed information about the workflow task.

TaskId

string

The ID of the workflow task.

*****4c93d2f404f8345b16a965*****

TaskInput

string

The input of the workflow task.

{\"Type\":\"Media\",\"Media\":\"****8b40884171efb0d9e7f7f458****\"}

Status

string

The status of the task. Valid values:

  • Init: The task is initialized.

  • Failed: The task failed.

  • Canceled: The task is canceled.

  • Processing: The task is being executed.

  • Succeed: The task succeeded.

Succeed

CreateTime

string

The time when the task was created. Format: yyyy-MM-ddTHH:mm:ssZ.

2024-07-15T09:45:48Z

FinishTime

string

The time when the task was created. Format: yyyy-MM-ddTHH:mm:ssZ.

2024-12-07T10:53:45Z

Workflow

object

The information about the workflow template.

WorkflowId

string

The ID of the workflow.

******2491c84dce913da9fe65******

Name

string

The name of the workflow template.

example-workflow-***

Status

string

The status of the workflow template.

Active

Type

string

The templatetype of the workflow.

Common

CreateTime

string

The time when the workflow template was created. The time is in ISO 8601 format and in UTC (ending with Z).

2025-03-21T01:48:49Z

ModifiedTime

string

The time when the workflow template was last modified. The time is in YYYY-MM-DD HH:mm:ss Z format and includes the time zone offset.

2025-02-23 10:19:37 +0800

MediaType

string

The media source. Valid values:

  • OSS: OSS file.

  • Media: Media asset.

OSS

UserData

string

The custom fields specified when the workflow task is submitted.

{"NotifyAddress":"http://xx.xx.xxx"}

MaxResults

integer

The maximum number of tasks returned for the current request.

10

Examples

Success response

JSON format

{
  "TotalCount": 4,
  "RequestId": "C0C02296-113C-5838-8FE9-8F3A32998DDC",
  "NextToken": "****8EqYpQbZ6Eh7+Zz8DxVYoQ==",
  "TaskList": [
    {
      "TaskId": "*****4c93d2f404f8345b16a965*****",
      "TaskInput": "{\\\"Type\\\":\\\"Media\\\",\\\"Media\\\":\\\"****8b40884171efb0d9e7f7f458****\\\"}",
      "Status": "Succeed",
      "CreateTime": "2024-07-15T09:45:48Z",
      "FinishTime": "2024-12-07T10:53:45Z",
      "Workflow": {
        "WorkflowId": "******2491c84dce913da9fe65******",
        "Name": "example-workflow-***",
        "Status": "Active",
        "Type": "Common",
        "CreateTime": "2025-03-21T01:48:49Z",
        "ModifiedTime": "2025-02-23 10:19:37 +0800",
        "MediaType": "OSS"
      },
      "UserData": "{\"NotifyAddress\":\"http://xx.xx.xxx\"}"
    }
  ],
  "MaxResults": 10
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.