获取治理检测结果和状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
governance:ListEvaluationResults |
get |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
AccountId |
integer |
否 |
成员账号 ID。该参数仅适用于多账号检测模式。 |
176618589410**** |
RegionId |
string |
否 |
地域 ID。 |
cn-hangzhou |
Filters |
array |
否 |
过滤条件。 |
|
object |
否 |
过滤条件。 |
||
Key |
string |
否 |
过滤条件键。取值:
|
ResourceId |
Values |
array |
否 |
过滤条件值列表。 |
|
string |
否 |
过滤条件值。 |
c191**************b4f |
|
SnapshotId |
string |
否 |
检测快照 ID。 |
es-bp1r************** |
Scope |
string |
否 |
治理成熟度检测范围。取值:
|
ResourceDirectory |
LensCode |
string |
否 |
专项检测代码。取值:
|
basic |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
返回结果。 |
||
AccountId |
integer |
成员账号 ID。 |
176618589410**** |
RequestId |
string |
请求 ID。 |
BD57329E-131A-59F4-8746-E1CD8D7B**** |
Results |
object |
检测结果,包含整体检测状态以及子项检测结果。 |
|
EvaluationTime |
string |
整体检测结束时间(UTC 时间)。 |
2023-12-13T03:35:00Z |
MetricResults |
array |
检测结果。 |
|
object |
检测结果。 |
||
ErrorInfo |
object |
错误信息。 说明
当 |
|
Code |
string |
错误码。 |
EcsInsightEnableFailed |
Message |
string |
错误信息。 |
Unable to enable ECS Insight due to a server error. |
EvaluationTime |
string |
单个检测项检测结束时间(UTC 时间)。 |
2023-12-13T03:34:02Z |
Id |
string |
检测项 ID。 |
r7xdcu**** |
ResourcesSummary |
object |
检测项资源评估汇总。 |
|
NonCompliant |
integer |
不合规资源数量。 |
2 |
Result |
number |
检测项资源合规率。 |
0.67 |
Risk |
string |
检测风险等级。取值:
|
Error |
Status |
string |
单个检测项检测状态。取值:
|
Running |
AccountSummary |
object |
检测项账号评估汇总。 |
|
NonCompliant |
integer |
不合规账号数量。 |
1 |
Status |
string |
整体检测状态。取值:
|
Running |
TotalScore |
number |
总体分数。 |
0.6453 |
示例
正常返回示例
JSON
格式
{
"AccountId": 0,
"RequestId": "BD57329E-131A-59F4-8746-E1CD8D7B****",
"Results": {
"EvaluationTime": "2023-12-13T03:35:00Z\n",
"MetricResults": [
{
"ErrorInfo": {
"Code": "EcsInsightEnableFailed",
"Message": "Unable to enable ECS Insight due to a server error."
},
"EvaluationTime": "2023-12-13T03:34:02Z",
"Id": "r7xdcu****",
"ResourcesSummary": {
"NonCompliant": 2
},
"Result": 0.67,
"Risk": "Error",
"Status": "Running",
"AccountSummary": {
"NonCompliant": 1
}
}
],
"Status": "Running",
"TotalScore": 0.6453
}
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
500 | InternalError | A system error occurred. | 系统错误。 |
404 | InvalidEnterpriseRealName.NotFound | The specified account has not passed enterprise real name verification. Please complete the verification for the account first. | 当前账号未进行企业实名认证,请您先完成企业实名认证。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。