DefaultObjectAccessControls: list

Retrieves default object ACL entries on the specified bucket .

Required permissions

To use this method, the authenticated user must have the following IAM permissions for the bucket containing the default object ACL entry:

  • storage.buckets.get
  • storage.buckets.getIamPolicy

Request

HTTP request

GET https://storage.googleapis.com/storage/v1/b/ bucket 
/defaultObjectAcl

In addition to standard query parameters , the following query parameters apply to this method.

To see an example of how to include query parameters in a request, see the JSON API Overview page.

Parameters

Parameter name
Value
Description
Path parameters
bucket
string
Name of a bucket.
Optional query parameters
ifMetagenerationMatch
long
If present, only return default ACL listing if the bucket's current metageneration matches this value.
ifMetagenerationNotMatch
long
If present, only return default ACL listing if the bucket's current metageneration does not match the given value.

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

 { 
  
 "kind" 
 : 
  
 "storage#objectAccessControls" 
 , 
  
 "items" 
 : 
  
 [ 
  
  defaultObjectAccessControls 
  
 Resource 
 
  
 ] 
 } 
Property name Value Description Notes
kind
string The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls .
items[]
list The list of defaultObjectAccessControls .

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Create a Mobile Website
View Site in Mobile | Classic
Share by: