分頁查詢映像的構建風險。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-sas:DescribeImageBuildRiskByKey |
list |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RiskKey |
string |
否 |
構建風險規則 Key。 說明
您可透過 DescribeImageBuildRiskList 介面取得該參數。 |
no_user |
| ImageUuid |
string |
否 |
映像 UUID。 |
a910053dd4710173ecc9e9d8931f**** |
| Lang |
string |
否 |
請求和接收訊息的語言類型。取值:
|
zh |
| CurrentPage |
integer |
否 |
分頁查詢時,設定當前頁面的頁碼。預設值為 1。 |
1 |
| PageSize |
integer |
否 |
指定分頁查詢時,每頁顯示的資料最大條數。每頁預設顯示的資料條數為 20 條,PageSize 參數值為空時,將預設返回 20 條資料。 說明
建議 PageSize 取值不要為空。 |
20 |
| Status |
integer |
否 |
要查詢的告警事件狀態。取值:
|
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 |
風險等級。取值:
|
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 |
| 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 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。