使该规则执行一次评估。
接口说明
本接口仅用于触发规则执行一次评估。如果您需要查看规则的本次评估结果,请调用 ListConfigRuleEvaluationResults 接口。更多信息,请参见 ListConfigRuleEvaluationResults 。
本文将提供一个示例,使规则cr-bdb6626622af0012****执行一次评估。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
config:StartConfigRuleEvaluation |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DryRun |
boolean |
否 |
是否仅预检本次请求。取值:
|
false |
| ClientToken |
string |
否 |
保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。 |
1594295238-f9361358-5843-4294-8d30-b5183fac**** |
| ConfigRuleId |
string |
否 |
规则 ID。 关于如何获取规则 ID,请参见 ListConfigRules 。 |
cr-bdb6626622af0012**** |
| RevertEvaluation |
boolean |
否 |
是否恢复已忽略的评估结果。取值:
|
false |
| CompliancePackId |
string |
否 |
合规包 ID。 关于如何获取合规包 ID,请参见 ListCompliancePacks 。 说明
参数 |
cp-ac16626622af0053**** |
关于公共请求参数的详情,请参见公共参数。
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
C32EEAD7-BF64-5927-977A-AFF9342B7275 |
| Result |
boolean |
规则执行结果。取值:
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "C32EEAD7-BF64-5927-977A-AFF9342B7275",
"Result": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ConfigRuleNotExists | The ConfigRule does not exist. | 此规则不存在。 |
| 400 | NoPermission | You are not authorized to perform this operation. | 您无权执行此操作。 |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | |
| 400 | IdempotentParameterMismatch | The request parameters differ from the previous request with the same ClientToken. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服务不可用。 |
| 503 | IdempotentResultPending | The previous request outcome is unknown. Contact support before submitting another request. | |
| 409 | IdempotentRequestInProgress | The request with the same ClientToken is still being processed. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。