GetDataPipeline

Updated at:

Queries a data pipeline.

Operation description

Queries the configuration and running status of a data pipeline in a specified workspace.

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

cms:GetDataPipeline

get

*DataPipeline

acs:cms:{#regionId}:{#accountId}:workspace/{#Workspace}/datapipeline/{#PipelineName}

None None

Request syntax

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

Path Parameters

Parameter

Type

Required

Description

Example

workspace

string

Yes

The name of the workspace.

workspace-source

pipelineName

string

Yes

The name of the pipeline.

export-traces-to-prod

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

The query data pipeline response.

requestId

string

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

pipeline

object

The data pipeline.

pipelineName

string

The name of the pipeline.

export-traces-to-prod

kind

string

The pipeline type.

Valid values:

  • default :

    Default pipeline.

  • custom :

    Custom pipeline.

  • export :

    Export pipeline.

export

description

string

The pipeline description.

Export selected trace services to the target workspace.

signalType

string

The signal type.

traces

source

object

The data source.

type

string

The data source type.

traces-default

config

object

The datasource config.

runMode

string

The run mode.

continuous

startFrom

string

The read start point.

latest

timeRange

object

The backfill time range.

from

integer

The start time.

1722844800

to

integer

The end time.

1722848400

processors

array<object>

The common processors.

array<object>

The processor.

name

string

The processor name.

drop-health-check

type

string

The processor type.

filter

config

object

The processor configuration.

expression

string

The filter expression.

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

fields

array

The field list.

string

The field path.

attributes.password

script

string

The SPL script.

* | extend latency_ms = duration / 1000000

projections

array<object>

The field projection list.

object

The pipeline field projection.

source

string

The source field.

serviceName

target

string

The target field.

service

assignments

array<object>

The field assignment list.

object

The pipeline field assignment.

field

string

The output field.

latency_ms

expression

string

The assignment expression.

duration / 1000000.0

applications

array

The application list.

string

The application name.

checkout-service

rules

array<object>

The data masking rule list.

object

The data masking rule.

mode

string

The data masking mode.

keyword

types

array

The built-in sensitive data type.

string

The sensitive type.

EMAIL

keys

array

The sensitive keywords.

string

The keyword.

password

maskChar

string

The mask character.

#

keepPrefix

integer

The length of the prefix to retain.

2

keepSuffix

integer

The length of the suffix to retain.

2

target

object

The processing target.

workspace

string

The target workspace.

target-checkout-ws

selector

object

The service selector.

serviceNames

array

The list of service names.

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

string

The service name pattern.

checkout-*

scope

object

The effective scope of pipeline processing.

metricName

object

The metric name scope.

matchType

string

The match type.

EXACT

values

array

The metric names.

["http_requests_total"]

string

The value.

['admit']

serviceName

object

The service name scope.

matchType

string

The match type.

Valid values:

  • GLOB :

    Wildcard match.

  • EXACT :

    Exact match.

EXACT

values

array

The match values.

string

The match values.

['ECS']

conditions

array<object>

The additional field conditions.

array<object>

The field condition.

field

object

The field reference.

kind

string

The reference data type.

Valid values:

  • field :

    Regular field.

  • json :

    JSON object key path.

  • label :

    Metric label.

field

name

string

The field or dimension name.

site_check_monitor

container

string

The JSON object container.

{}

path

array

The JSON literal key path.

string

The JSON object key.

site.check.monitor

matchType

string

The match type.

Valid values:

  • GLOB :

    Wildcard match.

  • EXACT :

    Exact match.

EXACT

values

array

The match values.

string

The match values.

['E-MapReduce', 'ECS', 'HBR', 'kafka', 'tag']

parameters

object

The extended parameters.

{"vendor":"example"}

any

The parameter.

{}

outputs

array<object>

The named outputs.

array<object>

The named outputs.

name

string

The output name.

checkout_route

processors

array<object>

The branch processors.

array<object>

The processor.

name

string

The processor name.

drop-health-check

type

string

The processor type.

filter

config

object

The processor configuration.

expression

string

The filter expression.

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

fields

array

The field list.

string

The field path.

attributes.password

script

string

The SPL script.

* | extend latency_ms = duration / 1000000

projections

array<object>

The field projection list.

object

The pipeline field projection.

source

string

The source field.

serviceName

target

string

The target field.

service

assignments

array<object>

The field assignment list.

object

The pipeline field assignment.

field

string

The output field.

latency_ms

expression

string

The assignment expression.

duration / 1000000.0

applications

array

The application list.

string

The application name.

checkout-service

rules

array<object>

The data masking rule list.

object

The data masking rule.

mode

string

The data masking mode.

keyword

types

array

The built-in sensitive data type.

string

The sensitive type.

EMAIL

keys

array

The sensitive keywords.

string

The keyword.

password

maskChar

string

The mask character.

#

keepPrefix

integer

The length of the prefix to retain.

2

keepSuffix

integer

The length of the suffix to retain.

2

target

object

The processing target.

workspace

string

The target workspace.

target-checkout-ws

selector

object

The service selector.

serviceNames

array

The list of service names.

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

string

The service name pattern.

checkout-*

scope

object

The effective scope of pipeline processing.

metricName

object

The metric name scope.

matchType

string

The match type.

EXACT

values

array

The metric names.

["http_requests_total"]

string

The object value.

['ECS']

serviceName

object

The service name scope.

matchType

string

The match type.

Valid values:

  • GLOB :

    Wildcard match.

  • EXACT :

    Exact match.

EXACT

values

array

The match values.

string

The match values.

['a','b']

conditions

array<object>

The additional field conditions.

array<object>

The field condition.

field

object

The field reference.

kind

string

The reference data type.

Valid values:

  • field :

    Normal field.

  • json :

    JSON object key path.

  • label :

    Metric label.

label

name

string

The field or dimension name.

azone

container

string

The JSON object container.

{}

path

array

The JSON literal key path.

string

The JSON object key.

service.name

matchType

string

The match type.

Valid values:

  • GLOB :

    Wildcard match.

  • EXACT :

    Exact match.

EXACT

values

array

The match values.

string

The match values.

['cn-shanghai-a']

parameters

object

The extended parameters.

{"vendor":"example"}

any

The parameter.

{}

sinks

array<object>

The output destinations.

object

The output destinations.

name

string

The name of the output destination.

error-archive

type

string

The type of the output destination.

logstore

project

string

SLS Project

customer-project

logstore

string

SLS Logstore

error-spans

datasets

array

The list of datasets.

string

The name of the dataset.

__UNNAMED__

version

integer

The configuration version.

3

status

string

The running status.

Valid values:

  • Stopped :

    Stopped.

  • Running :

    Running.

  • Error :

    Error.

  • Pending :

    Pending.

Running

statusMessage

string

The status message.

Pipeline is running.

createTime

string

The creation time in UTC, following the ISO 8601 format, such as 2026-08-10T05:00:00Z.

2026-08-10T05:00:00Z

updateTime

string

The update time in UTC, following the ISO 8601 format, such as 2026-08-10T05:10:00Z.

2026-08-10T05:10:00Z

Examples

Success response

JSON format

{
  "requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "pipeline": {
    "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",
          "projections": [
            {
              "source": "serviceName",
              "target": "service"
            }
          ],
          "assignments": [
            {
              "field": "latency_ms",
              "expression": "duration / 1000000.0"
            }
          ],
          "applications": [
            "checkout-service"
          ],
          "rules": [
            {
              "mode": "keyword",
              "types": [
                "EMAIL"
              ],
              "keys": [
                "password"
              ],
              "maskChar": "*",
              "keepPrefix": 2,
              "keepSuffix": 2
            }
          ],
          "target": {
            "workspace": "target-checkout-ws"
          },
          "selector": {
            "serviceNames": [
              "checkout-*"
            ]
          },
          "scope": {
            "metricName": {
              "matchType": "EXACT",
              "values": [
                "['admit']"
              ]
            },
            "serviceName": {
              "matchType": "EXACT",
              "values": [
                "['ECS']"
              ]
            },
            "conditions": [
              {
                "field": {
                  "kind": "explorer_link",
                  "name": "site_check_monitor",
                  "container": "{}",
                  "path": [
                    "site.check.monitor"
                  ]
                },
                "matchType": "EXACT",
                "values": [
                  "['E-MapReduce', 'ECS', 'HBR', 'kafka', 'tag']"
                ]
              }
            ]
          },
          "parameters": {
            "key": "{}"
          }
        }
      }
    ],
    "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",
              "projections": [
                {
                  "source": "serviceName",
                  "target": "service"
                }
              ],
              "assignments": [
                {
                  "field": "latency_ms",
                  "expression": "duration / 1000000.0"
                }
              ],
              "applications": [
                "checkout-service"
              ],
              "rules": [
                {
                  "mode": "keyword",
                  "types": [
                    "EMAIL"
                  ],
                  "keys": [
                    "password"
                  ],
                  "maskChar": "*",
                  "keepPrefix": 2,
                  "keepSuffix": 2
                }
              ],
              "target": {
                "workspace": "target-checkout-ws"
              },
              "selector": {
                "serviceNames": [
                  "checkout-*"
                ]
              },
              "scope": {
                "metricName": {
                  "matchType": "EXACT",
                  "values": [
                    "['ECS']"
                  ]
                },
                "serviceName": {
                  "matchType": "EXACT",
                  "values": [
                    "['a','b']"
                  ]
                },
                "conditions": [
                  {
                    "field": {
                      "kind": "label",
                      "name": "azone",
                      "container": "{}",
                      "path": [
                        "service.name"
                      ]
                    },
                    "matchType": "EXACT",
                    "values": [
                      "['cn-shanghai-a']"
                    ]
                  }
                ]
              },
              "parameters": {
                "key": "{}"
              }
            }
          }
        ]
      }
    ],
    "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"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.