版本 2.4.7.20261116085428 · 最新
威胁情报上报记录 intel-reports
本主控向服务商匿名上报威胁情报(自动封禁的高危 IP、上传扫描命中/误报、新出现的文件指纹)的批次记录,每 5 分钟一批;情报共享关闭时不上报。仅管理员可查看。
点击任一接口,右侧显示对应的调用示例。
防护鉴权: 仅管理员1 个接口
鉴权
请求头带 X-API-Key(在「API 密钥」页开通,密钥只在开通时显示一次);也可用登录得到的 Authorization: Bearer 令牌。
X-API-Key
鉴权失败回 401;无权回 403(code 为 insufficient_scope 等)。
约定
分页参数 page(从 1 起)、page_size;排序 sort=字段 或 -字段。
时间一律 RFC 3339(UTC);金额单位为分。
写操作成功回 200/201/204;重复提交按资源唯一键回 409。
GET
/api/v2/intel-reports查询情报上报记录
鉴权: 仅管理员
查询参数
| 字段 | 类型 | 说明 |
|---|---|---|
page | integer | 页码,从 1 开始。 |
page_size | integer | 每页条数。 |
type | IntelReportType | 按类型过滤(ip / upload_hit / false_positive / sha256_report / samples / suspect);不带为全部。 |
威胁情报上报记录对象
| 字段 | 类型 | 说明 |
|---|---|---|
created_at | string | 批次时间。 |
error | string | 失败原因;成功为空串。连续失败时只保留最近一次。 |
id | integer | 记录 ID |
items | integer | 本批条数。 |
result | string | 结果:ok 已送达;failed 没送达(条目留队列下轮补报)。 |
type | IntelReportType | 情报类型:高危 IP / 上传命中 / 管理员标的误报 / 新出现的文件指纹 / 可疑请求样本 / 可疑 IP。 |
返回与错误
成功直接回资源 JSON(HTTP 2xx);失败回 application/problem+json(code、detail,校验失败带 errors);列表为 items + total。
成功
{
"id": 1,
"name": "example"
}列表
{
"items": [
{
"id": 1
}
],
"page": 1,
"page_size": 20,
"total": 1
}失败
{
"code": "validation_failed",
"detail": "请求参数不合法",
"errors": [
{
"code": "required",
"field": "/name",
"message": "name 必填"
}
],
"request_id": "0123456789abcdef",
"status": 422,
"title": "Unprocessable Entity",
"type": "about:blank"
}