本接口用于试运行事前合规预检的规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
 调试
        
            调试
        
    
授权信息
| 操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 | 
| config:DryRunConfigRule | none | *全部资源 
 | 无 | 无 | 
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
| ConfigurationItem | string | 否 | 资源的完整配置信息 | { "ResourceCreationTime": 1741241360000, "AccountId": 123, "Configuration": { "ResourceGroupId": "", "Memory": 1024, "InstanceChargeType": "PrePaid", "Cpu": 1, "OSName": "Alibaba Cloud Linux 3.2104 LTS 64 bit", "InstanceNetworkType": "vpc", "InnerIpAddress": { "IpAddress": [] }, "ExpiredTime": "2026-05-06T16:00Z", "ImageId": "aliyun_3_x64_20G_alibase_20250117.vhd", "EipAddress": { "AllocationId": "", "IpAddress": "", "InternetChargeType": "" }, "ImageOptions": {}, "Status": "Running", "AdditionalInfo": {}, "HibernationOptions": { "Configured": false } }, "ResourceId": "i-bp1d8kd8ztaynb4c****", "ResourceName": "****", "ResourceStatus": "Running", "Region": "cn-hangzhou", "AvailabilityZone": "cn-hangzhou-h", "ResourceType": "ACS::ECS::Instance", "ResourceDeleted": 1 } | 
| ResourceType | string | 否 | 规则评估的资源类型。 | ACS::ECS::Instance | 
返回参数
| 名称 | 类型 | 描述 | 示例值 | 
| object | Schema of Response | ||
| RequestId | string | 请求 ID。 | C32EEAD7-BF64-5927-977A-AFF9342B**** | 
| RuleConditionContext | string | 规则条件上下文 | { "result":"NON_COMPLIANT", "children":[ { "featureValue":"1", "featureSource":"CONFIGURATION", "result":"NON_COMPLIANT", "desired":"4", "children":[], "operator":"StringEquals", "featurePath":"$.Cpu" } ], "operator":"and" } | 
| ComplianceType | string | 规则的合规类型。取值: 
 | COMPLIANT | 
示例
正常返回示例
JSON格式
{
  "RequestId": "C32EEAD7-BF64-5927-977A-AFF9342B****",
  "RuleConditionContext": "{\n  \"result\":\"NON_COMPLIANT\",\n  \"children\":[\n    {\n      \"featureValue\":\"1\",\n      \"featureSource\":\"CONFIGURATION\",\n      \"result\":\"NON_COMPLIANT\",\n      \"desired\":\"4\",\n      \"children\":[],\n      \"operator\":\"StringEquals\",\n      \"featurePath\":\"$.Cpu\"\n    }\n  ],\n  \"operator\":\"and\"\n}",
  "ComplianceType": "COMPLIANT"
}错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。