查詢指定帳號組內指定合規包中成員帳號的合規結果。
介面說明
本文將提供一個樣本,查詢帳號組ca-04b3fd170e340007****內合規包cp-541e626622af0087****中成員帳號的合規結果。返回結果顯示,成員帳號總數為 2 個,不合規成員帳號數為 0 個。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:GetAggregateAccountComplianceByPack |
get |
*AggregateCompliancePack
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| CompliancePackId |
string |
是 |
合規包 ID。 關於如何擷取合規包 ID,請參見 ListAggregateCompliancePacks 。 |
cp-541e626622af0087**** |
| AggregatorId |
string |
是 |
帳號組 ID。 關於如何擷取帳號組 ID,請參見 ListAggregators 。 |
ca-04b3fd170e340007**** |
關於公用請求參數的詳情,請參見公用參數。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
無 |
||
| RequestId |
string |
請求 ID。 |
6EC7AED1-172F-42AE-9C12-295BC2ADB751 |
| AccountComplianceResult |
object |
合規包中成員帳號的合規結果。 |
|
| CompliancePackId |
string |
合規包 ID。 |
cp-541e626622af0087**** |
| NonCompliantCount |
integer |
不合規成員帳號數。 |
0 |
| TotalCount |
integer |
成員帳號總數。 |
2 |
| AccountCompliances |
array<object> |
成員帳號的合規結果清單。 |
|
|
object |
無。 |
||
| ComplianceType |
string |
合規類型。取值:
|
COMPLIANT |
| AccountId |
integer |
帳號組中的成員帳號 ID。 |
100931896542**** |
| AccountName |
string |
帳號組中的成員帳號名稱。 |
Alice |
樣本
正常返回樣本
JSON格式
{
"RequestId": "6EC7AED1-172F-42AE-9C12-295BC2ADB751",
"AccountComplianceResult": {
"CompliancePackId": "cp-541e626622af0087****",
"NonCompliantCount": 0,
"TotalCount": 2,
"AccountCompliances": [
{
"ComplianceType": "COMPLIANT",
"AccountId": 0,
"AccountName": "Alice"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | |
| 400 | Invalid.CompliancePackId.Value | The specified CompliancePackId does not exist. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。