gcs_create_bucket

Create a new bucket

Create a new bucket in your project

Usage
gcs_create_bucket(name, projectId, location = "US",
  storageClass = c("STANDARD", "NEARLINE", "DURABLE_REDUCED_AVAILABILITY"),
  predefinedAcl = c("projectPrivate", "authenticatedRead", "private",
  "publicRead", "publicReadWrite"),
  predefinedDefaultObjectAcl = c("bucketOwnerFullControl", "bucketOwnerRead",
  "authenticatedRead", "private", "projectPrivate", "publicRead"),
  projection = c("noAcl", "full"), versioning = FALSE, lifecycle = NULL)
Arguments
name
Globally unique name of bucket to create
projectId
A valid Google project id
location
Location of bucket. See details
storageClass
Type of bucket
predefinedAcl
Apply predefined access controls to bucket
predefinedDefaultObjectAcl
Apply predefined access controls to objects
projection
Properties to return. Default noAcl omits acl properties
versioning
Set if the bucket supports versioning of its objects
lifecycle
A list of gcs_create_lifecycle objects
Details

https://cloud.google.com/storage/docs/bucket-locations

See Also

Other bucket functions: gcs_create_lifecycle, gcs_delete_bucket, gcs_get_bucket, gcs_get_global_bucket, gcs_global_bucket, gcs_list_buckets

Aliases
  • gcs_create_bucket
Documentation reproduced from package googleCloudStorageR, version 0.3.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.