Reevaluates one or more non-compliant resources that are evaluated by a rule in an account group.

Prerequisites

One or more non-compliant resources that are evaluated by a rule in an account group are ignored.

Usage notes

The sample request in this topic shows you how to reevaluate the lb-hp3a3b4ztyfm2plgm**** non-compliant resource that is evaluated by the cr-7e72626622af0051*** rule in the 120886317861**** member account of the ca-5b6c626622af008f**** account group. The ID of the region in which the resource resides is cn-beijing, and the type of the resource is ACS::SLB::LoadBalancer.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes RevertAggregateEvaluationResults

The operation that you want to perform. Set the value to RevertAggregateEvaluationResults.

ConfigRuleId String Yes cr-7e72626622af0051****

The ID of the rule in the account group.

Resources Array Yes

The resources that are to be reevaluated.

ResourceAccountId Long Yes 120886317861****

The ID of the Alibaba Cloud account to which the resource belongs.

Note The value must be the ID of the current management account or the member account in the account group of the management account.
ResourceType String Yes ACS::SLB::LoadBalancer

The type of the resource.

For more information about how to obtain the type of a resource, see ListAggregateDiscoveredResources.

Region String Yes cn-beijing

The ID of the region in which the resource resides.

For more information about how to obtain the ID of a region in which a resource resides, see ListAggregateDiscoveredResources.

ResourceId String Yes lb-hp3a3b4ztyfm2plgm****

The ID of the resource.

For more information about how to obtain the ID of a resource, see ListAggregateDiscoveredResources.

AggregatorId String Yes ca-5b6c626622af008f****

The ID of the account group.

For more information about how to obtain the ID of an account group, see ListAggregators.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String BB11CBF2-0B0B-59F2-9E84-07B38267AD12

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=RevertAggregateEvaluationResults
&ConfigRuleId=cr-7e72626622af0051****
&Resources=[{"ResourceAccountId":"120886317861****","ResourceType":"ACS::SLB::LoadBalancer","Region":"cn-beijing","ResourceId":"lb-hp3a3b4ztyfm2plgm****"}]
&AggregatorId=ca-5b6c626622af008f****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<RevertAggregateEvaluationResultsResponse>
    <RequestId>BB11CBF2-0B0B-59F2-9E84-07B38267AD12</RequestId>
</RevertAggregateEvaluationResultsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "BB11CBF2-0B0B-59F2-9E84-07B38267AD12"
}

Error codes

HTTP status code Error code Error message Description
400 NoPermission You are not authorized to perform this operation. The error message returned because you are not authorized to perform the specified operation.
400 Invalid.AggregatorId.Value The specified AggregatorId is invalid. The error message returned because the specified account group ID does not exist or you are not authorized to use the account group.
503 ServiceUnavailable The request has failed due to a temporary failure of the server. The error message returned because the service is unavailable.

For a list of error codes, visit the API Error Center.