ListPipelines

Updated at:

Queries a list of pipelines. Supports filtering by name, schedule type, and schedule status, and uses cursor-based pagination.

Operation description

Calls ListPipelines to query a list of pipelines. You can filter the results by name, schedule type, and schedule status, 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:ListPipelines

list

*Pipeline

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

None None

Request syntax

GET /agentspace/{agentSpace}/pipeline HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

No

The name of the AgentSpace.

my-agent-space

Request parameters

Parameter

Type

Required

Description

Example

pipelineName

string

No

Filters the results by pipeline name. Supports exact match. If you do not specify this parameter, no filtering is applied.

my-pipeline

pipelineKind

string

No

Filters the results by pipeline kind. Valid values: PROCESSING (data processing) and ORCHESTRATION (orchestration task). Default value: PROCESSING.

ORCHESTRATION

scheduleType

string

No

Filters the results by schedule type. Valid values: RunOnce (single execution) and Scheduled (periodic scheduling). If you do not specify this parameter, no filtering is applied.

RunOnce

scheduleStatus

string

No

Filters the results by schedule status. Valid values: None (no schedule), Active (active), Paused (paused), and Terminated (terminated). If you do not specify this parameter, no filtering is applied.

Active

nextToken

string

No

The pagination token. Pass the nextToken value from the previous response to retrieve the next page of results. Do not specify this parameter for the first request.

MTIzNDU2Nzg5MA==

maxResults

integer

No

The maximum number of pipelines to return in the current request. Default value: 20. Maximum value: 100.

20

sinkName

string

No

Filters the results by the exact name of the output dataset. Matches standard sinks, conditional branch sinks, and default sinks. If you do not specify this parameter, no filtering is applied.

my-dataset

Response elements

Element

Type

Description

Example

object

The response data.

requestId

string

The request ID, which is used to locate the request when troubleshooting 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. This value is echoed in the response.

20

totalCount

integer

The total number of pipelines that meet the filter conditions.

100

pipelines

array<object>

The list of pipelines.

[{"pipelineName":"my-pipeline","regionId":"cn-hangzhou","scheduleType":"RunOnce","scheduleStatus":"None"}]

array<object>

The pipeline item.

{"pipelineName":"my-pipeline","regionId":"cn-hangzhou","scheduleType":"RunOnce","scheduleStatus":"None"}

pipelineName

string

The name of the pipeline.

my-pipeline

description

string

The description of the pipeline.

My pipeline

regionId

string

The region ID.

cn-hangzhou

createTime

string

The time when the pipeline was created. The time is in the ISO 8601 standard in UTC.

2026-01-01T00:00:00Z

updateTime

string

The time when the pipeline was last updated. The time is in the ISO 8601 standard in UTC.

2026-01-02T00:00:00Z

workspace

string

The workspace associated with the pipeline.

my-workspace

executePolicy

object

The execution policy.

{"mode":"RunOnce","runOnce":{"fromTime":1735660800000,"toTime":1735747200000}}

mode

string

The scheduling mode. RunOnce indicates one-time execution, and Scheduled indicates periodic scheduling.

RunOnce

runOnce

object

The parameters for one-time execution. This field has a value only when mode is set to RunOnce.

{"fromTime":1735660800000,"toTime":1735747200000}

fromTime

integer

The start time of the time slice. The value is a UNIX timestamp in milliseconds.

1735660800000

toTime

integer

The end time of the time slice. The value is a UNIX timestamp in milliseconds.

1735747200000

continuous

object

The continuous execution configuration. This configuration is used when type is set to trace. The processing frequency is a fixed value managed by the server.

{"fromTime":1735660800}

fromTime

integer

The start time of the bootstrap history. The value is a UNIX timestamp in seconds, which has the same precision as runOnce/scheduled.fromTime. Millisecond values greater than or equal to 1e12 are automatically converted. The cursor starts from this time aligned to the grid and catches up window by window. After catching up, it switches to minute intervals. By default, it starts from the current time and processes only incremental data.

1735660800

scheduled

object

The parameters for periodic scheduling. This field has a value only when mode is set to Scheduled.

{"fromTime":1735660800000,"interval":"1h"}

fromTime

integer

The start time of the scheduling. The value is a UNIX timestamp in milliseconds.

