cURL
curl --request POST \ --url http://127.0.0.1:22100/v1/xdp/blacklist \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "ip": "<string>", "ttl_ms": 2, "reason": "<string>" } '
{ "ok": true, "ip": "<string>", "ttl_ms": 123, "reason": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
IP or CIDR text (for example 203.0.113.7/32).
203.0.113.7/32
x >= 1
Entry added