Listing Your Buckets
You can list the buckets you created. This action also returns information about their date and time of creation.
The buckets that other users shared with you do not appear.
Listing Your Buckets Using AWS CLI
To list your buckets, use the list-buckets command following this syntax:
$ aws s3api list-buckets \
--profile YOUR_PROFILE \
--endpoint https://oos.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The list-buckets command returns the following elements:
-
Owner
: Information about the owner of the bucket. This element contains the following information:-
DisplayName
: Your OUTSCALE account ID. -
ID
: Your S3 user ID.
-
-
Buckets
: Information about your buckets. This element contains the following information for each bucket:-
CreationDate
: The date and time of creation. -
Name
: The name you specified for your bucket.
-
{
"Owner": {
"DisplayName": "ACCOUNT_ID",
"ID": "USER_ID"
},
"Buckets": [
{
"CreationDate": "2017-01-01T08:03:16.000Z",
"Name": "BUCKET"
}
]
}
|
Related Pages
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.