Google Cloud

The Google Cloud Platform

Go to site
Explore
/
Apps
/
Google Cloud

Google Cloud API Integrations

Build and run workflows using the Google Cloud API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

// Required workaround to get the @google-cloud/storage package
// working correctly on Pipedream
require("@dylburger/umask")()

const { Storage } = require('@google-cloud/storage')

const key = JSON.parse(auths.google_cloud.key_json)
 
// Creates a client from a Google service account key.
// See https://cloud.google.com/nodejs/docs/reference/storage/1.6.x/global#ClientConfig
const storage = new Storage({
  projectId: key.project_id,
  credentials: {
    client_email: key.client_email,
    private_key: key.private_key,
  }
})

// Uncomment this section and rename for your bucket before running this code
// const bucketName = 'pipedream-test-bucket';

await storage.createBucket(bucketName)
console.log(`Bucket ${bucketName} created.`)
google_cloud_storage_upload_file

Upload json file to GCStorage

 
Try it
Google Cloud Storage - Delete Bucket

Deletes a bucket

 
Try it
Google Cloud Storage - Delete File

Deletes a file from a bucket

 
Try it
Google Cloud Storage - List Buckets

Lists buckets in storage account

 
Try it
Google Cloud Storage - Make File Private

Makes a file to have private access

 
Try it

Authentication

Google Cloud uses API keys for authentication. When you connect your Google Cloud account, Pipedream securely stores the keys so you can easily authenticate to Google Cloud APIs in both code and no-code steps.

When you create a service account in GCP, you'll be asked to generate a service account key. Create that key and download the key details in JSON format.

Open the key JSON in a text editor, then copy and paste its contents here.