View source: R/b2UpdateBucket.R
b2UpdateBucket | R Documentation |
b2UpdateBucket
modifies the bucket type of an existing bucket in the
user's account.
b2UpdateBucket(bucketId, bucketType)
bucketId |
The unique identifier of the bucket to be updated. A list of
all the user's bucket IDs may be found using the |
bucketType |
Supported bucket types are allPublic and allPrivate. |
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.
If successful a list containing the accountId
,
bucketId
, bucketName
and bucketType
will all be echoed
back to the user.
## Not run:
# Make a bucket Private
b2UpdateBucket(bucketId = "aUniqueBucketId", bucketType = "allPrivate")
# Make a bucket Public
b2UpdateBucket(bucketId = "aUniqueBucketId", bucketType = "allPublic")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.