指定されたアカウントグループ内のコンプライアンスパックをクエリします。
操作説明
このトピックでは、アカウントグループ ca-f632626622af0079**** 内のコンプライアンスパックをクエリする方法の例を示します。 応答は、アカウントグループにコンプライアンスパック cp-fdc8626622af00f9**** が含まれていることを示しています。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
config:ListAggregateCompliancePacks |
list |
*AggregateCompliancePack
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Status |
string |
任意 |
コンプライアンスパックのステータス。有効な値:
|
ACTIVE |
| RiskLevel |
integer |
任意 |
コンプライアンスパックのリスクレベル。有効な値:
|
1 |
| AggregatorId |
string |
必須 |
アカウントグループの ID 。 アカウントグループの ID の取得方法については、ListAggregators をご参照ください。 |
ca-f632626622af0079**** |
| PageSize |
integer |
任意 |
各ページに返すエントリの数。 有効な値:1 ~ 100 。最小値:1 。デフォルト値:10 。 |
20 |
| PageNumber |
integer |
任意 |
ページ番号。 最小値:1 。デフォルト値:1 。 |
1 |
| Tag |
array<object> |
任意 |
リソースのタグ。 リソースには最大 20 個のタグを追加できます。 |
|
|
object |
任意 |
リソースのタグ。 リソースには最大 20 個のタグを追加できます。 |
||
| Key |
string |
任意 |
タグキー。 |
key-1 |
| Value |
string |
任意 |
タグ値。 |
value-1 |
共通のリクエストパラメーターの詳細については、共通パラメーター をご参照ください。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID 。 |
B5806142-3090-4F86-A84E-12B3FE52C1C4 |
| CompliancePacksResult |
object |
クエリの結果。 |
|
| CompliancePacks |
array<object> |
コンプライアンスパック。 |
|
|
array<object> |
|||
| Status |
string |
コンプライアンスパックのステータス。有効な値:
|
ACTIVE |
| RiskLevel |
integer |
コンプライアンスパックのリスクレベル。有効な値:
|
1 |
| CompliancePackId |
string |
コンプライアンスパック ID 。 |
cp-fdc8626622af00f9**** |
| Description |
string |
コンプライアンスパックの説明。 |
Check the stability of Alibaba Cloud resources based on the high-availability infrastructure, capacity protection, change management, monitoring management, backup management, and fault isolation. This helps you identify issues at the earliest opportunity and improve stability and the efficiency of O&M. |
| CompliancePackName |
string |
コンプライアンスパックの名前。 |
BestPracticesForResourceStability |
| AccountId |
integer |
コンプライアンスパックが属する管理アカウントの ID 。 |
100931896542**** |
| AggregatorId |
string |
アカウントグループの ID 。 |
ca-f632626622af0079**** |
| CompliancePackTemplateId |
string |
コンプライアンスパックテンプレートの ID 。 |
ct-484cff4e06a30062**** |
| CreateTimestamp |
integer |
コンプライアンスパックが作成されたタイムスタンプ。単位:ミリ秒。 |
1624243657000 |
| Tags |
array<object> |
リソースのタグ。 |
|
|
object |
リソースのタグ。 |
||
| TagKey |
string |
タグキー。 |
key-1 |
| TagValue |
string |
タグ値。 |
value-1 |
| PageSize |
integer |
1 ページあたりに返されるエントリの数。 |
10 |
| PageNumber |
integer |
ページ番号。 |
1 |
| TotalCount |
integer |
コンプライアンスパックの総数。 |
1 |
例
成功レスポンス
JSONJSON
{
"RequestId": "B5806142-3090-4F86-A84E-12B3FE52C1C4",
"CompliancePacksResult": {
"CompliancePacks": [
{
"Status": "ACTIVE",
"RiskLevel": 1,
"CompliancePackId": "cp-fdc8626622af00f9****",
"Description": "Check the stability of Alibaba Cloud resources based on the high-availability infrastructure, capacity protection, change management, monitoring management, backup management, and fault isolation. This helps you identify issues at the earliest opportunity and improve stability and the efficiency of O&M.",
"CompliancePackName": "BestPracticesForResourceStability",
"AccountId": 0,
"AggregatorId": "ca-f632626622af0079****",
"CompliancePackTemplateId": "ct-484cff4e06a30062****",
"CreateTimestamp": 1624243657000,
"Tags": [
{
"TagKey": "key-1",
"TagValue": "value-1"
}
]
}
],
"PageSize": 10,
"PageNumber": 1,
"TotalCount": 1
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。