Stay organized with collections
Save and categorize content based on your preferences.
Retrieves a list of buckets for a given project, ordered in the list lexicographically by name.
Try it now.
The authenticated user must have the storage.buckets.list IAM
permission to use this method. To list IAM policies for a bucket, the authenticated
user must also have the storage.buckets.getIamPolicy permission.
To see an example of how to include query parameters in a request, see the
JSON API Overview page.
Required query parameters
A valid API project identifier.
Optional query parameters
Maximum number of buckets to return in a single response. The service may return fewer
results than maxResults so the presence of nextPageToken should
always be checked. The service limits to:
200 items if projection=full.
1,000 items if projection=noAcl.
A previously-returned page token representing part of the larger set of results to view.
The pageToken is an encoded field containing the name of the last item
(bucket) in the returned list. In a subsequent request using the pageToken,
items that come after the pageToken are shown (up to maxResults).
If you start a listing and then create a new bucket before using a pageToken
to continue listing, you will not see the new bucket in subsequent listing results if it
is in part of the bucket namespace already listed.
Filter results to buckets whose names begin with this prefix.
Set of properties to return. Defaults to noAcl.
Acceptable values are:
full: Include all properties.
noAcl: Omit owner, acl, and
Do not supply a request body with this method.
If successful, this method returns a response body with the following structure:
The kind of item this is. For lists of buckets, this is always
The continuation token. Provide this value as the pageToken of a subsequent
request in order to return the next page of results. Note that the next page may be empty.
If this is the last page of results, then no continuation token is returned. The presence
of this parameter in the response should always be checked to ensure a complete listing of
all the results.
The nextPageToken is the name of the last bucket in the returned
list. In a subsequent list request using the pageToken, items that come after
the token are shown (up to maxResults).