Difference between revisions of "Aws s3api list-buckets"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
* https://docs.aws.amazon.com/cli/latest/reference/s3api/list-buckets.html
+
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/list-buckets.html
  
<code>[[aws s3api]] list-buckets [[--output=text]]</code> <ref> https://docs.aws.amazon.com/cli/latest/reference/s3api/list-buckets.html </ref>
+
* <code>[[aws s3api]] list-buckets [[--output=text]]</code> <ref> https://docs.aws.amazon.com/cli/latest/reference/s3api/list-buckets.html </ref>
  
aws s3api list-buckets
+
* <code>aws s3api list-buckets --query "Buckets[].Name"</code>
<pre>
+
 
{
+
* <code>[[aws s3api]] list-objects --bucket YourBucketName --query Contents[].[Key,Size]</code>
    "Buckets": [],
+
 
    "Owner": {
+
<pre>aws s3api list-buckets
        "DisplayName": "your_name",
+
 
        "ID": "89094145c8599971367dbaedba5e3f08b9d6bbd1036ed1089fb102f0b407b648"
+
{
    }
+
    "Buckets": [],
}
+
    "[[Owner]]": {
 +
        "DisplayName": "your_name",
 +
        "ID": "89094145c8599971367dbaedba5e3f08b9d6bbd1036ed1089fb102f0b407b648"
 +
    }
 +
}
 
</pre>
 
</pre>
 +
 +
*<code>ID is the ID of the [[Owner]]</code>
 +
 +
== Errors ==
 +
* <code>[[Error: Failed to get existing workspaces: S3 bucket does not exist.]]</code>
 +
 +
  
 
== Related terms ==
 
== Related terms ==

Latest revision as of 11:38, 17 July 2023

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]

  • https://docs.aws.amazon.com/cli/latest/reference/s3api/list-buckets.html
  • Advertising: