全部產品
Search
文件中心

Cloud Config:資源不合規事件內容樣本

更新時間:Jun 04, 2025

通過本文您可以瞭解配置審計的資源不合規事件投遞到Log ServiceSLS的內容樣本和主要參數說明。

內容樣本

在單帳號模式下,阿里雲帳號120886317861****中ECS執行個體未使用指定鏡像的不合規事件投遞到Log ServiceSLS,內容樣本如下:

{
  "annotation": {
    "configuration": "aliyun_3_x64_20G_alibase_20250117.vhd",
    "desiredValue": "03333",
    "operator": "StringIn",
    "property": "$.ImageId"
  },
  "riskLevel": "Warning",
  "dataType": "NonCompliantNotification",
  "evaluationResultIdentifier": {
    "orderingTimestamp": 1748917125166,
    "evaluationResultQualifier": {
      "resourceId": "i-2ze1j7ocdg95bd5z4p**",
      "configRuleName": "ECS執行個體使用指定鏡像",
      "sourceIdentifier": "ecs-instance-imageId-check",
      "configRuleId": "cr-5a8f4fbef2bc00e5aa**",
      "captureTime": 1748917125166,
      "resourceName": "launch-advisor-20250530",
      "compliancePackId": "cp-5a8f4fbef2bc00e5aa**",
      "configRuleArn": "acs:config::141339776561****:rule/cr-5a8f4fbef2bc00e5aa**",
      "regionId": "cn-beijing",
      "resourceArn": "acs:ecs:cn-beijing:141339776561****:instance/i-2ze1j7ocdg95bd5z4p**",
      "resourceGroupId": "rg-acfmykd63gtpfpa",
      "resourceOwnerId": 1413397765616316,
      "resourceType": "ACS::ECS::Instance"
    }
  },
  "eventType": "ResourceCompliance",
  "invokingEventMessageType": "Manual",
  "complianceType": "NON_COMPLIANT",
  "accountId": "141339776561****",
  "lastNonCompliantRecordTimestamp": "1748916884628",
  "requestId": "2e05d4cf-37e4-4a41-bff2-8f1932bf9a**",
  "eventName": "NonCompliant",
  "notificationCreationTime": "1748917125362"
}

參數說明

資源不合規事件投遞到Log ServiceSLS的主要參數說明如下表所示。

參數

說明

accountId

資源歸屬的帳號ID。配置審計支援如下帳號類型:

  • 單帳號:未被管理帳號加入資來源目錄的獨立的阿里雲帳號ID。

  • 多帳號:管理帳號ID或成員ID。

annotation

資源不合規描述資訊。

complianceType

合規類型。取值為NON_COMPLIANT(不合規)。

dataType

Log ServiceSLS的接收內容。取值:

  • ConfigurationItemChangeNotification:資源配置變更歷史。

  • NonCompliantNotification:資源不合規事件。

evaluationResultIdentifier

資源合規評估的詳細資料。

eventName

事件名稱。取值為NonCompliant(資源不合規事件)。

eventType

事件類型。取值:

  • ResourceChange:資源配置變更歷史事件。

  • ResourceCompliance:資源不合規事件。

invokingEventMessageType

規則的觸發機制。取值:

  • ScheduledNotification:周期執行觸發。

  • ConfigurationItemChangeNotification:配置變更通知。

  • Manual:手動執行。

notificationCreationTime

建立通知的時間戳記。

riskLevel

規則風險等級。取值:

  • Info:低風險。

  • Warning:中風險。

  • Critical:高風險。