官术网_书友最值得收藏!

  • AWS Administration Cookbook
  • Lucas Chan Rowan Udell
  • 195字
  • 2021-07-09 18:18:33

Pagination

Results returned by the CLI tool are limited to 1,000 resources by default.

This is not normally an issue, but at a certain scale, you may run into pagination issues. A common example is files in an S3 bucket.

If you are absolutely sure you should be seeing a particular resource in a response but cannot, check your pagination. The resource may be included in the matching resources, just not in the part of the response that was returned to you.

The following options allow you to control the number and starting point of the results returned to you from the API:

  • --page-size: This limits how many resources will be displayed to you, but does not actually limit the number returned. The default number of items (that is, 1,000) will still be processed and returned to you.
  • --max-items: This sets an upper limit on how many items will actually be returned in the response. You may receive fewer items, but you will not receive more than this number.
  • --starting-token: This changes where the response starts. Use this to display subsequent results, beyond the first page.
aws s3 ls --bucket bucket-name --max-items 100 --starting-token None___100
主站蜘蛛池模板: 德清县| 获嘉县| 镇沅| 韶山市| 金阳县| 淮阳县| 桐乡市| 新巴尔虎左旗| 高青县| 体育| 介休市| 华容县| 炎陵县| 长岭县| 山东| 延庆县| 石泉县| 甘洛县| 健康| 六枝特区| 屯留县| 红河县| 淮南市| 黔西县| 滦南县| 四会市| 崇信县| 江华| 当涂县| 崇阳县| 独山县| 墨脱县| 奎屯市| 林甸县| 定南县| 镇坪县| 岑巩县| 日土县| 呼和浩特市| 江山市| 分宜县|