powered by
List the buckets your projectId has access to
gcs_list_buckets( projectId, prefix = "", projection = c("noAcl", "full"), maxResults = 1000, detail = c("summary", "full") )
Project containing buckets to list
Filter results to names beginning with this prefix
Properties to return. Default noAcl omits acl properties
Max number of results
Set level of detail
data.frame of buckets
data.frame
Columns returned by detail are:
detail
summary - name, storageClass, location ,updated
summary
full - as above plus: id, selfLink, projectNumber, timeCreated, metageneration, etag
full
Other bucket functions: gcs_create_bucket(), gcs_create_lifecycle(), gcs_delete_bucket(), gcs_get_bucket(), gcs_get_global_bucket(), gcs_global_bucket()
gcs_create_bucket()
gcs_create_lifecycle()
gcs_delete_bucket()
gcs_get_bucket()
gcs_get_global_bucket()
gcs_global_bucket()
# NOT RUN { # } # NOT RUN { buckets <- gcs_list_buckets("your-project") ## use the name of the bucket to get more meta data bucket_meta <- gcs_get_bucket(buckets$name[[1]]) # } # NOT RUN { # }
Run the code above in your browser using DataLab