buckets
Creates, updates, deletes, gets or lists a buckets resource.
Overview
| Name | buckets |
| Type | Resource |
| Id | firebase.storage.buckets |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. Resource name of the bucket. |
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. Resource name of the bucket. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, bucketsId | Gets a single linked storage bucket. | |
list | select | projectsId | pageSize, pageToken | Lists 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.
| Name | Datatype | Description |
|---|---|---|
bucketsId | string | |
projectsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
Gets a single linked storage bucket.
SELECT
name
FROM firebase.storage.buckets
WHERE projectsId = '{{ projectsId }}' -- required
AND bucketsId = '{{ bucketsId }}' -- required
;
Lists the linked storage buckets for a project.
SELECT
name
FROM firebase.storage.buckets
WHERE projectsId = '{{ projectsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;