Lists workflow task instances.
Operation description
This operation returns only execution instances from the last 90 days.
Try it now
Test
RAM authorization
|
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 |
|
******b4fb044839815d4f2cd8****** |
| WorkflowName |
string |
No |
The name of the workflow template. |
example-workflow-**** |
| KeyText |
string |
No |
A keyword for fuzzy matching against the TaskInput, such as a file name or Media ID. Max length: 32 characters. |
******7aa4cc4459ada8ef35f7****** 或 **TestVideo***.flv |
| StartOfCreateTime |
string |
No |
The start of the time range for filtering tasks by their creation time. Supports querying data from the last 90 days only. |
2025-07-12T00:00:00Z |
| EndOfCreateTime |
string |
No |
The end of the time range for filtering tasks by their creation time. Supports querying data from the last 90 days only. |
2025-07-15T00:00:00Z |
| MaxResults |
integer |
No |
The maximum number of media workflow instances to return. Valid values: 1 to 100. Default value: 10. |
10 |
| NextToken |
string |
No |
The pagination token for retrieving the next page of results. Not required for the first request. |
**************VRpbWUQARgBIpcBCgkA1bUtaAAAAAAKiQEDhAAAADFTMzg2NTY2NjU2MzM3NjU2NjYyMzkzMTYyMzI2MjYzNjY2********** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| TotalCount |
integer |
The total number of entries returned. Not returned by default. |
4 |
| RequestId |
string |
The request ID. |
C0C02296-113C-5838-8FE9-8F3A32998DDC |
| NextToken |
string |
A pagination token. |
****8EqYpQbZ6Eh7+Zz8DxVYoQ== |
| TaskList |
array<object> |
The media workflow tasks. |
|
|
array<object> |
The details of a workflow task. |
||
| TaskId |
string |
The ID of the workflow task. |
*****4c93d2f404f8345b16a965***** |
| TaskInput |
string |
The input data for the workflow task. |
{\"Type\":\"Media\",\"Media\":\"****8b40884171efb0d9e7f7f458****\"} |
| Status |
string |
The task state. Valid values:
|
Succeed |
| CreateTime |
string |
The time when the task was created, in the yyyy-MM-ddTHH:mm:ssZ format (UTC, ISO 8601). |
2024-07-15T09:45:48Z |
| FinishTime |
string |
The time when the task was completed, in the yyyy-MM-ddTHH:mm:ssZ format (UTC, ISO 8601). |
2024-12-07T10:53:45Z |
| Workflow |
object |
The information about the workflow template. |
|
| WorkflowId |
string |
The workflow ID. |
******2491c84dce913da9fe65****** |
| Name |
string |
The name of the workflow template. |
example-workflow-*** |
| Status |
string |
The status of the workflow template. |
Active |
| Type |
string |
The type of the workflow template. |
Common |
| CreateTime |
string |
The creation time of the workflow template. |
2025-03-21T01:48:49Z |
| ModifiedTime |
string |
The last modification time of the workflow template. |
2025-02-23 10:19:37 +0800 |
| MediaType |
string |
The source of the media file. Valid values:
|
OSS |
| UserData |
string |
The custom data passed when the task was submitted. |
{"NotifyAddress":"http://xx.xx.xxx"} |
| MaxResults |
integer |
The maximum number of entries returned in this response. |
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.