Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gcs_list_buckets

List buckets


Description

List the buckets your projectId has access to

Usage

gcs_list_buckets(
  projectId,
  prefix = "",
  projection = c("noAcl", "full"),
  maxResults = 1000,
  detail = c("summary", "full")
)

Arguments

projectId

Project containing buckets to list

prefix

Filter results to names beginning with this prefix

projection

Properties to return. Default noAcl omits acl properties

maxResults

Max number of results

detail

Set level of detail

Details

Columns returned by detail are:

  • summary - name, storageClass, location ,updated

  • full - as above plus: id, selfLink, projectNumber, timeCreated, metageneration, etag

Value

data.frame of buckets

See Also

Examples

## 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]])


## End(Not run)

googleCloudStorageR

Interface with Google Cloud Storage API

v0.6.0
MIT + file LICENSE
Authors
Mark Edmondson [aut, cre] (<https://orcid.org/0000-0002-8434-3881>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.