Get-bucket command

Prints all of the information about the bucket, including bucket info, CORS rules and lifecycle rules.

If --showSize is specified, then display the number of files (fileCount) in the bucket and the aggregate size of all files (totalSize). Hidden files and hide markers are accounted for in the reported number of files, and hidden files also contribute toward the reported aggregate size, whereas hide markers do not. Each version of a file counts as an individual file, and its size contributes toward the aggregate size. Analysis is recursive.

Note

Note that --showSize requires multiple API calls, and will therefore incur additional latency, computation, and Class C transactions.

Requires capability:

  • listBuckets

b2 get-bucket [-h] [--profile PROFILE] [--showSize] bucketName

Positional Arguments

bucketName

Named Arguments

--profile
--showSize

Default: False