Ignores one or more non-compliant resources that are evaluated by a rule in an account group.
After you ignore a non-compliant resource that is evaluated by a rule in an account group, the resource is still evaluated by the rule, but the compliance evaluation result becomes Ignored.
The sample request in this topic shows you how to ignore thelb-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
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | IgnoreAggregateEvaluationResults |
The operation that you want to perform. Set the value to IgnoreAggregateEvaluationResults. |
ConfigRuleId | String | Yes | cr-7e72626622af0051**** |
The ID of the rule. For more information about how to obtain the ID of a rule, see ListAggregateConfigRules. |
Resources | Array | Yes |
The resources to be ignored. |
|
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. |
Reason | String | No | No compliance evaluation is required for the resource. |
The reason why you ignore the resource. |
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0132CBF2-0B0B-59F2-9E84-07B38267BC32 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=IgnoreAggregateEvaluationResults
&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
<IgnoreAggregateEvaluationResultsResponse>
<RequestId>0132CBF2-0B0B-59F2-9E84-07B38267BC32</RequestId>
</IgnoreAggregateEvaluationResultsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "0132CBF2-0B0B-59F2-9E84-07B38267BC32"
}
Errors codes
HTTP status code | Errors 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.