b2CreateBucket creates a new bucket in the user's account on the
Backblaze B2 cloud storage product.
Usage
b2CreateBucket(bucketName, bucketType)
Arguments
bucketName
Bucket names must be globally unique. No two users may have
buckets named the same. Bucket names may not start with b2. Bucket
names must be a minimum of 6 and maximum of 50 characters long. Bucket
names may consist only of letters, numbers and hyphens. Special characters
are invalid.
bucketType
Supported bucket types are allPublic and
allPrivate.
Value
If successful a list containing the accountId,
bucketName and bucketType will all be echoed back to the
user. Also included in the return list will be a unique bucketId.
Details
This function creates a new bucket within the user's account on the Backblaze
B2 cloud storage product. Backblaze B2 does not support tree based folder
structures as such, meaning all uploaded data is stored in a flat file
structure. However, buckets may be created at the top level to aid in content
organisation. Further details regarding this API call are available here: