2025-08-04 06:49:49 +00:00
---
id: gcs
title: Google Cloud Storage
---
ToolJet can connect to GCS buckets and perform various operation on them.
< div style = {{paddingTop:'24px'}} >
## Connection
To establish a connection with the Google Cloud Storage data source, you can either click on the ** + Add new Data source** button located on the query panel or navigate to the ** [Data Sources ](/docs/data-sources/overview )** page through the ToolJet dashboard.
ToolJet requires the following to connect to a GCS datasource:
- **JSON Private Key**
You can follow the [google documentation ](https://cloud.google.com/docs/authentication/getting-started ) to get started.
2026-01-09 11:28:50 +00:00
< img className = "screenshot-full img-full" src = "/img/datasource-reference/gcs/gcs-connect-v2.png" alt = "gcs connection" / >
2025-08-04 06:49:49 +00:00
< / div >
< div style = {{paddingTop:'24px'}} >
## Querying GCS
1. Click on ** + Add** button of the query manager at the bottom panel of the editor.
2. Select the **GCS** datasource added in previous step.
3. Select the Operation.
4. Click on the **Preview** button to preview the output or Click on the **Run** button to create and trigger the query.
:::tip
2025-08-08 05:22:02 +00:00
Query results can be transformed using transformations. Read our transformations documentation to see how: [link ](/docs/app-builder/custom-code/transform-data )
2025-08-04 06:49:49 +00:00
:::
#### Supported operations
- **[Read file](#read-file)**
- **[Upload file](#uplodad-file)**
- **[List buckets](#list-buckets)**
- **[List files in a bucket](#list-files-in-a-bucket)**
- **[Signed url for download](#signed-url-for-download)**
- **[Signed url for upload](#signed-url-for-upload)**
2026-01-09 11:28:50 +00:00
< img className = "screenshot-full img-full" src = "/img/datasource-reference/gcs/listops.png" alt = "gcs list of operations" style = {{marginBottom:'15px'}} / >
2025-08-04 06:49:49 +00:00
### Read File
Reads the content of a file from GCS.
#### Required Parameter
- **Bucket**
- **File Name**
2026-01-09 11:28:50 +00:00
< img className = "screenshot-full img-full" src = "/img/datasource-reference/gcs/read-query.png" alt = "gcs read query" style = {{marginBottom:'15px'}} / >
2025-08-04 06:49:49 +00:00
### Uplodad File
Uploads a file to GCS.
#### Required Parameter
- **Bucket**
- **File name**
- **Upload data**
#### Optional Parameter
- **Content Type**
- **Encoding**
2026-01-09 11:28:50 +00:00
< img className = "screenshot-full img-full" src = "/img/datasource-reference/gcs/upload-query.png" alt = "gcs upload query" style = {{marginBottom:'15px'}} / >
#### Example:
```yaml
{
'name' : 'Shruthi Jotsna'
}
```
2025-08-04 06:49:49 +00:00
### List Buckets
Retrieves a list of available buckets.
2026-01-09 11:28:50 +00:00
< img className = "screenshot-full img-full" src = "/img/datasource-reference/gcs/list-bucket-query.png" alt = "gcs list query" style = {{marginBottom:'15px'}} / >
2025-08-04 06:49:49 +00:00
### List Files in a Bucket
Lists files within a specific GCS bucket.
#### Required Parameter
- **Bucket**
#### Optional Parameter
- **Prefix**
2026-01-09 11:28:50 +00:00
< img className = "screenshot-full img-full" src = "/img/datasource-reference/gcs/list-files-query.png" alt = "gcs list query" style = {{marginBottom:'15px'}} / >
2025-08-04 06:49:49 +00:00
### Signed URL for Download
Generates a signed URL for downloading a file.
#### Required Parameter
- **Bucket**
- **File Name**
#### Optional Parameter
- **Expires in**
2026-01-09 11:28:50 +00:00
< img className = "screenshot-full img-full" src = "/img/datasource-reference/gcs/signed-download-query.png" alt = "gcs url download query" style = {{marginBottom:'15px'}} / >
2025-08-04 06:49:49 +00:00
### Signed URL for Upload
Generates a signed URL for uploading a file.
#### Required Parameter
- **Bucket**
- **File name**
#### Optional Parameter
- **Expires in**
- **Content Type**
2026-01-09 11:28:50 +00:00
< img className = "screenshot-full img-full" src = "/img/datasource-reference/gcs/signed-upload-query.png" alt = "gcs url upload query" style = {{marginBottom:'15px'}} / >
2025-08-04 06:49:49 +00:00
< / div >