Search code examples
pythongoogle-cloud-storagegoogle-api-python-client

Maximum number of items returned in GCS Objects#list request


If I didn't specify the maxResults query parameter and I have a bucket with huge number of objects. Will all objects be returned in a single request? if not, how many will be returned?


Solution

  • A limited number of results will come back in a single response - typically 1000. To list the entire bucket, you need to use markers.