b2CreateBucket: Create B2 Bucket.

Description Usage Arguments Details Value Examples

Description

b2CreateBucket creates a new bucket in the user's account on the Backblaze B2 cloud storage product.

Usage

1
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.

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:

https://www.backblaze.com/b2/docs/b2_create_bucket.html

bucketName and bucketType are mandatory and must be user defined.

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.

Examples

1
2
3
4
5
## Not run: 
b2CreateBucket(bucketName = "this-is-a-uniquely-named-bucket",
bucketType = "allPublic")

## End(Not run)

phillc73/backblazer documentation built on May 25, 2019, 5:05 a.m.