Learn R Programming

backblazer (version 0.1.0)

b2UpdateBucket: Update B2 Bucket.

Description

b2UpdateBucket modifies the bucket type of an existing bucket in the user's account.

Usage

b2UpdateBucket(bucketId, bucketType)

Arguments

bucketId
The unique identifier of the bucket to be updated. A list of all the user's bucket IDs may be found using the b2_list_buckets function in this package.
bucketType
Supported bucket types are allPublic and allPrivate.

Value

If successful a list containing the accountId, bucketId, bucketName and bucketType will all be echoed back to the user.

Details

This function modifies the bucket type of an existing bucket, within the user's account on the Backblaze B2 cloud storage product. This function can be used to allow everyone to download the contents of the bucket without providing any authorisation, or to prevent anyone from downloading the contents of the bucket without providing a bucket authToken. Further details regarding this API call are available here:

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

bucketId and bucketType are mandatory and must be user defined.

Examples

Run this code
## Not run: 
# # Make a bucket Private
# b2UpdateBucket(bucketId = "aUniqueBucketId", bucketType = "allPrivate")
# # Make a bucket Public
# b2UpdateBucket(bucketId = "aUniqueBucketId", bucketType = "allPublic")
# ## End(Not run)

Run the code above in your browser using DataLab