POST /admin/compliance/tenants/{tid}/readiness/{readiness_id}
针对指定合规标准,评估租户当前配置的认证就绪程度,返回未通过控制项和整改建议
合规管理 - 合规策略 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
tid |
path |
string |
是 |
|
|
|
租户ID |
readiness_id |
path |
string |
是 |
|
|
|
标准ID |
引用的 Schema
dto.DataResponse-service-compliance/internal/handler/dto/ReadinessReportResponse
service-compliance/internal/handler/dto.ControlAssessmentItem
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
control_id |
string |
否 |
pci_8.6.3 |
|
|
current |
object |
否 |
8 |
|
|
name |
string |
否 |
最小密码长度 (单因子) |
|
|
operator |
string |
否 |
gte |
|
|
override_applied |
boolean |
否 |
False |
|
|
parameter |
string |
否 |
password_min_length_sfa |
|
|
reason |
string |
否 |
|
|
|
required |
object |
否 |
12 |
|
|
requirement |
string |
否 |
8.6.3 |
|
|
severity |
string |
否 |
critical |
|
|
source |
string |
否 |
client_supplied |
|
|
state |
string |
否 |
non_compliant |
|
|
service-compliance/internal/handler/dto.ErrorResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
400 |
|
|
message |
string |
否 |
invalid request |
|
|
service-compliance/internal/handler/dto.ParameterGapItem
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
compliant |
boolean |
否 |
False |
|
|
control_ref |
string |
否 |
pci_8.6.3 |
|
|
current |
object |
否 |
8 |
|
|
description |
string |
否 |
最小密码长度 (单因子) |
|
|
operator |
string |
否 |
gte |
|
|
parameter |
string |
否 |
password_min_length_sfa |
|
|
reason |
string |
否 |
|
|
|
required |
object |
否 |
12 |
|
|
severity |
string |
否 |
critical |
|
|
standard |
string |
否 |
pci_dss_v4 |
|
|
state |
string |
否 |
non_compliant |
|
P2(四态):状态词表 compliant / non_compliant / not_assessed / evaluation_error。
compliant=false 不再等于失败:not_assessed / evaluation_error 也非通过,但不算缺口。 |
service-compliance/internal/handler/dto.ReadinessReportResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
assessed_controls |
integer |
否 |
7 |
|
|
compliance_rate |
number |
否 |
77.8 |
|
|
controls |
array of
参见 service-compliance/internal/handler/dto.ControlAssessmentItem |
否 |
|
|
|
error_controls |
integer |
否 |
0 |
|
|
failed_controls |
array of
参见 service-compliance/internal/handler/dto.ParameterGapItem |
否 |
|
|
|
passed_controls |
integer |
否 |
7 |
|
|
ready_for_audit |
boolean |
否 |
False |
|
|
recommendations |
array of
string |
否 |
|
|
|
standard_id |
string |
否 |
pci_dss_v4 |
|
|
standard_name |
string |
否 |
PCI DSS v4.0.1 |
|
|
state |
string |
否 |
not_assessed |
|
P2(四态):缺证据的控制单列 unknown(含来源错误),不算失败;
合规率按已评估控制计算;只有全部控制已测且通过 ready_for_audit 才为 true。 |
total_controls |
integer |
否 |
9 |
|
|
unknown_controls |
integer |
否 |
2 |
|
|