接口功能介绍
用户执行基线检测后,展示具体基线包含的检测项通过情况。
接口约束
此功能为收费功能。请您确认已经购买服务器安全卫士配额,并且开启防护。如果没有购买配额,可按照页面提示进行购买。如果没有开启防护,请在服务器列表页开启防护。
URI
POST /v1/sca/event/thirdLevel/{currentNum}/{pageSize}
路径参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
currentNum | 是 | Integer | 列表当前页 | 1 | |
pageSize | 是 | Integer | 列表每页记录数 | 10 |
Query参数
无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
userid | 是 | String | 用户id | 3416ab34d51e43bd97bc32b23ffbb443 | |
accountid | 是 | String | 账户id | 9e471e00e1c6485192b4478c96a14254 | |
regionid | 是 | String | 资源池id | 100054c0416811e9a6690242ac110002 | |
accessKey | 是 | String | 鉴权公钥(安全卫士系统提供) | 18ee9b6b63e411e8b4a7186590d96509 | |
contentMD5 | 是 | String | 参数MD5值。默认使用空字符("")计算 | 1B2M2Y8AsgTpgAmY7PhCfg== | |
requestDate | 是 | String | 请求时间 | Mon, 29 Aug 2022 00:59:26 UTC | |
hmac | 是 | String | 使用HMAC算法生成信息摘要。HMAC原始信息中需要的字段:使用HMAC加密是,需要密钥和待加密消息。 1.密钥使用接口方提供的secretKey,作为加密密钥。 2.待加密消息:contentMD5、requestDate 、servicePath;三个部分通过"\n"进行连接。连接顺序contentMD5\nrequestDate\nservicePath: | mTOyK30c+4Poit2857iXCb8N7Qc= | |
urlType | 否 | String | 请求地址类型。EOPAPI(默认),CTAPI,API | EOPAPI |
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
scaRuleId | 是 | Integer | 基线策略Id | 1 | |
scaId | 是 | Integer | 基线id | 9 | |
scanId | 是 | 扫描ID | 扫描ID,二级列表返回 | 1606786530 | |
scaStatus | 否 | Integer | 基线状态,1:通过,2:未通过,3:失败 | 1 |
响应参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
code | 是 | String | 返回码。取值范围: 0:成功。 -1:失败。 -3:用户未签署协议,安全卫士系统无法正常使用。 -4:鉴权错误。 -5:用户没有付费版配额,功能不可用。 | 0 | |
message | 是 | String | 返回信息 | 成功 | |
data | 是 | Object | 返回对象 | ScaEventResponse |
表baseScaMongoDtoPageInfo
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
pageNum | 是 | Integer | 当前页 | 1 | |
pageSize | 是 | Integer | 每页记录数 | 10 | |
pages | 是 | Integer | 总页数 | 2 | |
total | 是 | Integer | 总记录数 | 20 | |
isFirstPage | 是 | boolean | 是否为首页 | false | |
isLastPage | 是 | boolean | 是否为末页 | false | |
list | 是 | Object | 基线列表 | list |
表list
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
checkId | 是 | String | 检测项Id | 1 | |
white | 是 | boolean | 是否加白。false:未加白,true:加白 | false | |
title | 是 | String | 检测项名称 | 2 | |
osType | 是 | String | 操作系统类型 | ||
timestamp | 是 | String | 最后检测时间 | 2022-05-26 16:55:50 |
请求示例
请求头header
{
"userid": "3416ab34d51e43bd97bc32b23ffbb443",
"accountid": "9e471e00e1c6485192b4478c96a14254",
"regionid": "100054c0416811e9a6690242ac110002",
"accessKey": "18ee9b6b63e411e8b4a7186590d96509",
"contentMD5": "1B2M2Y8AsgTpgAmY7PhCfg==",
"hmac": "mTOyK30c+4Poit2857iXCb8N7Qc=",
"requestDate": "Mon, 29 Aug 2022 00:59:26 UTC"
}
请求体body
{
"scanId":1606786530,
"scaId":9,
"scaRuleId":"230"
}
响应示例
{
"code": "0",
"message": "查询成功!",
"data": {
"total": 71,
"list": [
{
"id": "61dd216eb3aa31714094dfde",
"checkId": "14551",
"white": false,
"title": "Ensure 'Turn off Internet download for Web publishing and online ordering wizards' is set to 'Enabled'",
"result": null,
"name": "测试"
},
{
"id": "61dd216eb3aa31714094dfdd",
"checkId": "14549",
"white": false,
"title": "Ensure 'Configure registry policy processing: Do not apply during periodic background processing' is set to 'Enabled: FALSE'",
"result": null,
"name": "测试"
},
{
"id": "61dd216eb3aa31714094dfdc",
"checkId": "14550",
"white": false,
"title": "Ensure 'Turn off downloading of print drivers over HTTP' is set to 'Enabled'",
"result": null,
"name": "测试"
},
{
"id": "61dd216eb3aa31714094dfdb",
"checkId": "14548",
"white": false,
"title": "Ensure 'MSS: (WarningLevel) Percentage threshold for the security event log at which the system will generate a warning' is set to 'Enabled: 90% or less'",
"result": null,
"name": "测试"
},
{
"id": "61dd216eb3aa31714094dfda",
"checkId": "14547",
"white": false,
"title": "Ensure 'MSS: (ScreenSaverGracePeriod) The time in seconds before the screen saver grace period expires (0 recommended)' is set to 'Enabled: 5 or fewer seconds'",
"result": null,
"name": "测试"
},
{
"id": "61dd216eb3aa31714094dfd9",
"checkId": "14546",
"white": false,
"title": "Ensure 'MSS: (SafeDllSearchMode) Enable Safe DLL search mode (recommended)' is set to 'Enabled'",
"result": null,
"name": "测试"
},
{
"id": "61dd216eb3aa31714094dfd8",
"checkId": "14545",
"white": false,
"title": "Ensure 'MSS: (DisableIPSourceRouting) IP source routing protection level (protects against packet spoofing)' is set to 'Enabled: Highest protection, source routing is completely disabled'",
"result": null,
"name": "测试"
},
{
"id": "61dd216eb3aa31714094dfd7",
"checkId": "14544",
"white": false,
"title": "Ensure 'MSS: (DisableIPSourceRouting IPv6) IP source routing protection level (protects against packet spoofing)' is set to 'Enabled: Highest protection, source routing is completely disabled'",
"result": null,
"name": "测试"
},
{
"id": "61dd216eb3aa31714094dfd6",
"checkId": "14543",
"white": false,
"title": "Ensure 'MSS: (AutoAdminLogon) Enable Automatic Logon (not recommended)' is set to 'Disabled'",
"result": null,
"name": "测试"
},
{
"id": "61dd216eb3aa31714094dfd5",
"checkId": "14542",
"white": false,
"title": "Ensure Winpcap packet filter driver is not present",
"result": "passed",
"name": "测试"
}
],
"pageNum": 1,
"pageSize": 10,
"size": 0,
"startRow": 0,
"endRow": 0,
"pages": 8,
"prePage": 0,
"nextPage": 0,
"isFirstPage": false,
"isLastPage": false,
"hasPreviousPage": false,
"hasNextPage": false,
"navigatePages": 0,
"navigatepageNums": null,
"navigateFirstPage": 0,
"navigateLastPage": 0
}
}
状态码
状态码 | 描述 |
200 | 表示请求成功。 |
错误码
请参考错误码说明。