CreateDataPipeline

Updated at:

Creates a data pipeline.

Operation description

Creates 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:CreateDataPipeline

create

*DataPipeline

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

None None

Request syntax

POST /workspace/{workspace}/datapipeline HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

workspace

string

Yes

The name of the workspace.

workspace-source

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The creation configuration.

pipelineName

string

No

The name of the pipeline.

export-traces-to-prod

kind

string

No

The type of the pipeline.

Valid values:

  • default :

    Default pipeline.

  • custom :

    Custom pipeline.

  • export :

    Export pipeline.

export

description

string

No

The description of the pipeline.

Export selected trace services to the target workspace.

source

object

No

The data source.

type

string

No

The type of the data source.

traces-default

config

object

No

The datasource config.

runMode

string

No

The run mode.

continuous

startFrom

string

No

The read start point.

latest

timeRange

object

No

The backfill time range.

from

integer

No

The start time.

1722844800

to

integer

No

The end time.

1722848400

processors

array<object>

No

The common processors.

array<object>

No

The processor.

name

string

No

The name of the processor.

drop-health-check

type

string

No

The type of the processor.

filter

config

object

No

The configuration of the processor.

expression

string

No

The filter expression.

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

fields

array

No

The list of fields.

string

No

The path of the field.

attributes.password

script

string

No

The SPL script.

* | extend latency_ms = duration / 1000000

projections

array<object>

No

The list of field projections.

object

No

The pipeline field projection.

source

string

No

The source field.

serviceName

target

string

No

The target field.

service

assignments

array<object>

No

The list of field assignments.

object

No

The pipeline field assignment.

field

string

No

The output field.

latency_ms

expression

string

No

The assignment expression.

duration / 1000000.0

applications

array

No

The list of applications.

string

No

The name of the application.

checkout-service

rules

array<object>

No

The list of data masking rules.

object

No

The data masking rule.

mode

string

No

The masking mode.

keyword

types

array

No

The built-in sensitive data types.

string

No

The sensitive data type.

EMAIL

keys

array

No

The sensitive keywords.

string

No

The keyword.

password

maskChar

string

No

The mask character.

#

keepPrefix

integer

No

The length of the retained prefix.

2

keepSuffix

integer

No

The length of the retained suffix.

2

target

object

No

The processing target.

workspace

string

No

The target workspace.

target-checkout-ws

selector

object

No

The service selector.

serviceNames

array

No

The list of service names.

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

string

No

The service name pattern.

checkout-*

scope

object

No

The effective scope of pipeline processing.

metricName

object

No

The metric name scope.

matchType

string

No

The match type.

EXACT

values

array

No

The metric names.

["http_requests_total"]

string

No

The value.

['admit']

serviceName

object

No

The service name scope.

matchType

string

No

The match type.

Valid values:

  • GLOB :

    Wildcard match.

  • EXACT :

    Exact match.

EXACT

values

array

No

The match values.

string

No

The match values.

['abc']

conditions

array<object>

No

The additional field conditions.

array<object>

No

The field condition.

field

object

No

The field reference.

kind

string

No

The reference data type.

Valid values:

  • field :

    Regular field.

  • json :

    JSON object key path.

  • label :

    Metric label.

field

name

string

No

The field or dimension name.

serviceName

container

string

No

The JSON object container.

attributes

path

array

No

The JSON literal key path.

string

No

The JSON object key.

service.name

matchType

string

No

The match type.

Valid values:

  • GLOB :

    Wildcard match.

  • EXACT :

    Exact match.

EXACT

values

array

No

The match values.

string

No

The match values.

['abc']

parameters

object

No

The extension parameters.

{"vendor":"example"}

any

No

The parameter.

{}

outputs

array<object>

No

The named outputs.

array<object>

No

The named outputs.

name

string

No

The output name.

checkout_route

processors

array<object>

No

The branch processors.

array<object>

No

The processor.

name

string

No

The name of the processor.

drop-health-check

type

string

No

The type of the processor.

filter

config

object

No

The configuration of the processor.

expression

string

No

The filter expression.

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

fields

array

No

The list of fields.

string

No

The path of the field.

attributes.password

script

string

No

The SPL script.

* | extend latency_ms = duration / 1000000

projections

array<object>

No

The list of field projections.

object

No

The pipeline field projection.

source

string

No

The source field.

serviceName

target

string

No

The target field.

service

assignments

array<object>

No

The list of field assignments.

object

No

The pipeline field assignment.

field

string

No

The output field.

latency_ms

expression

string

No

The assignment expression.

duration / 1000000.0

applications

array

No

The list of applications.

string

No

The name of the application.

checkout-service

rules

array<object>

No

The list of data masking rules.

object

No

The data masking rule.

mode

string

No

The masking mode.

keyword

types

array

No

The built-in sensitive data types.

string

No

The sensitive data type.

EMAIL

keys

array

No

The sensitive keywords.

string

No

The keyword.

password

maskChar

string

No

The mask character.

#

keepPrefix

integer

No

The length of the retained prefix.

2

keepSuffix

integer

No

The length of the retained suffix.

2

target

object

No

The processing target.

workspace

string

No

The target workspace.

target-checkout-ws

selector

object

No

The service selector.

serviceNames

array

No

The list of service names.

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

string

No

The service name pattern.

checkout-*

scope

object

No

The effective scope of pipeline processing.

metricName

object

No

The metric name scope.

matchType

string

No

The match type.

EXACT

