aws s3api list-buckets

From wikieduonline
Revision as of 11:38, 17 July 2023 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/list-buckets.html

  • aws s3api list-buckets --query "Buckets[].Name"
  • aws s3api list-objects --bucket YourBucketName --query Contents[].[Key,Size]
aws s3api list-buckets

 {
     "Buckets": [],
     "[[Owner]]": {
         "DisplayName": "your_name",
         "ID": "89094145c8599971367dbaedba5e3f08b9d6bbd1036ed1089fb102f0b407b648"
     }
 }
  • ID is the ID of the Owner

Errors[edit]

Related terms[edit]

See also[edit]

Advertising: