Google Cloud Storage

Google Cloud Storage is a RESTful online file storage web service for storing and accessing data on Google Cloud Platform infrastructure.

Integration with LogicHub

Connecting with Google Storage

Authentication

We can access Google storage using Google service account credentials. Below details are required for that

  1. Google service account credentials file. This JSON file can be created/downloaded from https://console.cloud.google.com/iam-admin/serviceaccounts.

To connect to Google Storage following details are required:

  • Label: Connection name.
  • Reference Values: Define variables here to templatize integration connections and actions. For example, you can use https://www.{{hostname}}.com where, hostname is a variable defined in this input. For more information on how to add data, see 'Add Data' Input Type for Integrations.
  • JSON Credentials: Copy the Google credentials content JSON file that you would like to use.

Actions with Google Storage

Update ACL

Update the access control lists of the storage bucket/object. The following are the inputs needed for that:

  • Action Type: Type of action we wish to perform on the access (Grant/Revoke).

  • Bucket: Bucket of Google cloud storage on which we wish to update ACL.

  • Object: Object in the bucket on which we wish to update ACL. If object is given then ACL will be updated at object level, else bucket level.

  • User Type: Type of user - User/Group/Project/Domain.

  • User ID: Email ID of above.

  • Role Type: Type of role you wish to grant/revoke, possible values are READER/WRITER/OWNER.

Inputs to this Action

Output of Action

Add Lifecycle Rule

Add a lifecycle rule on the bucket. The following are the inputs needed:

  • Bucket: Bucket of Google cloud storage on which we wish to update lifecycle rule.

  • Lifecycle rule - age: Lifecycle rule based on the age of the bucket in days

  • Lifecycle rule - creation date: Lifecycle rule based on the creation date of the bucket in DDMMYYYY format

  • Lifecycle rule - matching storage classes: Lifecycle rule based on the storage class of the bucket (nearline/coldline/standard)

  • Lifecycle rule - newer versions: Lifecycle rule based on the number of newer versions of that bucket

  • Lifecycle rule - live state: Lifecycle rule based on the is_live status of that bucket

Action when rules are met: Action to be taken when the above lifecycle rules are met. Possible actions are ‘Delete’/'Move to Standard'/ ‘Move to Coldline’/ ‘Move to Nearline’.

🚧

Important

Providing all lifecycle rules is not mandatory.

Inputs to this Action

Output of Action


Did this page help you?