UpdateDataPipeline
Updates a data pipeline.
Operation description
Modifies the specified data pipeline by using a complete candidate configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:UpdateDataPipeline |
update |
*DataPipeline
|
None | None |
Request syntax
PUT /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 |
| body |
object |
No |
The update configuration. |
|
| expectedVersion |
integer |
No |
The expected version. |
3 |
| kind |
string |
No |
The type of the pipeline. Valid values:
|
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 start point for reading. |
latest |
| timeRange |
object |
No |
The time range for backfilling. |
|
| 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 field projection in the pipeline. |
||
| 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 field assignment in the pipeline. |
||
| 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 data masking mode. |
keyword |
| types |
array |
No |
The built-in sensitive data types. |
|
|
string |
No |
The sensitive data type. |
|
|
| keys |
array |
No |
The sensitive keywords. |
|
|
string |
No |
The keyword. |
password |
|
| maskChar |
string |
No |
The mask character. |
# |
| keepPrefix |
integer |
No |
The length of the prefix to retain. |
2 |
| keepSuffix |
integer |
No |
The length of the suffix to retain. |
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 scope of metric names. |
|
| matchType |
string |
No |
The match type. |
EXACT |
| values |
array |
No |
The metric names. |
["http_requests_total"] |
|
string |
No |
The object value. |
['name'] |
|
| serviceName |
object |
No |
The scope of service names. |
|
| matchType |
string |
No |
The match type. Valid values:
|
EXACT |
| values |
array |
No |
The match values. |
|
|
string |
No |
The match values. |
['sample'] |
|
| 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 |
| name |
string |
No |
The field or dimension name. |
serviceName |
| container |
string |
No |
The JSON object container. |
{} |
| path |
array |
No |
The JSON literal key path. |
|
|
string |
No |
The JSON object key. |
resource.service.name |
|
| matchType |
string |
No |
The match type. Valid values:
|
GLOB |
| values |
array |
No |
The match values. |
|
|
string |
No |
The match values. |
['name*'] |
|
| parameters |
object |
No |
The extended 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 field projection in the pipeline. |
||
| 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 field assignment in the pipeline. |
||
| 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 data masking mode. |
keyword |
| types |
array |
No |
The built-in sensitive data types. |
|
|
string |
No |
The sensitive data type. |
|
|
| keys |
array |
No |
The sensitive keywords. |
|
|
string |
No |
The keyword. |
password |
|
| maskChar |
string |
No |
The mask character. |
# |
| keepPrefix |
integer |
No |
The length of the prefix to retain. |
2 |
| keepSuffix |
integer |
No |
The length of the suffix to retain. |
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 scope of metric names. |
|
| matchType |
string |
No |
The match type. |
EXACT |
| values |
array |
No |
The metric names. |
["http_requests_total"] |
|
string |
No |
The value. |
['general'] |
|
| serviceName |
object |
No |
The scope of service names. |
|
| matchType |
string |
No |
The match type. Valid values:
|
GLOB |
| 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 |
| name |
string |
No |
The field or dimension name. |
name |
| container |
string |
No |
The JSON object container. |
attributes |
| path |
array |
No |
The JSON literal key path. |
|
|
string |
No |
The JSON object key. |
user/root |
|
| matchType |
string |
No |
The match type. Valid values:
|
EXACT |
| values |
array |
No |
The match values. |
|
|
string |
No |
The match values. |
['Backup', 'JobRun', 'Notification', 'StatusNotification', 'Workflow'] |
|
| parameters |
object |
No |
The extended parameters. |
{"vendor":"example"} |
|
any |
No |
The parameter. |
[] |
|
| sinks |
array<object> |
No |
The output destination. |
|
|
object |
No |
The output destination. |
||
| 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 update 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 type of the pipeline. Valid values:
|
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 start point for reading. |
latest |
| timeRange |
object |
The time range for backfilling. |
|
| 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 field projection in the pipeline. |
||
| source |
string |
The source field. |
serviceName |
| target |
string |
The target field. |
service |
| assignments |
array<object> |
The list of field assignments. |
|
|
object |
The field assignment in the pipeline. |
||
| 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 data masking mode. |
keyword |
| types |
array |
The built-in sensitive data types. |
|
|
string |
The sensitive data type. |
|
|
| 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 scope of metric names. |
|
| matchType |
string |
The match type. |
EXACT |
| values |
array |
The metric names. |
["http_requests_total"] |
|
string |
The value. |
['abc'] |
|
| serviceName |
object |
The scope of service names. |
|
| matchType |
string |
The match type. Valid values:
|
EXACT |
| values |
array |
The match values. |
|
|
string |
The match values. |
['abc'] |
|
| 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 |
| name |
string |
The field or dimension name. |
name |
| container |
string |
The JSON object container. |
{} |
| path |
array |
The JSON literal key path. |
|
|
string |
The JSON object key. |
{} |
|
| matchType |
string |
The match type. Valid values:
|
EXACT |
| values |
array |
The match values. |
|
|
string |
The match values. |
name |
|
| 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 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 field projection in the pipeline. |
||
| source |
string |
The source field. |
serviceName |
| target |
string |
The target field. |
service |
| assignments |
array<object> |
The list of field assignments. |
|
|
object |
The field assignment in the pipeline. |
||
| 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 data masking mode. |
keyword |
| types |
array |
The built-in sensitive data types. |
|
|
string |
The sensitive data type. |
|
|
| 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 the pipeline processing. |
|
| metricName |
object |
The scope of metric names. |
|
| matchType |
string |
The match type. |
EXACT |
| values |
array |
The metric names. |
["http_requests_total"] |
|
string |
The value. |
['Backup', 'JobRun', 'Notification', 'StatusNotification', 'Workflow'] |
|
| serviceName |
object |
The scope of service names. |
|
| matchType |
string |
The match type. Valid values:
|
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:
|
label |
| name |
string |
The name of the field or dimension. |
instanceId |
| container |
string |
The JSON object container. |
{} |
| path |
array |
The JSON literal key path. |
|
|
string |
The JSON object key. |
instanceId |
|
| matchType |
string |
The match type. Valid values:
|
EXACT |
| values |
array |
The match values. |
|
|
string |
The match values. |
['general'] |
|
| parameters |
object |
The extended parameters. |
{"vendor":"example"} |
|
any |
The parameter. |
{} |
|
| sinks |
array<object> |
The output destination. |
|
|
object |
The output destination. |
||
| 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:
|
Running |
| statusMessage |
string |
The status message. |
Pipeline is running. |
| createTime |
string |
The creation time in UTC and ISO 8601 format, for example, 2026-08-10T05:00:00Z. |
2026-08-10T05:00:00Z |
| updateTime |
string |
The update time in UTC and ISO 8601 format, for 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": [
"['abc']"
]
},
"serviceName": {
"matchType": "EXACT",
"values": [
"['abc']"
]
},
"conditions": [
{
"field": {
"kind": "field",
"name": "name",
"container": "{}",
"path": [
"{}"
]
},
"matchType": "EXACT",
"values": [
"name"
]
}
]
},
"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": [
"['Backup', 'JobRun', 'Notification', 'StatusNotification', 'Workflow']"
]
},
"serviceName": {
"matchType": "EXACT",
"values": [
"['ECS']"
]
},
"conditions": [
{
"field": {
"kind": "label",
"name": "instanceId",
"container": "{}",
"path": [
"instanceId"
]
},
"matchType": "EXACT",
"values": [
"['general']"
]
}
]
},
"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.