Skip to main content

buckets

Creates, updates, deletes, gets or lists a buckets resource.

Overview

Namebuckets
TypeResource
Idfirebase.storage.buckets

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Resource name of the bucket.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, bucketsIdGets a single linked storage bucket.
listselectprojectsIdpageSize, pageTokenLists the linked storage buckets for a project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bucketsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a single linked storage bucket.

SELECT
name
FROM firebase.storage.buckets
WHERE projectsId = '{{ projectsId }}' -- required
AND bucketsId = '{{ bucketsId }}' -- required;