ListAggregateConfigRuleEvaluationResults
Queries the evaluation results of resources by rule in a specified account group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:ListAggregateConfigRuleEvaluationResults |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ComplianceType |
string |
No |
The compliance evaluation result. Valid values:
Valid values:
|
NON_COMPLIANT |
| NextToken |
string |
No |
If the response is truncated, you can use NextToken to initiate a subsequent request to retrieve the remaining results from where the previous response left off. |
IWBjqMYSy0is7zSMGu16**** |
| MaxResults |
integer |
No |
The maximum number of entries to return in a single request. Valid values: 1 to 100. |
10 |
| ConfigRuleId |
string |
No |
The rule ID. For information about how to obtain a rule ID, see ListAggregateConfigRules. |
cr-888f626622af00ae**** |
| AggregatorId |
string |
Yes |
The account group ID. For information about how to obtain an account group ID, see ListAggregators. |
ca-b1e6626622af00cb**** |
| CompliancePackId |
string |
No |
The compliance package ID. For information about how to obtain a compliance package ID, see ListAggregateCompliancePacks. |
cp-f1e3326622af00cb**** |
| Regions |
string |
No |
The regions to which the evaluated resources belong. Separate multiple regions with commas (,). |
cn-shanghai |
| ResourceTypes |
string |
No |
The resource types of the evaluated resources. Separate multiple resource types with commas (,). |
ACS::ECS::Instance |
| ResourceGroupIds |
string |
No |
The resource group IDs to which the evaluated resources belong. Separate multiple resource group IDs with commas (,). |
rg-aek2cqyzvuj**** |
| ResourceAccountId |
integer |
No |
The Alibaba Cloud account ID of the resource owner within the account group. Note
Specify either ResourceAccountId or ResourceOwnerId. We recommend that you use this parameter. |
100931896542**** |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A6662516-D056-4325-B6A7-CD3E89C97C39 |
| EvaluationResults |
object |
The collection of rule evaluation results. |
|
| NextToken |
string |
The token used to retrieve the next page of results. |
IWBjqMYSy0is7zSMGu16**** |
| MaxResults |
integer |
The maximum number of entries per page. |
10 |
| EvaluationResultList |
array<object> |
The list of rule evaluation results. |
|
|
array<object> |
|||
| 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. |
1624869013065 |
| Annotation |
string |
The supplementary information about the non-compliant resource. The following information may be included:
|
{\"configuration\":\"LRS\",\"desiredValue\":\"ZRS\",\"operator\":\"StringEquals\",\"property\":\"$.DataRedundancyType\"} |
| ConfigRuleInvokedTimestamp |
integer |
The timestamp when the rule was triggered to perform evaluation. Unit: milliseconds. |
1624869012713 |
| InvokingEventMessageType |
string |
The trigger mechanism of the rule. Valid values:
|
ScheduledNotification |
| EvaluationResultIdentifier |
object |
The identifier of the rule evaluation result. |
|
| OrderingTimestamp |
integer |
The timestamp displayed on the timeline. Unit: milliseconds. Note
This timestamp indicates when the rule was triggered to perform evaluation, which is the time displayed by the ConfigRuleInvokedTimestamp parameter. |
1624869012713 |
| EvaluationResultQualifier |
object |
The resource information in the rule evaluation result. |
|
| ResourceOwnerId |
integer |
The Alibaba Cloud account ID of the resource ownership. |
173808452267**** |
| ConfigRuleArn |
string |
The ARN of the rule. |
acs:config::100931896542****:rule/cr-888f626622af00ae**** |
| ResourceType |
string |
The resource type. |
ACS::OSS::Bucket |
| ConfigRuleName |
string |
The rule name. |
Enabling zone-redundant storage for OSS buckets |
| ResourceGroupId |
string |
The resource group ID of the resource ownership. |
rg-acfm26cicib**** |
| ConfigRuleId |
string |
The rule ID. |
cr-888f626622af00ae**** |
| ResourceName |
string |
The resource name. |
Bucket-test |
| RegionId |
string |
The region ID of the resource ownership. |
cn-hangzhou |
| CompliancePackId |
string |
The compliance package ID to which the rule belongs. |
cr-7263fd26622af00bc**** |
| IgnoreDate |
string |
The automatic recovery date for the ignored evaluation result, in the format of YYYY-MM-DD. An empty value indicates that automatic recovery is not configured and manual recovery is required. |
2022-06-01 |
| ResourceId |
string |
The resource ID. |
Bucket-test |
| RemediationEnabled |
boolean |
Indicates whether remediation is enabled. Valid values:
|
false |
| 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, as a UNIX timestamp. Unit: milliseconds. |
1744696393000 |
| LastCompliantFixedTimestamp |
integer |
The time when the resource was most recently remediated to a compliant status, as a UNIX timestamp. Unit: milliseconds. This value is not recorded when a new resource or rule is evaluated as compliant for the first time. |
1768788515725 |
Examples
Success response
JSON format
{
"RequestId": "A6662516-D056-4325-B6A7-CD3E89C97C39",
"EvaluationResults": {
"NextToken": "IWBjqMYSy0is7zSMGu16****",
"MaxResults": 10,
"EvaluationResultList": [
{
"RiskLevel": 1,
"ComplianceType": "NON_COMPLIANT",
"ResultRecordedTimestamp": 1624869013065,
"Annotation": "{\\\"configuration\\\":\\\"LRS\\\",\\\"desiredValue\\\":\\\"ZRS\\\",\\\"operator\\\":\\\"StringEquals\\\",\\\"property\\\":\\\"$.DataRedundancyType\\\"}",
"ConfigRuleInvokedTimestamp": 1624869012713,
"InvokingEventMessageType": "ScheduledNotification",
"EvaluationResultIdentifier": {
"OrderingTimestamp": 1624869012713,
"EvaluationResultQualifier": {
"ResourceOwnerId": 0,
"ConfigRuleArn": "acs:config::100931896542****:rule/cr-888f626622af00ae****",
"ResourceType": "ACS::OSS::Bucket",
"ConfigRuleName": "OSS存储空间开启同城冗余存储",
"ResourceGroupId": "rg-acfm26cicib****",
"ConfigRuleId": "cr-888f626622af00ae****",
"ResourceName": "Bucket-test",
"RegionId": "cn-hangzhou",
"CompliancePackId": "cr-7263fd26622af00bc****",
"IgnoreDate": "2022-06-01",
"ResourceId": "Bucket-test"
}
},
"RemediationEnabled": false,
"EvaluationId": "00000089-4e0d-58b5-a96a-8e54112110f3",
"LastNonCompliantRecordTimestamp": 1744696393000,
"LastCompliantFixedTimestamp": 1768788515725
}
]
}
}
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. |
| 400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | The specified aggregator ID does not exist or you are not authorized to use the aggregator. |
| 400 | Invalid.CompliancePackId.Value | The specified CompliancePackId does not exist. | The specified compliance pack ID does not exist. |
| 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.