1735660800000

interval

string

The scheduling interval, such as 1h or 30m.

1h

scheduleType

string

The schedule type. Valid values: RunOnce for one-time execution, and Scheduled for periodic scheduling.

RunOnce

scheduleStatus

string

The schedule status. Valid values: None, Active, Paused, and Terminated. None indicates no scheduling for RunOnce pipelines.

None

source

object

The data source of the pipeline.

{"type":"logstore","logstore":{"project":"my-sls-project","logstore":"agent-logs"},"inputFields":[{"name":"question","type":"text"}]}

type

string

The data source type. Valid values: logstore, dataset, trace, and oss. The trace type indicates a trace signal-driven processing mode. The validity of the enumerated values is verified by the server.

dataset

oss PipelineOssSource

When source.type is set to oss, source.oss echoes format, region, roleArn, and uri. The initial version does not have available formatOptions configuration keys, and empty configurations are not included in the response.

{"format":"lerobot","region":"cn-beijing","roleArn":"acs:ram::1234567890123456:role/oss-reader","uri":"oss://example-bucket/robot-datasets/example/"}

inputFields

array<object>

The input fields and their data types. For OSS sources, the fields are derived from the file structure.

[{"name":"question","type":"text"}]

object

The input field.

name

string

The name of the field.

question

type

string

The data type of the field. Valid values: text, long, double, and json.

text

logstore

object

The SLS Logstore datasource config.

{"project":"my-sls-project","logstore":"agent-logs"}

project

string

The name of the SLS project.

my-sls-project

logstore

string

The name of the SLS Logstore.

my-sls-logstore

query

string

The filtered query statement (SLS query/analysis syntax).

* | SELECT *

dataset

object

The Dataset datasource config under the current AgentSpace.

{"dataset":"my-dataset","filter":"status = 'pending'"}

dataset

string

The name of the source dataset.

my-dataset

filter

string

The filter conditions for the dataset data.

status = 'pending'

version

string

The version of the source dataset.

v1

trajectory

object

The trajectory data configuration. This parameter is optional and takes effect only when the type is set to trace. It retrieves ATIF standard trajectory data from the trajectory cleaning service and extends the data by feature.

{"enrich":{"enabled":true,"columns":["input","output"]}}

enrich

object

The trajectory enrichment configuration. It mounts trajectory data into the cleaning results based on the trace_id. When writing to a dataset, the data is stored in the fixed column agent_trajectory, where the column value is the trajectory JSON content.

{"enabled":true,"columns":["input","output"]}

enabled

boolean

Specifies whether to enable trajectory enrichment.

false

columns

array

The list of enrichment columns. This parameter is retained for compatibility. The current implementation outputs a single fixed column named agent_trajectory, and this parameter no longer affects the output.

["input","output","session_id"]

string

The name of the trajectory column.

input

sink

object

The pipeline sink, which specifies the destination where data is written.

type

string

The type of the sink. Valid values: dataset and condition.

condition

dataset

object

The destination dataset configuration for the dataset sink. This parameter is used only when the sink type is set to dataset.

agentSpace

string

The name of the AgentSpace to which the destination dataset belongs.

my-agent-space

dataset

string

The name of the destination dataset.

my-dataset

condition

object

The conditional routing configuration. This parameter is used only when the sink type is set to condition.

matchMode

string

The route matching mode. Currently, only all is supported.

all

routes

array<object>

The list of conditional routes.

array<object>

The conditional route.

id

string

The ID of the route.

refund

expression

string

The route expression in Search Processing Language (SPL). Only where, project, and extend are supported.

* | where intent = 'refund'

sink

object

The sink for the route.

type

string

The type of the route sink. Currently, only dataset is supported.

dataset

dataset

object

The destination dataset for the route.

agentSpace

string

The name of the AgentSpace to which the destination dataset belongs.

my-agent-space

dataset

string

The name of the destination dataset.

refund-result

defaultSink

object

The default sink used when no conditional route is matched.

type

string

The type of the default sink. Currently, only dataset is supported.

dataset

dataset

object

The default destination dataset.

agentSpace

string

The name of the AgentSpace to which the default destination dataset belongs.

my-agent-space

dataset

string

The name of the default destination dataset.

other-result

pipelineKind

string

