Returns the default object ACL entry for the specified entity on the specified bucket.
gcs_get_object_acl(
object_name,
bucket = gcs_get_global_bucket(),
entity = "",
entity_type = c("user", "group", "domain", "project", "allUsers",
"allAuthenticatedUsers"),
generation = NULL
)
Name of the object
Name of a bucket
The entity holding the permission. Not needed for entity_type allUsers
or allAuthenticatedUsers
The type of entity
If present, selects a spcfic revision of the object
Other Access control functions:
gcs_create_bucket_acl()
,
gcs_get_bucket_acl()
,
gcs_update_object_acl()
# NOT RUN {
# }
# NOT RUN {
# single user
gcs_update_object_acl("mtcars.csv",
bucket = gcs_get_global_bucket(),
entity = "joe@blogs.com",
entity_type = "user"))
acl <- gcs_get_object_acl("mtcars.csv", entity = "joe@blogs.com")
# all users
gcs_update_object_acl("mtcars.csv",
bucket = gcs_get_global_bucket(),
entity_type = "allUsers"))
acl <- gcs_get_object_acl("mtcars.csv", entity_type = "allUsers")
# }
Run the code above in your browser using DataLab