GetPipeline

Updated at:

Queries a pipeline.

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:GetPipeline

none

*Pipeline

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

None None

Request syntax

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

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

No

The name of the AgentSpace where the pipeline is located.

my-agent-space

pipelineName

string

No

The name of the pipeline to query.

my-pipeline

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

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

pipelineName

string

The pipeline name.

my-pipeline

description

string

The pipeline description.

My pipeline

regionId

string

The ID of the region where the pipeline is located.

cn-hangzhou

createTime

string

The time when the pipeline was created, in ISO 8601 UTC format.

2026-01-01T00:00:00Z

updateTime

string

The time when the pipeline was last updated, in ISO 8601 UTC format.

2026-01-02T00:00:00Z

workspace

string

The workspace associated with the pipeline.

my-workspace

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 value indicates the trace signal-driven processing mode. The server validates the enum values.

logstore

oss PipelineOssSource

The OSS data source configuration. This parameter is returned when source.type is set to oss. The source.oss object echoes format, region, roleArn, and uri. The initial version does not support 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 types. For OSS sources, the fields are inferred based on the file structure.

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

object

The input field.

name

string

The name of the field.

question

type

string

The field type. 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, which uses the SLS query and 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 data filter condition for the dataset.

status = 'pending'

version

string

The version of the source dataset.

v1

trajectory

object

The trajectory data configuration. This parameter is optional and takes effect when the type is set to trace. It obtains ATIF standard trajectory data from the trajectory cleaning service and extends it based on features.

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

enrich

object

The trajectory enrichment configuration. It mounts trajectory data into the cleaning results based on 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 agent_trajectory, and this parameter no longer affects the output.

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

string

The name of the trajectory column.

input

pipeline

object

The pipeline configuration, which defines the node orchestration.

{"nodes":[{"id":"select-fields","type":"project","parameters":{"question":"user_query"}}]}

nodes

array<object>

The list of nodes.

[{"id":"select-fields","type":"project","parameters":{}}]

array<object>

The configuration of a single node.

id

string

The ID of the node.

node-1

type

string

The type of the node.

transform

parameters

object

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

any

The value of the node parameter.

value

sink

object

The pipeline sink, which specifies the destination for writing data.

type

string

The sink type. Valid values: dataset and condition.

Dataset

dataset

object

The destination dataset configuration.

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 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 route ID.

refund

expression

string

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

* | where intent = 'refund'

sink

object

The write destination of the route.

type

string

The route destination type. Currently, only dataset is supported.

dataset

dataset

object

The destination dataset of 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 write destination used when no conditional route is matched.

type

string

The default destination type. 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

executePolicy

object

The scheduling policy.

{"mode":"RunOnce","runOnce":{"fromTime":1735660800,"toTime":1735664400}}

mode

string

The scheduling mode. Valid values: RunOnce, Scheduled, and Continuous. Continuous is supported only for trace data sources. The processing frequency is a fixed value managed by the server, and traces are automatically processed at minute-level intervals after completion.

Scheduled

runOnce

object

The run-once configuration. This parameter is required only when mode is set to RunOnce.

{"fromTime":1735660800,"toTime":1735664400}

fromTime

integer

The start time of data processing. The value is a UNIX timestamp in milliseconds.

1735660800000

toTime

integer

The end time of data processing. The value is a UNIX timestamp in milliseconds.

1735747200000

continuous

object

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

{"fromTime":1735660800}

fromTime

integer

The bootstrap history start time. The value is a UNIX timestamp in seconds and shares 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-level intervals. By default, it starts from the current time and processes only incremental data.

1735660800

scheduled

object

The timed scheduling configuration.

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

interval

string

The scheduling interval. Valid values: 1h, 6h, 12h, and 1d.

1h

fromTime

integer

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

1735660800000

scheduleType

string

The schedule type. Valid values: RunOnce (single execution), Scheduled (periodic scheduling), and Continuous (continuous execution, driven by trace source signals).

RunOnce

scheduleStatus

string

The scheduling status. Valid values: None (no scheduling), Active (active), Paused (paused), and Terminated (terminated).

Active

committedWatermark

integer

The committed watermark. The value is a UNIX timestamp in seconds.

1735660800

nextTriggerTime

integer

The next scheduling trigger time. The value is a UNIX timestamp in seconds.

1735661100

pipelineKind

string

The pipeline type.

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

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

The following is an example of 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",
  "pipelineName": "my-pipeline",
  "description": "My pipeline",
  "regionId": "cn-hangzhou",
  "createTime": "2026-01-01T00:00:00Z",
  "updateTime": "2026-01-02T00:00:00Z",
  "workspace": "my-workspace",
  "source": {
    "type": "logstore",
    "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"
        ]
      }
    }
  },
  "pipeline": {
    "nodes": [
      {
        "id": "node-1",
        "type": "transform",
        "parameters": {
          "key": "value"
        }
      }
    ]
  },
  "sink": {
    "type": "Dataset",
    "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"
        }
      }
    }
  },
  "executePolicy": {
    "mode": "Scheduled",
    "runOnce": {
      "fromTime": 1735660800000,
      "toTime": 1735747200000
    },
    "continuous": {
      "fromTime": 1735660800
    },
    "scheduled": {
      "interval": "1h",
      "fromTime": 1735660800000
    }
  },
  "scheduleType": "RunOnce",
  "scheduleStatus": "Active",
  "committedWatermark": 1735660800,
  "nextTriggerTime": 1735661100,
  "pipelineKind": "ORCHESTRATION",
  "version": 1,
  "lastRunId": "run-20260101-0001",
  "lastRunStatus": "Running"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.