ListPipelineRuns
Queries the pipeline run history. This operation supports filtering by status, trigger type, and time range, and uses cursor-based pagination.
Operation description
Calls the ListPipelineRuns operation to query the pipeline run history. You can filter the results by status, trigger type, and time range, and use cursor-based pagination.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:ListPipelineRuns |
list |
*Pipeline
|
None | None |
Request syntax
GET /agentspace/{agentSpace}/pipeline/{pipelineName}/runs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
No |
The name of the AgentSpace. |
my-agent-space |
| pipelineName |
string |
No |
The name of the pipeline. |
my-pipeline |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| status |
string |
No |
Filters the results by run status. Valid values: Pending, Running, Succeeded, Failed, and Cancelled. If you do not specify this parameter, the results are not filtered by status. |
Succeeded |
| triggerType |
string |
No |
Filters the results by trigger type. Valid values: Manual, Scheduled, and RunOnce. If you do not specify this parameter, the results are not filtered by trigger type. |
Scheduled |
| startTime |
integer |
No |
The lower bound of the trigger time filter (triggered_at >= startTime). The value is a UNIX timestamp in seconds. |
1735574400 |
| endTime |
integer |
No |
The upper bound of the trigger time filter (triggered_at <= endTime). The value is a UNIX timestamp in seconds. |
1735660800 |
| nextToken |
string |
No |
The pagination token. To retrieve the next page of results, pass the nextToken value from the previous response. Do not specify this parameter for the first request. |
MTIzNDU2Nzg5MA== |
| maxResults |
integer |
No |
The maximum number of entries to return in the current request. Default value: 50. Maximum value: 200. |
50 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID, which can be used to locate the request when you troubleshoot issues. |
9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M |
| nextToken |
string |
The token for the next page. An empty string indicates that the current page is the last page. |
MTIzNDU2Nzg5MA== |
| maxResults |
integer |
The maximum number of entries per page specified in the request. |
50 |
| totalCount |
integer |
The total number of pipeline runs that meet the filter conditions. |
100 |
| runs |
array<object> |
The list of runs. |
|
|
array<object> |
The run record. |
||
| runId |
string |
Run Id |
run-20260101-0001 |
| pipelineName |
string |
The name of the pipeline. |
my-pipeline |
| agentSpaceName |
string |
The name of the AgentSpace to which the run belongs. |
my-agent-space |
| fromTime |
integer |
The start time of the data window. The value is a UNIX timestamp in seconds. |
1735660800 |
| toTime |
integer |
The end time of the data window. The value is a UNIX timestamp in seconds. |
1735747200 |
| triggerType |
string |
The trigger type. Valid values: Scheduled, Manual, and RunOnce. |
Scheduled |
| triggerTime |
string |
The trigger time in ISO 8601 UTC format. |
2026-01-01T00:00:00.000Z |
| status |
string |
The run status. Valid values: Pending, Running, Succeeded, Failed, and Cancelled. |
Succeeded |
| attempt |
integer |
The current number of retries. |
0 |
| maxAttempts |
integer |
The maximum number of retries. |
3 |
| startTime |
string |
The execution start time in ISO 8601 UTC format. |
2026-01-01T00:00:01.000Z |
| finishTime |
string |
The finish time in ISO 8601 UTC format. |
2026-01-01T00:00:10.000Z |
| nextRetryTime |
string |
The next retry time in ISO 8601 UTC format. |
2026-01-01T00:01:00.000Z |
| stats |
object |
The run statistics, including processedRows (number of processed rows), processedBytes (number of processed bytes), outputRows (number of output rows), outputBytes (number of output bytes), elapsedMs (elapsed time in milliseconds), cpuSec (CPU seconds), cpuCores (number of CPU cores), and tokenCount (number of consumed tokens). For OSS import, row-level billing uses |
{"processedRows":1000,"elapsedMs":2500} |
|
any |
The value of a single run statistic metric. |
1000 |
|
| errorMessage |
string |
The error message. |
Failed to evaluate filter expression in node 'node-1': column 'score' does not exist. |
| errorCode |
string |
The semantic error code. |
ExpressionEvaluationError |
| totalCount |
integer |
The total number of input records. |
100 |
| taskVersion |
integer |
The frozen task version number. |
1 |
Examples
Success response
JSON format
{
"requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
"nextToken": "MTIzNDU2Nzg5MA==",
"maxResults": 50,
"totalCount": 100,
"runs": [
{
"runId": "run-20260101-0001",
"pipelineName": "my-pipeline",
"agentSpaceName": "my-agent-space",
"fromTime": 1735660800,
"toTime": 1735747200,
"triggerType": "Scheduled",
"triggerTime": "2026-01-01T00:00:00.000Z",
"status": "Succeeded",
"attempt": 0,
"maxAttempts": 3,
"startTime": "2026-01-01T00:00:01.000Z",
"finishTime": "2026-01-01T00:00:10.000Z",
"nextRetryTime": "2026-01-01T00:01:00.000Z",
"stats": {
"key": "1000"
},
"errorMessage": "Failed to evaluate filter expression in node 'node-1': column 'score' does not exist.",
"errorCode": "ExpressionEvaluationError",
"totalCount": 100,
"taskVersion": 1
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.