GetDataPipeline
Queries a data pipeline.
Operation description
Queries the configuration and running status of a data pipeline in a specified workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetDataPipeline |
get |
*DataPipeline
|
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:
|
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. |
|
|
| 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:
|
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 |
| 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:
|
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. |
|
|
| 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:
|
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:
|
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:
|
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:
|
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.