The type of the pipeline.

ORCHESTRATION

version

integer

The version number of the pipeline configuration.

1

lastRunId

string

The ID of the last run.

run-20260101-0001

lastRunStatus

string

The status of the last run.

Running

pipeline

object

The orchestration configuration of the pipeline.

nodes

array<object>

The list of orchestration nodes.

array<object>

The configuration of a single node.

id

string

The ID of the node.

stage_1

type

string

The type of the node.

annotation-stage

parameters

object

The parameters of the node. The parameters use a key-value structure and vary based on the node type.

{"stageId":"stage_1"}

any

The value of the node parameter.

value

committedWatermark

integer

The timestamp of the committed watermark.

1767225600

nextTriggerTime

integer

The timestamp for the next scheduled trigger.

1767229200

pausedReason

string

The reason for the scheduling pause.

manual

The OSS pipeline returns the source configuration in pipelines[].source. When source.type is oss, source.oss includes format, region, roleArn, and uri. The initial version does not support the formatOptions configuration key. Empty configurations are not included in the response.

The following example shows the source object.

{
  "type": "oss",
  "oss": {
    "format": "lerobot",
    "region": "cn-beijing",
    "roleArn": "acs:ram::1234567890123456:role/oss-reader",
    "uri": "oss://example-bucket/robot-datasets/example/"
  }
}

Examples

Success response

JSON format

{
  "requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
  "nextToken": "MTIzNDU2Nzg5MA==",
  "maxResults": 20,
  "totalCount": 100,
  "pipelines": [
    {
      "pipelineName": "my-pipeline",
      "description": "My pipeline",
      "regionId": "cn-hangzhou",
      "createTime": "2026-01-01T00:00:00Z",
      "updateTime": "2026-01-02T00:00:00Z",
      "workspace": "my-workspace",
      "executePolicy": {
        "mode": "RunOnce",
        "runOnce": {
          "fromTime": 1735660800000,
          "toTime": 1735747200000
        },
        "continuous": {
          "fromTime": 1735660800
        },
        "scheduled": {
          "fromTime": 1735660800000,
          "interval": "1h"
        }
      },
      "scheduleType": "RunOnce",
      "scheduleStatus": "None",
      "source": {
        "type": "dataset",
        "oss": {
          "format": "lerobot",
          "region": "cn-beijing",
          "roleArn": "acs:ram::1234567890123456:role/oss-reader",
          "uri": "oss://example-bucket/robot-datasets/example/",
          "formatOptions": {
            "key": "{\"video_camera_right\":\"/example/camera/right\",\"video_camera_left\":\"/example/camera/left\",\"video_camera_head\":\"/example/camera/head\"}"
          }
        },
        "inputFields": [
          {
            "name": "question",
            "type": "text"
          }
        ],
        "logstore": {
          "project": "my-sls-project",
          "logstore": "my-sls-logstore",
          "query": "* | SELECT *"
        },
        "dataset": {
          "dataset": "my-dataset",
          "filter": "status = 'pending'",
          "version": "v1"
        },
        "trajectory": {
          "enrich": {
            "enabled": false,
            "columns": [
              "input"
            ]
          }
        }
      },
      "sink": {
        "type": "condition",
        "dataset": {
          "agentSpace": "my-agent-space",
          "dataset": "my-dataset"
        },
        "condition": {
          "matchMode": "all",
          "routes": [
            {
              "id": "refund",
              "expression": "* | where intent = 'refund'",
              "sink": {
                "type": "dataset",
                "dataset": {
                  "agentSpace": "my-agent-space",
                  "dataset": "refund-result"
                }
              }
            }
          ],
          "defaultSink": {
            "type": "dataset",
            "dataset": {
              "agentSpace": "my-agent-space",
              "dataset": "other-result"
            }
          }
        }
      },
      "pipelineKind": "ORCHESTRATION",
      "version": 1,
      "lastRunId": "run-20260101-0001",
      "lastRunStatus": "Running",
      "pipeline": {
        "nodes": [
          {
            "id": "stage_1",
            "type": "annotation-stage",
            "parameters": {
              "key": "value"
            }
          }
        ]
      },
      "committedWatermark": 1767225600,
      "nextTriggerTime": 1767229200,
      "pausedReason": "manual"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.