Skip to main content

操作审计列表

操作审计列表

接口描述
  • 通过该接口获取系统中操作审计列表
请求URL
  • http://host/bbm/v2/adapter/bomber/activity/list
请求方式
  • ==GET==
header 请求头参数
参数名必选类型说明示例值及参考API
content-typestringapplication/json
Authorizationstring签名描述Bearer + 登录token
请求参数
参数名必选类型说明示例值及参考API
operator_idstring操作人
db_idint数据库id
starts_atint开始时间
ends_atint结束时间
limtint返回个数 默认10个
请求示例
http://host/bbm/v2/adapter/bomber/activity/list?limit=10

请求参数示例

返回参数说明

  • http_status && status_code 为200 为成功
  • 否则均为失败或者异常
字段字段示例字段说明是否必填
id1主键id
db_id数据id
db_type数据库类型
db_name_info数据库名称
operator_id操作人id
operator_name操作人名称
ip操作人名称
operate_type语句类型 DDL/DCL/DQL/DML等
content内容
risk_status风险sql状态
risk_sql_rules风险sql审核的内容
status状态
sql_duration执行时间
starts_at开始时间
ends_at结束时间
review_user双人复合人ID
review_user_name双人复合人名称
output输出内容
返回示例
{
"status_code": 200,
"code": "",
"message": "",
"detail": "",
"alert": "",
"to_wiki": "",
"data": [
{
"id": 5179410,
"db_type": "oceanbase",
"db_id": 1827,
"db_name_info": "ob-mysql1(root@mysqlt#obcluster@192.168.5.11:2883/mysql)",
"operator_id": 46718,
"operator_name": "zy",
"ip": "127.0.0.1",
"operate_type": "DQL",
"content": "select * from `test`.`duolie`",
"risk_status": "continue",
"risk_sql_rules": [],
"status": "completed",
"sql_duration": "4ms",
"starts_at": 1730601665,
"ends_at": 1730601666,
"review_user": 0,
"review_user_name": "",
"output": "查询返回5条数据"
},
{
"id": 5179409,
"db_type": "oceanbase",
"db_id": 1827,
"db_name_info": "ob-mysql1(root@mysqlt#obcluster@192.168.5.11:2883/mysql)",
"operator_id": 46718,
"operator_name": "zy",
"ip": "127.0.0.1",
"operate_type": "DQL",
"content": "select * from `test`.`duolie`",
"risk_status": "continue",
"risk_sql_rules": [],
"status": "completed",
"sql_duration": "6ms",
"starts_at": 1730601442,
"ends_at": 1730601442,
"review_user": 0,
"review_user_name": "",
"output": "查询返回5条数据"
}
]
}