ttl 使用 Go Duration,例如 1h30m。留空表示永久封禁。Authorization: ********************{
"ip": "198.51.100.42",
"ttl": "24h",
"reason": "manual containment after incident triage"
}curl --location '/api/v1/blocked-ips' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"ip": "198.51.100.42",
"ttl": "24h",
"reason": "manual containment after incident triage"
}'{
"data": {
"id": 0,
"ip": "string",
"family": 4,
"reason": "string",
"score": 0,
"expires_at": "2019-08-24T14:15:22.123Z",
"permanent": true,
"source": "manual",
"created_at": "2019-08-24T14:15:22.123Z"
},
"request_id": "req_37b75078-6cbf-48f6-b8f3-3ec81d6fb2e5"
}