Listing files using an S3 access point
The following example lists files through the access point alias
owned by account ID my-openzfs-ap-hrzrlukc5m36ft7okagglf3gmwluquse1b
-ext-s3alias
in Region
111122223333
.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.