ListDataPipelines - 列出所有数据流水线

更新时间:
复制 MD 格式

查询DataPipeline列表

接口说明

分页查询指定工作空间中的数据流水线。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /workspace/{workspace}/datapipeline HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

workspace

string

工作空间名称

workspace-source

请求参数

名称

类型

必填

描述

示例值

nextToken

string

下一页令牌

eyJvZmZzZXQiOjEwfQ==

maxResults

integer

单页数量

20

返回参数

名称

类型

描述

示例值

object

查询数据流水线列表响应

requestId

string

请求标识

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

totalCount

integer

总数量

42

maxResults

integer

单页数量

20

nextToken

string

下一页令牌

eyJvZmZzZXQiOjIwfQ==

pipelines

array<object>

数据流水线列表

array<object>

数据流水线

pipelineName

string

流水线名称

export-traces-to-prod

kind

string

流水线类型

export

description

string

流水线描述

Export selected trace services to the target workspace.

signalType

string

信号类型

traces

source

object

数据源

type

string

数据源类型

traces-default

config

object

数据源配置

runMode

string

运行模式

continuous

startFrom

string

读取起点

latest

timeRange

object

回填时间范围

from

integer

开始时间

1722844800

to

integer

结束时间

1722848400

processors

array<object>

公共处理器

array<object>

处理器

name

string

处理器名称

drop-health-check

type

string

处理器类型

filter

config

object

处理器配置

expression

string

过滤表达式

attributes["http.route"] != "/health"

fields

array

字段列表

string

字段路径

attributes.password

script

string

SPL 脚本

* | extend latency_ms = duration / 1000000

applications

array

应用列表

string

应用名称

checkout-service

rules

array<object>

脱敏规则列表

object

脱敏规则

mode

string

脱敏模式

keyword

types

array

内置敏感类型

string

敏感类型

EMAIL

keys

array

敏感关键词

string

关键词

password

maskChar

string

掩码字符

*

keepPrefix

integer

保留前缀长度

2

keepSuffix

integer

保留后缀长度

2

target

object

处理目标

workspace

string

目标工作空间

target-checkout-ws

selector

object

服务选择器

serviceNames

array

服务名称列表

["checkout-*","order-service"]

string

服务名称模式

checkout-*

outputs

array<object>

命名输出

array<object>

命名输出

name

string

输出名称

checkout_route

processors

array<object>

分支处理器

array<object>

处理器

name

string

处理器名称

drop-health-check

type

string

处理器类型

filter

config

object

处理器配置

expression

string

过滤表达式

attributes["http.route"] != "/health"

fields

array

字段列表

string

字段路径

attributes.password

script

string

SPL 脚本

* | extend latency_ms = duration / 1000000

applications

array

应用列表

string

应用名称

checkout-service

rules

array<object>

脱敏规则列表

object

脱敏规则

mode

string

脱敏模式

keyword

types

array

内置敏感类型

string

敏感类型

EMAIL

keys

array

敏感关键词

string

关键词

password

maskChar

string

掩码字符

*

keepPrefix

integer

保留前缀长度

2

keepSuffix

integer

保留后缀长度

2

target

object

处理目标

workspace

string

目标工作空间

target-checkout-ws

selector

object

服务选择器

serviceNames

array

服务名称列表

["checkout-*","order-service"]

string

服务名称模式

checkout-*

sinks

array<object>

输出目标

object

输出目标

name

string

输出目标名称

error-archive

type

string

输出目标类型

logstore

project

string

SLS Project

customer-project

logstore

string

SLS Logstore

error-spans

datasets

array

Dataset 列表

string

Dataset 名称

__UNNAMED__

version

integer

配置版本

3

status

string

运行状态

Running

statusMessage

string

状态消息

Pipeline is running.

createTime

string

创建时间

2026-08-10T05:00:00Z

updateTime

string

更新时间

2026-08-10T05:10:00Z

示例

正常返回示例

JSON格式

{
  "requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "totalCount": 42,
  "maxResults": 20,
  "nextToken": "eyJvZmZzZXQiOjIwfQ==",
  "pipelines": [
    {
      "pipelineName": "export-traces-to-prod",
      "kind": "export",
      "description": "Export selected trace services to the target workspace.",
      "signalType": "traces",
      "source": {
        "type": "traces-default",
        "config": {
          "runMode": "continuous",
          "startFrom": "latest",
          "timeRange": {
            "from": 1722844800,
            "to": 1722848400
          }
        }
      },
      "processors": [
        {
          "name": "drop-health-check",
          "type": "filter",
          "config": {
            "expression": "attributes[\"http.route\"] != \"/health\"",
            "fields": [
              "attributes.password"
            ],
            "script": "* | extend latency_ms = duration / 1000000",
            "applications": [
              "checkout-service"
            ],
            "rules": [
              {
                "mode": "keyword",
                "types": [
                  "EMAIL"
                ],
                "keys": [
                  "password"
                ],
                "maskChar": "*",
                "keepPrefix": 2,
                "keepSuffix": 2
              }
            ],
            "target": {
              "workspace": "target-checkout-ws"
            },
            "selector": {
              "serviceNames": [
                "checkout-*"
              ]
            }
          }
        }
      ],
      "outputs": [
        {
          "name": "checkout_route",
          "processors": [
            {
              "name": "drop-health-check",
              "type": "filter",
              "config": {
                "expression": "attributes[\"http.route\"] != \"/health\"",
                "fields": [
                  "attributes.password"
                ],
                "script": "* | extend latency_ms = duration / 1000000",
                "applications": [
                  "checkout-service"
                ],
                "rules": [
                  {
                    "mode": "keyword",
                    "types": [
                      "EMAIL"
                    ],
                    "keys": [
                      "password"
                    ],
                    "maskChar": "*",
                    "keepPrefix": 2,
                    "keepSuffix": 2
                  }
                ],
                "target": {
                  "workspace": "target-checkout-ws"
                },
                "selector": {
                  "serviceNames": [
                    "checkout-*"
                  ]
                }
              }
            }
          ]
        }
      ],
      "sinks": [
        {
          "name": "error-archive",
          "type": "logstore",
          "project": "customer-project",
          "logstore": "error-spans",
          "datasets": [
            "__UNNAMED__"
          ]
        }
      ],
      "version": 3,
      "status": "Running",
      "statusMessage": "Pipeline is running.",
      "createTime": "2026-08-10T05:00:00Z",
      "updateTime": "2026-08-10T05:10:00Z"
    }
  ]
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情