gcs_create_bucket {googleCloudStorageR} | R Documentation |
Create a new bucket
Description
Create a new bucket in your project
Usage
gcs_create_bucket(
name,
projectId,
location = "US",
storageClass = c("MULTI_REGIONAL", "REGIONAL", "STANDARD", "NEARLINE", "COLDLINE",
"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
See here for details on location options
See Also
Other bucket functions:
gcs_create_lifecycle()
,
gcs_delete_bucket()
,
gcs_get_bucket()
,
gcs_get_global_bucket()
,
gcs_global_bucket()
,
gcs_list_buckets()
[Package googleCloudStorageR version 0.7.0 Index]