Skip to content

Import



POST /api/v1/pipeline/import

Overview

Import one/multiple Pipelines

Body Request Parameters

Parameter Name Type Required Description
pipelines array Y Pipeline list
Allow empty: False
isForce boolean Whether to replace when the specific type has default
Allow empty: False
pipelineType string Y Used to distinguish whether the import is from the logging menu or the management menu
Example: logging
Optional values: ['logging', 'all']

Parameter Additional Notes

Request Example

curl 'https://openapi.guance.com/api/v1/pipeline/import' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"pipelines":[{"asDefault":0,"category":"logging","content":"ZW51bWVyYXRl\n","extend":{},"isDisable":false,"name":"eee","source":["calico-node"],"testData":"W10=\n"}],"pipelineType":"all"}' \
--compressed

Response

{
    "code": 200,
    "content": {
        "fail_count": 0,
        "success_count": 1
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-F1FA4700-68DF-4808-995E-45D6161D67B1"
}

Feedback

Is this page helpful? ×