本介面用於試運行事前合規預檢的規則。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:DryRunConfigRule |
none |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| 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"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。