View source: R/b2CreateBucket.R
b2CreateBucket | R Documentation |
b2CreateBucket
creates a new bucket in the user's account on the
Backblaze B2 cloud storage product.
b2CreateBucket(bucketName, bucketType)
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. |
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.
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
.
## Not run:
b2CreateBucket(bucketName = "this-is-a-uniquely-named-bucket",
bucketType = "allPublic")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.