CloudConfig が提供するすべてのコンプライアンスパックテンプレートの詳細をクエリします。
操作説明
コンプライアンスパックテンプレートは、CloudConfig がコンプライアンスシナリオ向けにカスタマイズしたルールの集合です。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| CompliancePackTemplateId |
string |
任意 |
コンプライアンスパックテンプレートの ID。 |
ct-5f26ff4e06a300c4**** |
| RuleRiskLevel |
integer |
任意 |
コンプライアンスパック内のルールのリスクレベル。有効な値:
|
2 |
| PageSize |
integer |
任意 |
各ページに返すエントリの数。 有効な値: 1 ~ 100 。デフォルト値: 10 。 |
10 |
| PageNumber |
integer |
任意 |
ページ番号。 最小値: 1 。デフォルト値: 1 。 |
1 |
| ResourceTypes |
string |
任意 |
ルールによって評価されるリソースタイプ。このパラメータを指定すると、指定されたリソースタイプのルールを含むコンプライアンスパックテンプレートのみが返されます。 |
ACS::ECS::Instance |
| FilterType |
string |
任意 |
クエリ結果をフィルタリングするために使用されるフィールド。 |
LAW |
共通リクエストパラメータの詳細については、「共通パラメータ」をご参照ください。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
なし。 |
||
| CompliancePackTemplatesResult |
object |
コンプライアンスパックテンプレートの詳細。 |
|
| PageSize |
integer |
1 ページあたりに返されるエントリの数。 |
10 |
| PageNumber |
integer |
ページ番号。 |
1 |
| TotalCount |
integer |
コンプライアンスパックテンプレートの総数。 |
1 |
| CompliancePackTemplates |
array<object> |
コンプライアンスパックテンプレートのリスト。 |
|
|
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> |
コンプライアンスパックのデフォルトルールのリスト。 |
|
|
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 |
例
成功レスポンス
JSONJSON
{
"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 ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。