Manually executes remediation for a specified rule in an account group.
Operation description
This topic provides an example on how to manually execute remediation for the rule cr-6b7c626622af00b4**** in the account group ca-6b4a626622af0012****. The response shows that the remediation is executed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:StartAggregateRemediation |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ConfigRuleId |
string |
Yes |
The rule ID. For information about how to obtain the rule ID, see ListAggregateConfigRules. |
cr-6b7c626622af00b4**** |
| AggregatorId |
string |
Yes |
The account group ID. For information about how to obtain the account group ID, see ListAggregators. |
ca-6b4a626622af0012**** |
| ResourceId |
string |
No |
The resource ID specified for single-resource remediation, such as vpc-xxx. |
vpc-xxx |
| ResourceType |
string |
No |
The resource type specified for single-resource remediation, such as ACS::VPC::VPC. |
ACS::VPC::VPC |
| ResourceRegionId |
string |
No |
The region ID of the resource specified for single-resource remediation, such as cn-hangzhou. |
cn-hangzhou |
| ResourceAccountId |
integer |
No |
The Alibaba Cloud account ID of the resource ownership to execute remediation on. If this parameter is left empty, non-compliant resources of all accounts in the account group are remediated. Note
The account can only be the current enterprise management account or a member account within the current enterprise management account's member accounts. |
100271897542**** |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
C7817373-78CB-4F9A-8AFA-E7A88E9D64A2 |
| Data |
boolean |
Indicates whether the operation is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "C7817373-78CB-4F9A-8AFA-E7A88E9D64A2",
"Data": true
}
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 | 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.