查詢配置審計提供的所有合規包範本及其詳細資訊。
介面說明
合規包範本是配置審計根據合規場景自訂的一組規則的集合。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| CompliancePackTemplateId |
string |
否 |
合規包範本 ID。 |
ct-5f26ff4e06a300c4**** |
| RuleRiskLevel |
integer |
否 |
合規包中規則範本的風險等級。取值:
|
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> |
合規包範本清單。 |
|
|
array<object> |
合規包範本資訊。 |
||
| RiskLevel |
integer |
合規包中規則範本的風險等級。取值:
|
1 |
| Description |
string |
合規包描述。 |
Checks the compliance of Alibaba Cloud resources based on the specific requirements of MLPS 2.0 Level 3. |
| ConfigRules |
array<object> |
合規包中預設規則清單。 |
|
|
array<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 |
| ParameterName |
string |
規則範本的參數名稱。 |
necessity |
| ParameterValue |
string |
規則範本的參數值。 |
asap |
| RiskLevel |
integer |
規則範本的風險等級。取值:
|
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 |
規則是否支援快速啟用。取值:
|
false |
| ResourceTypesScope |
string |
規則評估的資源類型。 |
ACS::ECS::Instance |
| CompliancePackTemplateName |
string |
合規包範本名稱。 |
ClassifiedProtectionPreCheck |
| CompliancePackTemplateId |
string |
合規包範本 ID。 |
ct-5f26ff4e06a300c4**** |
| Labels |
string |
合規包的分類標籤。 |
Regulation |
| LastUpdate |
integer |
合規包最後更新時間,使用 Unix 時間戳記,單位為秒。 |
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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。