All Products
Search
Document Center

Cloud Config:StartConfigRuleEvaluation

Last Updated:Jul 02, 2024

Re-evaluates the compliance of resources based on a rule or based on all rules in a compliance package.

Operation description

In this example, the cr-9920626622af0035**** rule is used to re-evaluate the compliance of resources.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ConfigRuleIdstringNo

The rule ID.

You can call the ListConfigRules operation to obtain the rule ID.

Note You must configure either the CompliancePackId or ConfigRuleId parameter.
cr-9920626622af0035****
RevertEvaluationbooleanNo

Specifies whether to re-evaluate the ignored non-compliant resource. Valid values:

  • true: re-evaluates the ignored non-compliant resource based on the rule.
  • false (default): does not re-evaluate the ignored non-compliant resource based on the rule.
false
CompliancePackIdstringNo

The compliance package ID.

For more information about how to obtain the ID of a compliance package, see ListCompliancePacks .

Note You must configure either the CompliancePackId or ConfigRuleId parameter.
cp-ac16626622af0053****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D31EEAD7-BF1E-5927-977A-AFF9342A7273
Resultboolean

Indicates whether the operation is successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "D31EEAD7-BF1E-5927-977A-AFF9342A7273",
  "Result": true
}

Error codes

HTTP status codeError codeError messageDescription
400ConfigRuleNotExistsThe ConfigRule does not exist.The rule does not exist.
400NoPermissionYou are not authorized to perform this operation.You are not authorized to perform this operation.
503ServiceUnavailableThe 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 timeSummary of changesOperation
No change history