全部產品
Search
文件中心

Cloud Config:ListCompliancePackTemplates - 查詢合規包模板

更新時間:Aug 25, 2025

查詢配置審計提供的所有合規包模板及其詳細資料。

介面說明

合規包模板是配置審計根據合規情境定製的一組規則的集合。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

CompliancePackTemplateId

string

合規包模板 ID。

ct-5f26ff4e06a300c4****

RuleRiskLevel

integer

合規包中規則模板的風險等級。取值:

  • 1:高風險。

  • 2:中風險。

  • 3:低風險。

2

PageSize

integer

分頁時每頁顯示的資料行數。

取值範圍:1~100。起始值:1。預設值:10。

10

PageNumber

integer

頁碼。

起始值:1。預設值:1。

1

ResourceTypes

string

規則評估的資源類型。輸入該參數時,只返回合規包模板中包括該資源類型的規則。

ACS::ECS::Instance

FilterType

string

查詢過濾欄位。

LAW

關於公用請求參數的詳情,請參見公用參數

返回參數

名稱

類型

描述

樣本值

object

CompliancePackTemplatesResult

object

合規包模板詳情。

PageSize

integer

分頁時每頁顯示的資料行數。

10

PageNumber

integer

頁碼。

1

TotalCount

integer

合規包模板總數。

1

CompliancePackTemplates

array<object>

合規包模板列表。

object

RiskLevel

integer

合規包中規則模板的風險等級。取值:

  • 1:高風險。

  • 2:中風險。

  • 3:低風險。

1

Description

string

合規包描述。

Checks the compliance of Alibaba Cloud resources based on the specific requirements of MLPS 2.0 Level 3.

ConfigRules

array<object>

合規包中預設規則列表。

object

Description

string

規則描述。

If no vulnerabilities that are of the specified type and severity level and to be fixed exist on the running ECS instances that are protected by Security Center, the configuration is considered compliant. This rule does not apply to ECS instances that are not in the running state.

ManagedRuleIdentifier

string

規則模板標識。

ecs-instance-updated-security-vul

ManagedRuleName

string

規則模板名稱。

ecs-instance-updated-security-vul

ConfigRuleParameters

array<object>

規則模板參數資訊。

object

Required

boolean

規則模板中參數是否必填。取值:

  • true:參數必填。

  • false:參數非必填。

true

ParameterName

string

規則模板的參數名稱。

necessity

ParameterValue

string

規則模板的參數值。

asap

RiskLevel

integer

規則模板的風險等級。取值:

  • 1:高風險。

  • 2:中風險。

  • 3:低風險。

2

ControlId

string

法規條例 ID。

說明

僅法規類合規包顯示該參數。

8.1.4.4

ControlDescription

string

法規類條目原文描述,只有法規類合規包包含此資訊。

e) Possible known vulnerabilities should be found and remedied in a timely manner after adequate testing and evaluation.\nf) It shall be able to detect intrusion into important nodes and provide an alarm in case of serious intrusion events.

DefaultEnable

boolean

規則是否支援快速啟用。取值:

  • true:支援。

  • false:不支援。

false

ResourceTypesScope

string

規則評估的資源類型。

ACS::ECS::Instance

CompliancePackTemplateName

string

合規包模板名稱。

ClassifiedProtectionPreCheck

CompliancePackTemplateId

string

合規包模板 ID。

ct-5f26ff4e06a300c4****

Labels

string

合規包的分類標籤。

Regulation

LastUpdate

integer

合規包最後更新的時間戳記。

1747983081

RequestId

string

請求 ID。

D67FC82F-25AE-4268-A94C-3348340748F9

樣本

正常返回樣本

JSON格式

{
  "CompliancePackTemplatesResult": {
    "PageSize": 10,
    "PageNumber": 1,
    "TotalCount": 1,
    "CompliancePackTemplates": [
      {
        "RiskLevel": 1,
        "Description": "Checks the compliance of Alibaba Cloud resources based on the specific requirements of MLPS 2.0 Level 3.",
        "ConfigRules": [
          {
            "Description": "If no vulnerabilities that are of the specified type and severity level and to be fixed exist on the running ECS instances that are protected by Security Center, the configuration is considered compliant. This rule does not apply to ECS instances that are not in the running state.",
            "ManagedRuleIdentifier": "ecs-instance-updated-security-vul",
            "ManagedRuleName": "ecs-instance-updated-security-vul",
            "ConfigRuleParameters": [
              {
                "Required": true,
                "ParameterName": "necessity",
                "ParameterValue": "asap"
              }
            ],
            "RiskLevel": 2,
            "ControlId": "8.1.4.4",
            "ControlDescription": "e) Possible known vulnerabilities should be found and remedied in a timely manner after adequate testing and evaluation.\\nf) It shall be able to detect intrusion into important nodes and provide an alarm in case of serious intrusion events.",
            "DefaultEnable": false,
            "ResourceTypesScope": "ACS::ECS::Instance"
          }
        ],
        "CompliancePackTemplateName": "ClassifiedProtectionPreCheck",
        "CompliancePackTemplateId": "ct-5f26ff4e06a300c4****",
        "Labels": "Regulation",
        "LastUpdate": 1747983081
      }
    ]
  },
  "RequestId": "D67FC82F-25AE-4268-A94C-3348340748F9"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 NoPermission You are not authorized to perform this operation. 您無權執行此操作。
404 AccountNotExisted Your account does not exist.
503 ServiceUnavailable The request has failed due to a temporary failure of the server. 服務不可用。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情