Import One or Multiple Blacklists¶
POST /api/v1/blacklist/import
Overview¶
Import one or multiple blacklists
Body Request Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
blacklists | array | Yes | List of blacklists Allow null: False |
blacklistType | string | Yes | Used to distinguish whether the import is from the logging menu or the management menu Example: logging Optional values: ['logging', 'all'] |
Additional Parameter Notes¶
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