AWS ECR API中的“maxResults”属性在“DescribeImageScanFindings”中是否有问题?

0

【以下的问题经过翻译处理】 我正在使用Postman调用AWS ECR API的“DescribeImageScanFindings”,但是当我尝试在DescribeImageScanFindings中使用maxResults属性时, 当我将maxResults的值设置为超过100时,它总是使用默认值100并给我“nextToken”以进行下一页。

以下是我在Postman中的请求信息

POST: https://ecr.us-east-1.amazonaws.com/?Action=DescribeImageScanFindings
Body:
{
   "imageId": { 
      "imageDigest": "sha256:xxx"
   },
   "maxResults": 999,
   "repositoryName": "xxx"
}

Header:
Content-Type application/x-amz-json-1.1
User-Agent Postman-Collection
X-Amz-Target AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings

AWS签名
AccessKey xxx
SecretKey xxx
AWS区域us-east-1
服务名称ecr

我想知道这是否是已知的问题?

profile picture
EXPERT
asked 5 months ago16 views
1 Answer
0

【以下的回答经过翻译处理】 我发现当启用“增强扫描”并使用ECR API“DescribeImageScanFindings”查询结果时,问题将会出现。 它会使用InspectorV2的“maxResults”属性中的最大值100: https://docs.aws.amazon.com/inspector/v2/APIReference/API_ListFindings.html

ECR API“DescribeImageScanFindings”文档应该提到这个问题。这很奇怪,也容易误解。

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions