* canvas * components * WIP * Feedback Improvements * Component Library * library * canvas grid size and numbers * update component library intro * final feedback for canvas and ui component * comp prop * canvas feedback by nechal * add icons in library * component properties * component properties * multi pages * update: datasource connection * WIP - Component Inspect * sidebar * Add component table * remove old comp layout * remove (Legacy) * [wip] component properties * merge: app builder overview * component properties * fix: updated creating and accessing queries * pages * pages update * fix: review * fix: review * component properties - karan and devang feedback * page and component data * fix: review * Update folder structure * pages call feedback * fix: review * feat: transformation and binding * fix: transformation * fix: transformation * remove old content * fix: review * feat: custom code structure * WIP Component States * component state * feat: fx doc * fix: image error * event wip * comp state * events and logic overview * update nav bar * wip event triggers * fix: fx doc * Event Triggers * csa and actions * update: custom code * fix: call * feat: code-transformations * feat: manage variables * fix: review-transform-data * fix: manage variables * nav bar struct update and variables docs * wip ss * imgs till event handler docs * fix: review * feat: import libraries * fix: review * wip use cases ss * complete events * wip inspector * fix: review * wip inspector * fix: review * wip inspector * wip inspector * wip inspector * Inspector * complete inspector * fix: runpy * feat: secrets and contants * final feedback update * fix: review * fix: sidebar * fix: review * Add Screenshot * comment sidebar * fix: review * live feedback * added flowchart * final update * update banner * first level grammatical fixes * remove extra full stop * work on imgs * update general flow and fix grammatical issues * correct path * correct path * Update Interlinking * delete old files * fix broken link * fix links --------- Co-authored-by: PriteshKiri <pritesh.d.kiri@gmail.com> Co-authored-by: Karan Rathod <karan.altcampus@gmail.com>
3.3 KiB
| id | title |
|---|---|
| gcs | Google Cloud Storage |
ToolJet can connect to GCS buckets and perform various operation on them.
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 page through the ToolJet dashboard.
ToolJet requires the following to connect to a GCS datasource:
- JSON Private Key
You can follow the google documentation to get started.
Querying GCS
- Click on + Add button of the query manager at the bottom panel of the editor.
- Select the GCS datasource added in previous step.
- Select the Operation.
- Click on the Preview button to preview the output or Click on the Run button to create and trigger the query.
:::tip Query results can be transformed using transformations. Read our transformations documentation to see how: link :::
Supported operations
- Read file
- Upload file
- List buckets
- List files in a bucket
- Signed url for download
- Signed url for upload
<img className="screenshot-full" src="/img/datasource-reference/gcs/gcs-query-v2.png" alt="gcs query" style={{marginBottom:'15px'}} />
Read File
Reads the content of a file from GCS.
Required Parameter
- Bucket
- File Name
<img className="screenshot-full" src="/img/datasource-reference/gcs/readFile.png" alt="gcs query" style={{marginBottom:'15px'}} />
Uplodad File
Uploads a file to GCS.
Required Parameter
- Bucket
- File name
- Upload data
Optional Parameter
- Content Type
- Encoding
<img className="screenshot-full" src="/img/datasource-reference/gcs/uploadFile.png" alt="gcs query" style={{marginBottom:'15px'}} />
List Buckets
Retrieves a list of available buckets.
<img className="screenshot-full" src="/img/datasource-reference/gcs/listBuckets.png" alt="gcs query" style={{marginBottom:'15px'}} />
List Files in a Bucket
Lists files within a specific GCS bucket.
Required Parameter
- Bucket
Optional Parameter
- Prefix
<img className="screenshot-full" src="/img/datasource-reference/gcs/listFiles.png" alt="gcs query" style={{marginBottom:'15px'}} />
Signed URL for Download
Generates a signed URL for downloading a file.
Required Parameter
- Bucket
- File Name
Optional Parameter
- Expires in
<img className="screenshot-full" src="/img/datasource-reference/gcs/urlDownload.png" alt="gcs query" style={{marginBottom:'15px'}} />
Signed URL for Upload
Generates a signed URL for uploading a file.
Required Parameter
- Bucket
- File name
Optional Parameter
- Expires in
- Content Type
<img className="screenshot-full" src="/img/datasource-reference/gcs/urlUpload.png" alt="gcs query" style={{marginBottom:'15px'}} />