

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在 Amazon ECR 中擷取增強型掃描的問題清單
<a name="image-scanning-enhanced-describe-scan-findings"></a>

您可以擷取上次完成增強型影像掃描的掃描問題清單，然後在 Amazon Inspector 中開啟問題清單以查看更多詳細資訊。根據 Common Vulnerabilities and Exposures (CVEs) 資料庫，依嚴重性列出發現的軟體漏洞。

如需在掃描映像時某些常見問題的故障診斷詳細資訊，請參閱 [對 Amazon ECR 中的映像掃描進行故障診斷](image-scanning-troubleshooting.md)。

------
#### [ AWS 管理主控台 ]

使用下列步驟以利用 AWS 管理主控台擷取映像掃描結果。

**擷取映像掃描問題清單**

1. 在 [https://console.aws.amazon.com/ecr/](https://console.aws.amazon.com/ecr/) 開啟 Amazon ECR 主控台。

1. 從導覽列選擇儲存庫所在的區域。

1. 在導覽窗格中，選擇 **Repositories** (儲存庫)。

1. 在 **Repositories (儲存庫)** 頁面上，選擇包含要擷取掃描結果之映像的儲存庫。

1. 在**影像**頁面**的影像標籤**欄下，選取要擷取掃描問題清單的影像標籤。

1. 若要在 Amazon Inspector 主控台中檢視更多詳細資訊，請在名稱欄中選擇漏洞**名稱**。

------
#### [ AWS CLI ]

使用以下 AWS CLI 命令，使用 擷取影像掃描問題清單 AWS CLI。您可以使用 `imageTag` 或 ` imageDigest` 指定映像，兩者皆可利用 [list-images](https://docs.aws.amazon.com/cli/latest/reference/ecr/list-images.html) CLI 命令取得。
+ [ describe-image-scan-findings](https://docs.aws.amazon.com/cli/latest/reference/ecr/describe-image-scan-findings.html) (AWS CLI)

  下列範例使用映像標籤。

  ```
  aws ecr describe-image-scan-findings \
       --repository-name {{name}} \
       --image-id imageTag={{tag_name}} \
       --region {{us-east-2}}
  ```

  下列範例使用映像摘要。

  ```
  aws ecr describe-image-scan-findings \
       --repository-name {{name}} \
       --image-id imageDigest={{sha256_hash}} \
       --region {{us-east-2}}
  ```

------