Listing files using an S3 access point - FSx for OpenZFS
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Listing files using an S3 access point

The following example lists files through the access point alias my-openzfs-ap-hrzrlukc5m36ft7okagglf3gmwluquse1b-ext-s3alias owned by account ID 111122223333 in Region us-east-2.

$ aws s3api list-objects-v2 --bucket my-openzfs-ap-hrzrlukc5m36ft7okagglf3gmwluquse1b-ext-s3alias { "Contents": [ { "Key": ".hidden-dir-with-data/file.txt", "LastModified": "2024-10-29T14:22:05.4359", "ETag": "\"88990077ab44cd55ef66aa77\"", "Size": 18, "StorageClass": "FSX_OPENZFS" }, { "Key": "documents/report.rtf", "LastModified": "2024-11-02T10:18:15.6621", "ETag": "\"ab12cd34ef56a89219zg6aa77\"", "Size": 1048576, "StorageClass": "FSX_OPENZFS" }, ] }

You can also use the REST API to list your files. For more information, see ListObjectsV2 in the Amazon Simple Storage Service API Reference.