To list the objects contained in a bucket, use the list-objects command following this syntax:
This command contains the following attributes that you need to specify:
profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.
bucket: The name of the bucket whose objects you want to list.
prefix: A letter or a string of characters to filter your objects. It displays the objects that begin with the letter or the characters you specify.
delimiter: A letter to filter your objects. It excludes the objects that begin or contain the letter you specify.
endpoint: The endpoint corresponding to the service (
osu) and Region you want to send the request to, in the following format: https://<SERVICE>.<REGION>.outscale.com
CommonPrefixes: Information about the common prefixes. This element contains the following information:
Prefix: The delimiter you specified, or the string of characters from your prefix to your delimiter. For more information, see About Object Storage > Objects.
Contents: Information about the contents of your bucket. This element contains the following information:
LastModified: The date and time when the object was uploaded or copied into the bucket.
ETag: The ETag of the object.
StorageClass: The storage class of your object (always
Key: The name of the object in the bucket.
Owner: Information about the owner of the object. This element contains the following information:
DisplayName: The first name and the last name of the owner of the object.
ID: The S3 user ID of the owner of the object if
ooswas specified as the endpoint, or their OUTSCALE account ID if
osuwas specified as the endpoint.
Size: The size of your object, in bytes.
You can also perform this action using an s3 command following this syntax:
- You can also manage your object storage resources using s3cmd commands. For more information, see s3cmd.