DefaultObjectAccessControls: list Stay organized with collections Save and categorize content based on your preferences.
Retrieves default object ACL entries on the specifiedbucket.
Required permissions
To use this method, the authenticated user must have the following IAM permissionsfor the bucket containing the default object ACL entry:
storage.buckets.getstorage.buckets.getIamPolicy
400 Bad Request response for buckets with uniform bucket-level access enabled. Usestorage.buckets.getIamPolicy andstorage.buckets.setIamPolicy to control access instead.Request
HTTP request
GET https://storage.googleapis.com/storage/v1/b/bucket/defaultObjectAcl
In addition tostandard query parameters, the following query parameters apply to this method.
To see an example of how to include query parameters in a request, see theJSON 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":[defaultObjectAccessControlsResource]}
| Property name | Value | Description | Notes |
|---|---|---|---|
kind | string | The kind of item this is. For lists of object access control entries, this is alwaysstorage#objectAccessControls. | |
items[] | list | The list ofdefaultObjectAccessControls. |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-17 UTC.