ListPipelineRuns

Updated at:

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

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

agentloop:ListPipelineRuns

list

*Pipeline

acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}

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 work_total (billed), work_success (successful), work_failed (failed), and work_skipped (skipped). Package-level failures are billed separately. The value of work_failed can be 0 only when package-level failures occur.

{"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.