← Google Cloud

List Buckets with Google Cloud API

Pipedream makes it easy to connect APIs for Google Cloud and 800+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
List Buckets with the Google Cloud API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to List Buckets with the Google Cloud API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the List Buckets action
    1. Connect your Google Cloud account
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

List Buckets on Google Cloud
Description:List Google Cloud Storage buckets, [See the docs](https://googleapis.dev/nodejs/storage/latest/Storage.html#getBuckets)
Version:0.0.1
Key:google_cloud-list-buckets

Code

import googleCloud from "../../google_cloud.app.mjs";

export default {
  name: "List Buckets",
  version: "0.0.1",
  key: "google_cloud-list-buckets",
  type: "action",
  description: "List Google Cloud Storage buckets, [See the docs](https://googleapis.dev/nodejs/storage/latest/Storage.html#getBuckets)",
  props: {
    googleCloud,
  },
  async run({ $ }) {
    const [
      resp,
    ] = await this.googleCloud.storageClient().getBuckets();
    $.export("$summary", "Bucket list successfully fetched");
    return resp;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Google CloudgoogleCloudappThis component uses the Google Cloud app.

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.

About Google Cloud

The Google Cloud Platform