Queries the evaluation results of rules for a resource from the resource dimension.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:ListResourceEvaluationResults |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
No |
The resource type. For information about how to obtain the resource type, see ListDiscoveredResources. |
ACS::RAM::User |
| ResourceId |
string |
No |
The resource ID. For information about how to obtain the resource ID, see ListDiscoveredResources. |
23642660635396**** |
| RiskLevel |
integer |
No |
The risk level of the rule. Valid values:
|
1 |
| SortBy |
string |
No |
By default, no value is passed. Currently supported: |
LastNonCompliantRecordTimestamp-Asc |
| ComplianceType |
string |
No |
The compliance evaluation result. Valid values:
Valid values:
|
NON_COMPLIANT |
| NextToken |
string |
No |
If the request is truncated, use |
IWBjqMYSy0is7zSMGu16**** |
| MaxResults |
integer |
No |
The maximum number of entries to return in a single request. Valid values: 1 to 100. |
10 |
| Region |
string |
No |
The region ID of resource ownership. For example, For information about how to obtain the region ID of resource ownership, see ListDiscoveredResources. |
global |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
None. |
||
| RequestId |
string |
The request ID. |
25C89DDB-BB79-487D-88C3-4A561F21EFC4 |
| EvaluationResults |
object |
The resource evaluation results. |
|
| NextToken |
string |
The token used to query the next page. |
IWBjqMYSy0is7zSMGu16**** |
| MaxResults |
integer |
The maximum number of entries returned in a single request. |
10 |
| EvaluationResultList |
array<object> |
The list of resource evaluation results. |
|
|
array<object> |
None. |
||
| RiskLevel |
integer |
The risk level of the rule. Valid values:
|
1 |
| ComplianceType |
string |
The compliance evaluation result. Valid values:
|
NON_COMPLIANT |
| ResultRecordedTimestamp |
integer |
The timestamp when the resource evaluation result was generated. Unit: milliseconds. |
1624932227595 |
| Annotation |
string |
The supplementary information about the non-compliant resource. The following information may be included:
|
{\"configuration\":\"false\",\"desiredValue\":\"True\",\"operator\":\"StringEquals\",\"property\":\"$.LoginProfile.MFABindRequired\"} |
| ConfigRuleInvokedTimestamp |
integer |
The timestamp when the rule was triggered to perform evaluation. Unit: milliseconds. |
1624932227157 |
| InvokingEventMessageType |
string |
The trigger mechanism of the rule. Valid values:
|
ScheduledNotification |
| EvaluationResultIdentifier |
object |
The identifier of the resource evaluation result. |
|
| OrderingTimestamp |
integer |
The timestamp displayed on the timeline. Unit: milliseconds. |
1624932227157 |
| EvaluationResultQualifier |
object |
The resource information in the evaluation result. |
|
| ConfigRuleArn |
string |
The Alibaba Cloud Resource Name (ARN) of the rule. |
acs:config::100931896542****:rule/cr-7f7d626622af0041**** |
| ResourceType |
string |
The resource type. |
ACS::RAM::User |
| ConfigRuleName |
string |
The rule name. |
ram-user-mfa-check |
| ResourceId |
string |
The resource ID. |
23642660635396**** |
| ConfigRuleId |
string |
The rule ID. |
cr-7f7d626622af0041**** |
| ResourceName |
string |
The resource name. |
Alice |
| RegionId |
string |
The region ID of resource ownership. |
global |
| IgnoreDate |
string |
The automatic recovery date for the ignored evaluation result, in the format of YYYY-MM-DD. An empty value indicates that the result will not be automatically recovered and must be manually recovered. |
2022-06-01 |
| RemediationEnabled |
boolean |
Indicates whether remediation is enabled. Valid values:
|
true |
| EvaluationId |
string |
The unique ID of the evaluation result. |
00000089-4e0d-58b5-a96a-8e54112110f3 |
| LastNonCompliantRecordTimestamp |
integer |
The start time of the most recent non-compliant status, expressed as a UNIX timestamp in milliseconds. |
1744696393000 |
Examples
Success response
JSON format
{
"RequestId": "25C89DDB-BB79-487D-88C3-4A561F21EFC4",
"EvaluationResults": {
"NextToken": "IWBjqMYSy0is7zSMGu16****",
"MaxResults": 10,
"EvaluationResultList": [
{
"RiskLevel": 1,
"ComplianceType": "NON_COMPLIANT",
"ResultRecordedTimestamp": 1624932227595,
"Annotation": "{\\\"configuration\\\":\\\"false\\\",\\\"desiredValue\\\":\\\"True\\\",\\\"operator\\\":\\\"StringEquals\\\",\\\"property\\\":\\\"$.LoginProfile.MFABindRequired\\\"}",
"ConfigRuleInvokedTimestamp": 1624932227157,
"InvokingEventMessageType": "ScheduledNotification",
"EvaluationResultIdentifier": {
"OrderingTimestamp": 1624932227157,
"EvaluationResultQualifier": {
"ConfigRuleArn": "acs:config::100931896542****:rule/cr-7f7d626622af0041****",
"ResourceType": "ACS::RAM::User",
"ConfigRuleName": "ram-user-mfa-check",
"ResourceId": "23642660635396****",
"ConfigRuleId": "cr-7f7d626622af0041****",
"ResourceName": "Alice",
"RegionId": "global",
"IgnoreDate": "2022-06-01"
}
},
"RemediationEnabled": true,
"EvaluationId": "00000089-4e0d-58b5-a96a-8e54112110f3",
"LastNonCompliantRecordTimestamp": 1744696393000
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | You are not authorized to perform this operation. |
| 404 | CloudConfigServiceRoleNotExisted | The CloudConfigServiceRole does not exist. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | The request has failed due to a temporary failure of the server. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.