Manually executes the remediation for a specified rule.
Operation description
This topic provides an example on how to manually execute remediation for the rule cr-8a973ac2e2be00a2****. The response shows that the remediation is executed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:StartRemediation |
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 ListConfigRules. |
cr-8a973ac2e2be00a2**** |
| ResourceId |
string |
No |
The resource ID for single-resource remediation. Example: vpc-xxx. |
vpc-xxx |
| ResourceType |
string |
No |
The resource type for single-resource remediation. Example: ACS::VPC::VPC. |
ACS::VPC::VPC |
| ResourceRegionId |
string |
No |
The region ID of the resource for single-resource remediation. Example: cn-hangzhou. |
cn-hangzhou |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| 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 | RemediationTemplateNotExist | The remediation template does not exist or is invalid. | The remediation template does not exist or is invalid. |
| 400 | RemediationInputParamInConsistentWithRule | The remediation parameter does not match the rule parameter. | The remediation parameter does not match the rule parameter. |
| 403 | NoPermissionCreateRemediationSLR | No permission to create service linked role: AliyunServiceRoleForConfigRemediation. | You have no permission to create the service-linked role: AliyunServiceRoleForConfigRemediation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.