Import Pipeline Rules¶
POST /api/v1/pipeline/import
Overview¶
Import one or more Pipeline rules
Body Request Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
pipelines | array | Yes | List of pipelines Allow empty: False |
isForce | boolean | No | Whether to replace when specific types have defaults Allow empty: False |
pipelineType | string | Yes | To distinguish whether the import is from the logging menu or the management menu Example: logging Possible 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