Learn R Programming

googleCloudStorageR (version 0.7.0)

gcs_get_bucket_acl: Get Bucket Access Controls

Description

Returns the ACL entry for the specified entity on the specified bucket

Usage

gcs_get_bucket_acl(
  bucket = gcs_get_global_bucket(),
  entity = "",
  entity_type = c("user", "group", "domain", "project", "allUsers",
    "allAuthenticatedUsers")
)

Arguments

bucket

Name of a bucket, or a bucket object returned by gcs_create_bucket

entity

The entity holding the permission. Not needed for entity_type allUsers or allAuthenticatedUsers

entity_type

what type of entity

Used also for when a bucket is updated

Value

Bucket access control object

See Also

Other Access control functions: gcs_create_bucket_acl(), gcs_get_object_acl(), gcs_update_object_acl()

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
buck_meta <- gcs_get_bucket(projection = "full")

acl <- gcs_get_bucket_acl(entity_type = "project",
                          entity = gsub("project-","",
                                        buck_meta$acl$entity[[1]]))

# }

Run the code above in your browser using DataLab