

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

# 在 Amazon ECR 中擷取基本掃描的問題清單
<a name="describe-scan-findings"></a>

您可以擷取上次完成的基本映像掃描的掃描問題清單。根據 Common Vulnerabilities and Exposures (CVEs) 資料庫，依嚴重性列出發現的軟體漏洞。

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

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

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

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

1.  在 https：/[/https://console.aws.amazon.com/ecr/private-registry/repositories](https://console---aws.amazon.com.rproxy.govskope.caecr/private-registry/repositories) 開啟 Amazon ECR 主控台

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

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

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

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

------
#### [ 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}}
  ```

------
#### [ AWS Tools for Windows PowerShell ]
+ [ Get-ECRImageScanFinding](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-ECRImageScanFinding.html) (AWS Tools for Windows PowerShell)

  下列範例使用映像標籤。

  ```
  Get-ECRImageScanFinding -RepositoryName {{name}} -ImageId_ImageTag {{tag_name}} -Region {{us-east-2}}
  ```

  下列範例使用映像摘要。

  ```
  Get-ECRImageScanFinding -RepositoryName {{name}} -ImageId_ImageDigest {{sha256_hash}} -Region {{us-east-2}}
  ```

------