getbktinfo (get bucket information)

Top  Previous  Next

getbktinfo BUCKET_NAME [-acl] [-cors] [-lifecycle] [-policy] [-location] [-logging] [-notification] [-tagging] [-requestPayment] [-versioning] [-website] [-accelerate] [-encryption] [-all] [-orig]

Get bucket information.

 

Parameter

Description

Examples

BUCKET_NAME

Name of the bucket to be queried. Required.

getbktinfo mybucketname

[-acl]

Shows the access control list (ACL) of the bucket.

getbktinfo mybucketname -acl

[-cors]

Shows the cors configuration information set for the bucket.

getbktinfo mybucketname -cors

[-lifecycle]

Shows the lifecycle configuration information set on the bucket.

getbktinfo mybucketname -lifecycle

[-policy]

Shows the policy of the bucket.

getbktinfo mybucketname -policy

[-location]

Shows the bucket's region.

getbktinfo mybucketname -location

[-logging]

Shows the logging status of the bucket and the permissions users have to view and modify that status.

getbktinfo mybucketname -logging

[-notification]

Shows the notification configuration of the bucket.

getbktinfo mybucketname -notification

[-tagging]

Shows the tag set associated with the bucket.

getbktinfo mybucketname -tagging

[-requestPayment]

Shows the request payment configuration of the bucket.

getbktinfo mybucketname -requestPayment

[-versioning]

Shows the versioning state of the bucket.

getbktinfo mybucketname -versioning
getbktinfo mybucketname -versioning -policy (show bucket's policy and versioning)

[-website]

Shows the website configuration associated with the bucket.

getbktinfo mybucketname -website

[-accelerate]

Shows the transfer acceleration state of the bucket.

getbktinfo mybucketname -accelerate

[-encryption]

Shows the encryption state of the bucket.

getbktinfo mybucketname -encryption

[-all]

Shows all of the above for the bucket.

getbktinfo mybucketname -all

[-orig]

Use this parameter to show output in the original S3 format (mostly XML). Do not convert to JSON.

getbktinfo mybucketname -orig
getbktinfo mybucketname -versioning -website -orig

 

Note:
It is possible to combine two or more of the parameters above to show multiple items at once, e.g. :
getbktinfo mybucketname -acl -policy -versioning
 
To show all information that applies to a bucket use:
getbktinfo mybucketname -all
or just:
getbktinfo mybucketname