取得指定檢測項的不合規資源資訊,包含不合規資源的名稱、ID、類別、類型、地域以及相關中繼資料。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
governance:ListEvaluationMetricDetails |
list |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Id |
string |
否 |
需要取得不合規資源的檢測項 ID。 您可以呼叫 ListEvaluationMetadata 介面,取得檢測項 ID。 |
xfyve5**** |
| AccountId |
integer |
否 |
成員帳號 ID。該參數僅適用於多帳號檢測模式。 |
103144549568**** |
| NextToken |
string |
否 |
下一個查詢開始的 Token。 |
AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn**** |
| MaxResults |
integer |
否 |
單次請求傳回結果的最大筆數。預設值:5。 |
5 |
| RegionId |
string |
否 |
地域 ID。 |
cn-hangzhou |
| SnapshotId |
string |
否 |
檢測快照 ID。 |
es-bp1r************** |
| Scope |
string |
否 |
治理成熟度檢測範圍。取值:
|
Account |
| Date |
string |
否 |
查詢的日期。 |
2026-01-01 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
傳回結果。 |
||
| NextToken |
string |
用於取得下一頁資料的權杖。 |
AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn**** |
| RequestId |
string |
請求 ID。 |
AC9BD94C-D20C-4D27-88D4-89E8D75C**** |
| Resources |
array<object> |
不合規資源詳情。 |
|
|
array<object> |
不合規資源詳情。 |
||
| RegionId |
string |
資源所屬的地域 ID。 |
cn-hangzhou |
| ResourceClassification |
string |
輔助決策分類。 說明
只有支援輔助決策的檢測項,才會傳回該參數。 |
RecentUnloginRamUser |
| ResourceId |
string |
資源 ID。 |
26435103783237**** |
| ResourceName |
string |
資源名稱。 |
test |
| ResourceOwnerId |
integer |
資源所屬的阿里雲帳號 ID。 |
176618589410**** |
| ResourceProperties |
array<object> |
資源額外屬性清單。 |
|
|
object |
資源額外屬性清單。 |
||
| PropertyName |
string |
資源屬性的名稱。 |
DisplayName |
| PropertyValue |
string |
資源屬性的值。 |
TestAccount |
| ResourceType |
string |
資源類型。 |
ACS::RAM::User |
| ComplianceType |
string |
合規狀態。取值:
|
NonCompliant |
| Date |
string |
日期。 |
2026-01-01 |
樣本
正常返回樣本
JSON格式
{
"NextToken": "AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****",
"RequestId": "AC9BD94C-D20C-4D27-88D4-89E8D75C****",
"Resources": [
{
"RegionId": "cn-hangzhou",
"ResourceClassification": "RecentUnloginRamUser",
"ResourceId": "26435103783237****",
"ResourceName": "test",
"ResourceOwnerId": 0,
"ResourceProperties": [
{
"PropertyName": "DisplayName",
"PropertyValue": "TestAccount"
}
],
"ResourceType": "ACS::RAM::User",
"ComplianceType": "NonCompliant"
}
],
"Date": "2026-01-01"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | InternalError | A system error occurred. | |
| 404 | InvalidEnterpriseRealName.NotFound | The specified account has not passed enterprise real name verification. Please complete the verification for the account first. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。