Get governance evaluation results and status.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
governance:ListEvaluationResults |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AccountId |
integer |
No |
Member account ID. This parameter is only applicable to multi-account evaluation mode. |
176618589410**** |
| RegionId |
string |
No |
Region ID. |
cn-hangzhou |
| Filters |
array<object> |
No |
Filter conditions. |
|
|
object |
No |
Filter condition. |
||
| Key |
string |
No |
Filter condition key. Valid values:
|
ResourceId |
| Values |
array |
No |
List of filter condition values. |
|
|
string |
No |
Filter condition value. |
c191**************b4f |
|
| SnapshotId |
string |
No |
Evaluation snapshot ID. |
es-bp1r************** |
| Scope |
string |
No |
Governance maturity evaluation scope. Valid values:
|
ResourceDirectory |
| LensCode |
string |
No |
Special evaluation code. Valid values:
|
basic |
| TopicCode |
string |
No |
Governance topic code. |
IdentityAndAccessManagement |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response result. |
||
| AccountId |
integer |
Member account ID. |
176618589410**** |
| RequestId |
string |
Request ID. |
BD57329E-131A-59F4-8746-E1CD8D7B**** |
| Results |
object |
Evaluation results, including overall evaluation status and sub-item evaluation results. |
|
| EvaluationTime |
string |
Overall evaluation end time (UTC). |
2023-12-13T03:35:00Z |
| MetricResults |
array<object> |
Evaluation results. |
|
|
array<object> |
Evaluation result. |
||
| ErrorInfo |
object |
The error message. Note
This parameter is returned when the value of |
|
| Code |
string |
The error code. |
EcsInsightEnableFailed |
| Message |
string |
The error message. |
Unable to enable ECS Insight due to a server error. |
| EvaluationTime |
string |
The time when the evaluation of the check item was completed. The time is in UTC. |
2023-12-13T03:34:02Z |
| Id |
string |
The ID of the check item. |
r7xdcu**** |
| ResourcesSummary |
object |
A summary of the resource evaluation for the check item. |
|
| NonCompliant |
integer |
The number of non-compliant resources. |
2 |
| Result |
number |
The resource compliance rate for the check item. |
0.67 |
| Risk |
string |
The risk level. Valid values:
|
Error |
| Status |
string |
The evaluation status of the check item. Valid values:
|
Running |
| AccountSummary |
object |
A summary of the account evaluation for the check item. |
|
| NonCompliant |
integer |
The number of non-compliant accounts. |
1 |
| PotentialScoreIncrease |
number |
The potential score increase. |
0.2 |
| AvailableRemediation |
array<object> |
A list of available remediations. |
|
|
object |
|||
| RemediationTemplateId |
string |
The ID of the remediation template. |
|
| Status |
string |
Overall evaluation status. Valid values:
|
Running |
| TotalScore |
number |
Overall score. |
0.6453 |
Examples
Success response
JSON format
{
"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
},
"PotentialScoreIncrease": 0.2,
"AvailableRemediation": [
{
"RemediationTemplateId": ""
}
]
}
],
"Status": "Running",
"TotalScore": 0.6453
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | A system error occurred. | 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. | The specified account has not passed enterprise real-name verification. Please complete the verification for the account first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.