Enables a rule in Cloud Config. After a rule is enabled, Cloud Config automatically evaluates the compliance of a resource based on the trigger mechanism of the rule.
Operation description
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ConfigRuleIds | string | Yes | The rule ID. Separate multiple rule IDs with commas (,). | cr-2da35180a8d1008e****,cr-2da35180a8d1008e**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "61C1A88F-D163-40DF-84A6-F200229F37B2",
"OperateRuleResult": {
"OperateRuleItemList": [
{
"ErrorCode": "ConfigRuleStatusNotInActive",
"Success": true,
"ConfigRuleId": "cr-2da35180a8d1008e****"
}
]
}
}
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.ConfigRuleIds.SizeExceed | The maximum number of ConfigRuleIds cannot exceed 20. | The maximum number of ConfigRuleIds cannot exceed 20. |
400 | ConfigRuleStatusNotInActive | The status of the config rule is not inactive. | The status of the config rule is not inactive. |
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history