Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Object Storage
    • All guides
      • Uploading an object
      • Multipart upload of an object
      • Get a list of bucket objects
      • Getting information about an object
      • Downloading an object
      • Restoring an object's version
      • Renaming and moving objects
      • Copying objects
      • Getting a pre-signed URL to download an object
      • Configuring an object lock
      • Deleting an object
      • Deleting all objects
      • Deleting a partially uploaded object
      • Editing an object's ACL
      • Managing object labels
      • Managing object custom metadata
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Bucket logs
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Objects
  3. Get a list of bucket objects

Get a list of bucket objects

Written by
Yandex Cloud
Updated at September 26, 2025
Management console
Yandex Cloud CLI
AWS CLI
API
  1. In the management console, select Object Storage from the list of services and go to the bucket you need.

  2. In the left-hand panel, select Objects. You will see a list of objects and folders.

    To view the list of objects in the folder, click it.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the description of the CLI command to get a list of bucket objects:

    yc storage s3api list-objects --help
    
  2. Get a list of buckets in the default folder:

    yc storage bucket list
    

    Result:

    +------------------+----------------------+-------------+-----------------------+---------------------+
    |       NAME       |      FOLDER ID       |  MAX SIZE   | DEFAULT STORAGE CLASS |     CREATED AT      |
    +------------------+----------------------+-------------+-----------------------+---------------------+
    | first-bucket     | b1gmit33ngp6******** | 53687091200 | STANDARD              | 2022-12-16 13:58:18 |
    +------------------+----------------------+-------------+-----------------------+---------------------+
    
  3. Run this command:

    yc storage s3api list-objects \
      --bucket <bucket_name> \
      --prefix <object_key_prefix>
    

    Where:

    • --bucket: Bucket name.
    • --prefix: Folder within the bucket. This is an optional parameter.

    Result:

    contents:
      - key: my-folder/
        last_modified: "2025-04-05T09:21:30.870Z"
        etag: '"d41d8cd98f00b204e9800998********"'
        owner:
          id: aje9k8luj4qf********
          display_name: aje9k8luj4qf********
        storage_class: STANDARD
      - key: my-folder/clouds.jpg
        last_modified: "2025-04-05T09:22:00.542Z"
        etag: '"e48cfc54e831ee0b334a00f9********"'
        size: "455747"
        owner:
          id: aje9k8luj4qf********
          display_name: aje9k8luj4qf********
        storage_class: STANDARD
      - key: my-folder/nice_text.txt
        last_modified: "2025-04-05T09:21:40.023Z"
        etag: '"379e8ff6a0f89b09534753e3********"'
        size: "64154"
        owner:
          id: aje9k8luj4qf********
          display_name: aje9k8luj4qf********
        storage_class: STANDARD
    name: first-bucket
    prefix: my-folder/
    max_keys: "1000"
    key_count: "3"
    request_id: dc073b86********
    
  1. If you do not have the AWS CLI yet, install and configure it.

  2. To get a list of objects in a bucket, run the following command:

    aws s3api list-objects \
      --endpoint-url=https://storage.yandexcloud.net \
      --bucket <bucket_name> \
      --prefix <object_key_prefix>
    

    Where:

    • --endpoint-url: Object Storage endpoint.
    • --bucket: Bucket name.
    • --prefix: Folder within the bucket. This is an optional parameter.

    Result:

    {
        "Contents": [
            {
                "Key": "my-folder/",
                "LastModified": "2025-04-05T09:21:30.870000+00:00",
                "ETag": "\"d41d8cd98f00b204e9800998********\"",
                "Size": 0,
                "StorageClass": "STANDARD",
                "Owner": {
                    "DisplayName": "aje9k8luj4qf********",
                    "ID": "aje9k8luj4qf********"
                }
            },
            {
                "Key": "my-folder/clouds.jpg",
                "LastModified": "2025-04-05T09:22:00.542000+00:00",
                "ETag": "\"e48cfc54e831ee0b334a00f9********\"",
                "Size": 455747,
                "StorageClass": "STANDARD",
                "Owner": {
                    "DisplayName": "aje9k8luj4qf********",
                    "ID": "aje9k8luj4qf********"
                }
            },
            {
                "Key": "my-folder/nice_text.txt",
                "LastModified": "2025-04-05T09:21:40.023000+00:00",
                "ETag": "\"379e8ff6a0f89b09534753e3********\"",
                "Size": 64154,
                "StorageClass": "STANDARD",
                "Owner": {
                    "DisplayName": "aje9k8luj4qf********",
                    "ID": "aje9k8luj4qf********"
                }
            },
        ],
        "RequestCharged": null
    }
    

To get a list of objects in the bucket, use the listObjects S3 API method.

Was the article helpful?

Previous
Multipart upload of an object
Next
Getting information about an object
© 2025 Direct Cursus Technology L.L.C.