Import¶
POST /api/v1/blacklist/import
Overview¶
Import one or multiple blacklists
Body Request Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
blacklists | array | Y | Blacklist list Allow empty: False |
blacklistType | string | Y | Used to distinguish whether the import is from the LOG menu or the Manage menu Example: logging Optional values: ['logging', 'all'] |
Additional Parameter Explanation¶
Request Example¶
curl 'https://openapi.guance.com/api/v1/blacklist/import' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"blacklists":[{"filters":[{"condition":"and","name":"HOST","operation":"in","value":["127.0.0.1"]}],"source":"kodo-log","type":"logging"}],"blacklistType":"all"}' \
--compressed