Skip to content

Get



GET /api/v1/pipeline/{pl_uuid}/get

Overview

Read the Pipeline script, sample data, version, and complete saved configuration.

Before You Call and Usage Steps

Obtain the UUID from the list. You can read non-deleted configurations in the current Workspace, and you can also read a public system template with a known UUID (workspaceUUID is an empty string); a system template does not mean it can be modified directly. content/testData remains base64; the caller decodes it as UTF-8, edits it, then re-encodes and submits it. For rum/llm details, source is []; use extend.appID/measurement to view structured bindings; for system templates, source takes the template name.

Route Parameters

Parameter Type Required Description
pl_uuid string Y Current Workspace Pipeline UUID, which is distinct from the historical UUID, name, or numeric id.
Example: pl_example
How to obtain or enter: Obtain the UUID from the Pipeline List.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the Workspace.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with permission for this operation from API Key management in the target Workspace.

Request Example

curl --get 'https://openapi.guance.com/api/v1/pipeline/pl_example/get' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.id integer Database ID; use the UUID for operations.
content.uuid string pl_ object UUID.
content.workspaceUUID string Owning Workspace; empty string for system templates.
content.isSysTemplate string / integer / boolean Whether it is a system template. The entity is a Text column and may return a string flag; parse it according to the actual flag, and do not determine it directly by whether the string is non-empty.
content.isCustomSysTemp integer or boolean Whether it is a custom system template.
content.language string Template/configuration language; may be an empty string.
content.status integer 0 enabled, 2 disabled, 3 deleted.
content.creator string Creator identity.
content.updator string Last updater identity.
content.createAt integer Creation Unix seconds.
content.updateAt integer Update Unix seconds.
content.deleteAt integer Deletion Unix seconds; -1 if not deleted.
content.name string Saved configuration: required; maximum 256 count units (ASCII/half-width katakana 1, other characters 2); allows letters, digits, underscores, Chinese characters U+4e00..9fa5, and hyphens; should be non-empty. Duplicates are not allowed for the same category, even if local/central differs or the old item is disabled. This is not the input log source.
content.type string Saved configuration: required; local/central. For dialtesting, create/modify can only use central. The Workspace edition may restrict central. Modification replaces the original run type.
content.category string Saved configuration: required; lineage/logging/object/custom_object/network/tracing/rum/llm/agent_monitor/security/keyevent/metric/profiling/dialtesting/cloud_billing; billing is a legacy compatibility value. Modification can change the category, and the script, source, and extend need to be checked together.
content.source array Saved configuration: optional, default []. Omitting it on modification removes all source relationships. Sources containing * or ? do not participate in the exact uniqueness conflict check, and runtime behavior for all matches is not guaranteed; regular exact sources cannot be occupied by other non-deleted Pipelines within the same category/type. For rum/llm create/modify, this array is ignored; use extend.appID and measurement instead.
content.source[] string Saved configuration: a non-empty string is recommended; the array is not strictly validated item by item; do not mix unrelated data domains.
content.content string Saved configuration: required base64 string; must be non-empty after decoding on creation. The decoded script full text must simultaneously satisfy UI character count ≤1048576 and UTF-8 bytes ≤1048576; BMP non-ASCII counts as 2, supplementary characters count as 4. If either limit is exceeded, ft.ContextExceedLimit is returned. Saving synchronously performs compilation without samples and checks references to enabled scripts in the same category; success does not mean real-data debugging passed or that it has taken effect.
content.testData string Saved configuration: declared optional, but if omitted on creation, the controller decodes None and may return InvalidBase64, so always explicitly provide W10= or an empty string. If omitted on modification, it is restored to an empty string. Public add/modify only accept an empty string, or a value that strictly base64-decodes to empty/JSON array; a single object cannot be encoded directly. Array members are recommended to be strings or objects; numeric values/null may cause 500 in the legacy per-item length validation; the historical limit for each item is about 20480 (objects by serialized object memory size, strings by historical weighted length), not the script's 1 MiB limit.
content.dataType string Saved configuration: optional, default line_protocol; supports line_protocol/json/message. Omitting it on modification restores line_protocol; it is not category. Although an empty string is declared compatible, explicitly select a supported value.
content.asDefault integer Saved configuration: optional, default 0; recommended to provide only 0/1. If a default already exists and isForce is not set, HTTP 200 returns a confirm array, and the target configuration for this request is not saved; do not treat it as a successful creation/modification.
content.enableByLogBackup integer Saved configuration: optional, default 0; 0/1 recommended. Setting this flag does not guarantee that existing forwarded data will be automatically rerun.
content.extend json Saved configuration: optional, default {}; modification replaces the entire value without merging. rum/llm use appID × measurement combinations to generate source relationships; unknown subfields are rejected by public validation.
content.extend.appID array Saved configuration: for rum/llm, provide a non-empty array together with measurement; if both are empty, there can be no dedicated source; if appID is provided without measurement, a missing parameter error is reported.
content.extend.measurement array Saved configuration: for rum/llm, forms Cartesian combinations with appID; if measurement is provided but appID is absent, a missing parameter error is reported; saving does not verify that every application/measurement actually has data.
content.extend.loggingIndex string Saved configuration: optional log index echo field; no value is filled by default; if omitted on modification, it is cleared with extend; it is not the source array.
content.extend.ifAiCreate boolean Saved configuration: optional echo; does not trigger an AI task.
content.extend.aiTargetStructure string Saved configuration: optional string, saved and echoed only; this API does not generate a script.
content.extend.exampleSource string Saved configuration: optional echo; does not replace source association.
content.extend.exampleType string Saved configuration: optional echo string; the server does not provide a fixed enum.
content.extend.appID[] string Saved configuration: a non-empty string is recommended.
content.extend.measurement[] string Saved configuration: a non-empty string is recommended.
content.configVersion integer Current configuration version, initially 1; increments when the configuration actually changes; enable/disable is not a configuration snapshot field.
content.configVersionAt integer Time when this configuration version took effect, Unix seconds.
content.configVersionOperator string Identity of the operator for this version.
content.configVersionSource string Source such as openapi/console/history/workspace_restore/legacy/system.
content.configVersionAction string Such as create/modify/import/official_clone/current_clone/history_restore/history_clone/default_replace/baseline.
content.configVersionSourceInfo object Source action information; {} when there is no source; fields may be omitted depending on the action.
content.configVersionSourceInfo.templateName string Name of the source template for official clone.
content.configVersionSourceInfo.pipelineUUID string Source Pipeline UUID.
content.configVersionSourceInfo.configVersion integer Source configuration version number.
content.configVersionSourceInfo.pipelineHistoryUUID string Source history UUID for history clone/restore.
content.configVersionSourceInfo.replacedByName string New file name triggered by default replacement.
content.configVersionSourceInfo.replacedByPipelineUUID string Pipeline UUID triggered by default replacement.
content.declaration object Public declaration.
{
  "code": 200,
  "content": {
    "id": 100,
    "uuid": "pl_example",
    "workspaceUUID": "wksp_example",
    "name": "production_parser",
    "type": "local",
    "category": "logging",
    "content": "YWRkX2tleSgiZW52IiwgInByb2R1Y3Rpb24iKQ==",
    "testData": "W3sibWVzc2FnZSI6ImV4YW1wbGUgbG9nIn1d",
    "dataType": "json",
    "asDefault": 0,
    "enableByLogBackup": 0,
    "extend": {
      "loggingIndex": "default"
    },
    "isSysTemplate": 0,
    "isCustomSysTemp": 0,
    "language": "",
    "status": 0,
    "creator": "wsak_example",
    "updator": "wsak_example",
    "createAt": 1785427200,
    "updateAt": 1785427200,
    "deleteAt": -1,
    "configVersion": 1,
    "configVersionAt": 1785427200,
    "configVersionOperator": "wsak_example",
    "configVersionSource": "openapi",
    "configVersionAction": "create",
    "configVersionSourceInfo": {},
    "source": [
      "nginx"
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
404 ft.NotFoundPipelineCfg The Pipeline/Pipeline history in this Workspace does not exist, has been deleted, or its main configuration has been deleted The specified Pipeline configuration was not found Obtain the UUID again from the current list/history list.
500 ft.InternalServerError Configuration read, identity data, or response encoding failed Internal error Verify the UUID and saved data, retry later, and provide the traceId if the failure persists.

Feedback

Is this page helpful?