全部產品
Search
文件中心

Security Center:DescribeImageBuildRiskByKey

更新時間:Jun 16, 2026

分頁查詢映像的構建風險。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

yundun-sas:DescribeImageBuildRiskByKey

list

*All Resource

*

請求參數

名稱

類型

必填

描述

樣本值

RiskKey

string

構建風險規則 Key。

說明

您可透過 DescribeImageBuildRiskList 介面取得該參數。

no_user

ImageUuid

string

映像 UUID。

a910053dd4710173ecc9e9d8931f****

Lang

string

請求和接收訊息的語言類型。取值:

  • zh:中文

  • en:英文。

zh

CurrentPage

integer

分頁查詢時,設定當前頁面的頁碼。預設值為 1

1

PageSize

integer

指定分頁查詢時,每頁顯示的資料最大條數。每頁預設顯示的資料條數為 20 條,PageSize 參數值為空時,將預設返回 20 條資料。

說明

建議 PageSize 取值不要為空。

20

Status

integer

要查詢的告警事件狀態。取值:

  • 0:未處理。

  • 1:忽略。

  • 2:誤報。

1

返回參數

名稱

類型

描述

樣本值

object

PlainResult<PageResult>

Data

object

返回資料。

List

array<object>

構建風險列表。

object

LayerDigest

string

鏡像層的摘要。

6ec898e6274f942e0e4a053eff1c3119026a6704e56cff206b2cec71f636****

LayerCmd

string

鏡像層的構建命令。

user root

Advice

string

修複建議。

do not use root user

Promt

string

風險提示。

the root user has excessive permissions

Description

string

構建風險處理建議的描述。

the root user has excessive permissions

RiskLevel

string

風險等級。取值:

  • high:高危。

  • medium:中危。

  • low:低危。

medium

RiskKey

string

構建風險規則 Key。

no_user

RiskKeyName

string

構建風險規則名稱。

no_user

RiskClass

string

構建風險規則分類 Key。

other

RiskClassName

string

構建風險規則分類名稱。

other

PageInfo

object

分頁查詢參數。

CurrentPage

integer

分頁查詢時,設定當前頁面的頁碼。預設值為 1

1

PageSize

integer

指定分頁查詢時,每頁顯示的資料最大條數。每頁預設顯示的資料條數為 20 條,PageSize 參數值為空白時,將預設返回 20 條資料。

說明

建議 PageSize 取值不要為空白。

20

TotalCount

integer

查詢結果的總數。

109

Success

boolean

介面呼叫的結果狀態。取值:

  • true:介面呼叫成功。

  • false:介面呼叫失敗。

true

Code

string

介面狀態碼。

200

Message

string

錯誤碼的詳細資訊。

successful

RequestId

string

本次請求的 ID。

52870893-48A7-5A9E-9E05-6253E5B6****

樣本

正常返回樣本

JSON格式

{
  "Data": {
    "List": [
      {
        "LayerDigest": "6ec898e6274f942e0e4a053eff1c3119026a6704e56cff206b2cec71f636****",
        "LayerCmd": "user root",
        "Advice": "do not use root user",
        "Promt": "the root user has excessive permissions",
        "Description": "the root user has excessive permissions",
        "RiskLevel": "medium",
        "RiskKey": "no_user",
        "RiskKeyName": "no_user",
        "RiskClass": "other",
        "RiskClassName": "other"
      }
    ],
    "PageInfo": {
      "CurrentPage": 1,
      "PageSize": 20,
      "TotalCount": 109
    }
  },
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "RequestId": "52870893-48A7-5A9E-9E05-6253E5B6****"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

500 ServerError ServerError
403 NoPermission caller has no permission

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情