b2UpdateBucket: Update B2 Bucket.

Description Usage Arguments Details Value Examples

View source: R/b2UpdateBucket.R

Description

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

Usage

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

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.

Value

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

Examples

1
2
3
4
5
6
7
## Not run: 
# Make a bucket Private
b2UpdateBucket(bucketId = "aUniqueBucketId", bucketType = "allPrivate")
# Make a bucket Public
b2UpdateBucket(bucketId = "aUniqueBucketId", bucketType = "allPublic")

## End(Not run)

backblazer documentation built on May 30, 2017, 6:15 a.m.