查询基线二级列表
更新时间 2025-12-25 11:48:16
最近更新时间: 2025-12-25 11:48:16
接口功能介绍
用户执行基线检测后,展示具体基线检测数据。主要展示元素:当前检测基线的风险项、无效项、通过项、服务器信息等
接口约束
此功能为收费功能。确认已经购买系统配额,并且开启基线扫描配置。如果没有购买配额,可按照页面提示进行购买。如果没有开启防护,请在服务器列表页开启机器防护
URI
POST /v1/sca/event/secondLevel//
路径参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| pageSize | 是 | Integer | |||
| currentNum | 是 | Integer |
Query参数 无
请求参数
请求头header参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| Content-Type | 是 | String | Content-Type | application/json |
请求体body参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| scaRuleId | 是 | Integer | 基线策略id | 1 | |
| agentGuid | 否 | String | agentGuid | test-agent-guid | |
| custName | 否 | String | 主机名称 | test-cust-name | |
| agentIp | 否 | String | 服务器IP | 192.168.0.1 | |
| scaId | 是 | Integer | 基线模板id | 1 |
响应参数
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| error | String | 返回码 | ||
| CTCSSCN_000000:成功 | ||||
| CTCSSCN_000001:失败 | ||||
| CTCSSCN_000003:用户未签署协议,安全卫士系统无法正常使用 | ||||
| CTCSSCN_000004:鉴权错误 | ||||
| CTCSSCN_000005:用户没有付费版配额,功能不可用 | CTCSSCN_000000 | |||
| message | String | 返回信息 | success | |
| returnObj | Object | 返回对象 | returnObj | |
| traceId | String | traceId | asaadasd11111 | |
| statusCode | String | 状态码 200-成功 | 200 | |
| 表 returnObj |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| baseScaMongoDtoPageInfo | Object | 分页查询结果 | baseScaMongoDtoPageInfo | |
| 表 baseScaMongoDtoPageInfo |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| total | Integer | 总数 | 100 | |
| list | Array of Objects | 结果集 | list | |
| pageNum | Integer | 当前页 | 1 | |
| pageSize | Integer | 每页的数量 | 10 | |
| 表 list |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| id | String | 业务id 一级列表[基线模板文件名] 二级列表[agentGuid] 三级列表[检测id] | Ctyun_Linux_Benchmark_Template.json | |
| failed | Integer | 检测项未通过数 | 1 | |
| passed | Integer | 检测项通过数 | 1 | |
| totalChecks | Integer | 检测项总数 | 1 | |
| strategyId | Integer | 策略id | 1 | |
| timestamp | String | 扫描时间 | 2020-01-01 00:00:00 | |
| scaId | Integer | 基线模板id | 1 | |
| agentIp | String | 私有ip | 192.168.0.1 | |
| custName | String | 主机名称 | test-cust-name | |
| displayName | String | 实例名称 | test-display-name | |
| agentGuid | String | agentGuid | test-agent-guid | |
| riskInfo | Array of Objects | 风险信息,按等级分类统计 | [{"riskLevel":1,"riskCount":1}] | riskInfo |
| 表 riskInfo |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| riskLevel | Integer | 风险等级 1-低危 2-中危 3-高危 | 1 | |
| riskCount | Integer | 风险数量 | 1 |
枚举参数
无
请求示例
请求url
无
请求头header
{"Content-Type": "application/json"}
请求体body
{"scaRuleId": 1, "agentGuid": "test-agent-guid", "custName": "test-cust-name", "agentIp": "192.168.0.1", "scaId": 1}
响应示例
{"message": "success", "traceId": "asaadasd11111", "statusCode": "200", "error": "CTCSSCN_000000", "returnObj": {"baseScaMongoDtoPageInfo": {"total": 100, "list": [{"id": "Ctyun_Linux_Benchmark_Template.json", "failed": 1, "passed": 1, "totalChecks": 1, "strategyId": 1, "timestamp": "2020-01-01 00:00:00", "scaId": 1, "agentIp": "192.168.0.1", "custName": "test-cust-name", "displayName": "test-display-name", "agentGuid": "test-agent-guid", "riskInfo": [{"riskLevel": 1, "riskCount": 1}]}], "pageNum": 1, "pageSize": 10}}}
状态码
请参考 状态码
错误码
请参考 错误码