Import¶
POST /api/v1/pipeline/import
Overview¶
Import one or multiple Pipelines
Body Request Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
pipelines | array | Y | Pipeline list Can be empty: False |
isForce | boolean | When specific types have defaults, whether to replace them Can be empty: False |
|
pipelineType | string | Y | Used to distinguish if the import is from the Logs menu or the Management menu Example: logging Optional values: ['logging', 'all'] |
Additional Parameter 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