values

array

No

The metric names.

["http_requests_total"]

string

No

The value.

['abc']

serviceName

object

No

The service name scope.

matchType

string

No

The match type.

Valid values:

  • GLOB :

    Wildcard match.

  • EXACT :

    Exact match.

EXACT

values

array

No

The match values.

string

No

The match values.

['admit']

conditions

array<object>

No

The additional field conditions.

array<object>

No

The field condition.

field

object

No

The field reference.

kind

string

No

The reference data type.

Valid values:

  • field :

    Regular field.

  • json :

    JSON object key path.

  • label :

    Metric label.

label

name

string

No

The field or dimension name.

serviceName

container

string

No

The JSON object container.

attributes

path

array

No

The JSON literal key path.

string

No

The JSON object key.

service.name

matchType

string

No

The match type.

Valid values:

  • GLOB :

    Wildcard match.

  • EXACT :

    Exact match.

EXACT

values

array

No

The match values.

string

No

The match values.

['abc']

parameters

object

No

The extension parameters.

{"vendor":"example"}

any

No

The parameter.

{}

sinks

array<object>

No

The output destinations.

object

No

The output destinations.

name

string

No

The name of the output destination.

error-archive

type

string

No

The type of the output destination.

logstore

project

string

No

SLS Project

customer-project

logstore

string

No

SLS Logstore

error-spans

datasets

array

No

The list of datasets.

string

No

The name of the dataset.

__UNNAMED__

Response elements

Element

Type

Description

Example

object

The response for creating a data pipeline.

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 type of the pipeline.

Valid values:

  • default :

    Default pipeline.

  • custom :

    Custom pipeline.

  • export :

    Export pipeline.

export

description

string

The description of the pipeline.

Export selected trace services to the target workspace.

signalType

string

The signal type.

traces

source

object

The data source.

type

string

The type of the data source.

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 name of the processor.

drop-health-check

type

string

The type of the processor.

filter

config

object

The configuration of the processor.

expression

string

The filter expression.

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

fields

array

The list of fields.

string

The path of the field.

attributes.password

script

string

The SPL script.

* | extend latency_ms = duration / 1000000

projections

array<object>

The list of field projections.

object

The pipeline field projection.

source

string

The source field.

serviceName

target

string

The target field.

service

assignments

array<object>

The list of field assignments.

object

The pipeline field assignment.

field

string

The output field.

latency_ms

expression

string

The assignment expression.

duration / 1000000.0

applications

array

The list of applications.

string

The name of the application.

checkout-service

rules

array<object>

The list of data masking rules.

object

The data masking rule.

mode

string

The masking mode.

keyword

types

array

The built-in sensitive data types.

string

The sensitive data type.

EMAIL

keys

array

The sensitive keywords.

string

The keyword.

password

maskChar

string

The mask character.

#

keepPrefix

integer

The length of the retained prefix.

2

keepSuffix

integer

The length of the retained suffix.

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 filter value.

[]

serviceName

object

The service name scope.

matchType

string

The match type.

Valid values:

  • GLOB :

    Wildcard match.

  • EXACT :

    Exact match.

GLOB

values

array

The match values.

string

The match values.

['general']

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.

service.name

container

string

The JSON object container.

attributes

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.

['abc']

parameters

object

The extension 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 name of the processor.

drop-health-check

type

string

The type of the processor.

filter

config

object

The configuration of the processor.

expression

string

The filter expression.

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

fields

array

The list of fields.

string

The path of the field.

attributes.password

script

string

The SPL script.

* | extend latency_ms = duration / 1000000

projections

array<object>

The list of field projections.

object

The pipeline field projection.

source

string

The source field.

serviceName

target

string

The target field.

service

assignments

array<object>

The list of field assignments.

object

The pipeline field assignment.

field

string

The output field.

latency_ms

expression

string

The assignment expression.

duration / 1000000.0

applications

array

The list of applications.

string

The name of the application.

checkout-service

rules

array<object>

The list of data masking rules.

object

The data masking rule.

mode

string

The masking mode.

keyword

types

array

The built-in sensitive data types.

string

The sensitive data type.

EMAIL

keys

array

The sensitive keywords.

string

The keyword.

password

maskChar

string

The mask character.

#

keepPrefix

integer

The length of the retained prefix.

2

keepSuffix

integer

The length of the retained suffix.

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.

['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.

['admit']

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.

serviceName

container

string

The JSON object container.

attributes

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.

['abc']

parameters

object

The extension 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. Example: 2026-08-10T05:00:00Z.

2026-08-10T05:00:00Z

updateTime

string

The update time in UTC, following the ISO 8601 format. Example: 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": [
                "[]"
              ]
            },
            "serviceName": {
              "matchType": "GLOB",
              "values": [
                "['general']"
              ]
            },
            "conditions": [
              {
                "field": {
                  "kind": "field",
                  "name": "service.name",
                  "container": "attributes",
                  "path": [
                    "service.name"
                  ]
                },
                "matchType": "EXACT",
                "values": [
                  "['abc']"
                ]
              }
            ]
          },
          "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": [
                    "['admit']"
                  ]
                },
                "conditions": [
                  {
                    "field": {
                      "kind": "field",
                      "name": "serviceName",
                      "container": "attributes",
                      "path": [
                        "service.name"
                      ]
                    },
                    "matchType": "EXACT",
                    "values": [
                      "['abc']"
                    ]
                  }
                ]
              },
              "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.