查询指定安全配置项的检查结果
功能介绍
查询指定安全配置项的检查结果
URI
GET /v5/{project_id}/baseline/risk-config/{check_name}/detail
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
租户项目ID |
check_name |
是 |
String |
基线名称 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
enterprise_project_id |
否 |
String |
企业项目ID,查询所有企业项目时填写:all_granted_eps |
standard |
是 |
String |
标准类型,包含如下:
|
host_id |
否 |
String |
主机ID,不赋值时,查租户所有主机 |
limit |
否 |
Integer |
每页数量 |
offset |
否 |
Integer |
偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
x-auth-token |
是 |
String |
用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
severity |
String |
风险等级,包含如下:
|
check_type |
String |
基线类型 |
check_type_desc |
String |
基线描述 |
check_rule_num |
Integer |
检查项总数量 |
failed_rule_num |
Integer |
未通过的检查项数量 |
passed_rule_num |
Integer |
已通过的检查项数量 |
ignored_rule_num |
Integer |
已忽略的检查项数量 |
host_num |
Long |
受影响的服务器的数量 |
请求示例
查询企业项目id为xxx下的基线名称为SSH、标准类型是“云安全实践”标准的配置检测结果列表。
GET https://{endpoint}/v5/{project_id}/baseline/risk-config/SSH/detail?standard=hw_standard&enterprise_project_id=xxx
响应示例
状态码:200
安全配置项的检查结果
{ "check_rule_num" : 17, "check_type_desc" : "This policy checks the basic security configuration items of the SSH service to improve the security of the SSH service.", "failed_rule_num" : 15, "host_num" : 2, "ignored_rule_num" : 1, "passed_rule_num" : 14, "severity" : "Medium" }
状态码
状态码 |
描述 |
---|---|
200 |
安全配置项的检查结果 |
错误码
请参见错误码。