Google Cloud Storage

Description

Interact with GCP objects and buckets

Component key: google-cloud-storage

Authorization Methods

Google Cloud Storage requires one of the following authorization methods.

KeyNameDescription
private_keyPrivate KeyPrivate Key authorization based on a username/private key combination

Actions

Copy files within Google Cloud Storage

Copy a file from one Google Cloud Storage bucket to another

Action key: copyFile

Inputs

KeyTypeDefaultRequiredComments
destinationBucketNameSTRINGNoneTrue
destinationFileNameSTRINGNoneTrue
projectSTRINGNoneTrue
sourceBucketNameSTRINGNoneTrue
sourceFileNameSTRINGNoneTrue

Delete a file within Google Cloud Storage

Delete a file from a Google Cloud Storage bucket

Action key: deleteFile

Inputs

KeyTypeDefaultRequiredComments
bucketNameSTRINGNoneTrue
fileNameSTRINGNoneTrue
projectSTRINGNoneTrue

Download a file from Google Cloud Storage

Download a file from Google Cloud Storage

Action key: downloadFile

Inputs

KeyTypeDefaultRequiredComments
bucketNameSTRINGNoneTrue
fileNameSTRINGNoneTrue
projectSTRINGNoneTrue

List files in a Google Cloud Storage bucket

List files in a Google Cloud Storage bucket

Action key: listFiles

Inputs

KeyTypeDefaultRequiredComments
bucketNameSTRINGNoneTrue
projectSTRINGNoneTrue

Save a file to Google Cloud Storage

Save a file to Google Cloud Storage

Action key: saveFile

Inputs

KeyTypeDefaultRequiredComments
bucketNameSTRINGNoneTrue
fileContentsDATANoneTrueBinary file data or a string
fileNameSTRINGNoneTrue
projectSTRINGNoneTrue
note

File Contents can be a reference to a binary file. For example, if you have an HTTP Get action pull a .png image, you can reference outputs.httpget.all to write the .png to Google Cloud Storage. Or, it can be simple text, like 'Hello World'

GCP Developer Documentation

Documentation for the Node.js client used in this component can be found at https://googleapis.dev/nodejs/storage/latest.

The Google Cloud Storage component requires a username / private key pair for authentication. To create a GCP service account, follow directions on https://cloud.google.com/docs/authentication/getting-started.

After creating a service account, you will have an option to create a key for the account. This will generate a .json file with type, project_id, and a dozen other fields. The client_email field (something like service-account-name@gcp-account-id.iam.gserviceaccount.com) will serve as your credential username, and the private_key which starts with -----BEGIN PRIVATE KEY----- will serve as your credential private_key.

Last updated on