Difference between revisions of "Aws s3api list-buckets"
Jump to navigation
Jump to search
↑ https://docs.aws.amazon.com/cli/latest/reference/s3api/list-buckets.html
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
https://awscli.amazonaws.com/v2/documentation/api/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> |
− | *<code>aws s3api list-buckets --query "Buckets[].Name"</code> | + | * <code>aws s3api list-buckets --query "Buckets[].Name"</code> |
+ | |||
+ | * <code>[[aws s3api]] list-objects --bucket YourBucketName --query Contents[].[Key,Size]</code> | ||
<pre>aws s3api list-buckets | <pre>aws s3api list-buckets | ||
Line 18: | Line 20: | ||
*<code>ID is the ID of the [[Owner]]</code> | *<code>ID is the ID of the [[Owner]]</code> | ||
+ | |||
+ | == Errors == | ||
+ | * <code>[[Error: Failed to get existing workspaces: S3 bucket does not exist.]]</code> | ||
+ | |||
Line 23: | Line 29: | ||
* <code>[[aws s3 ls]]</code> | * <code>[[aws s3 ls]]</code> | ||
* <code>[[aws list all]]</code> | * <code>[[aws list all]]</code> | ||
− | |||
== See also == | == See also == |
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 --output=text
[1]
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]
- AWS S3:
s3api
|list-buckets
|get-bucket-website
|get-bucket-policy
|create-bucket
|put-bucket-encryption
|aws s3api put-bucket-policy
|get-bucket-acl
|get-bucket-versioning
|get-bucket-location
|put-bucket-versioning | get-bucket-tagging | head-bucket | put-object-lock-configuration
Advertising: