← Google Cloud

Switch Instance Boot Status with Google Cloud API

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

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Switch Instance Boot Status with the Google Cloud API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

Create a workflow to Switch Instance Boot Status 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 Switch Instance Boot Status action
    1. Connect your Google Cloud account
    2. Select a Zone
    3. Select a Instance Name
    4. Select a New Instance Status
    5. Configure Wait Completion
  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

Integrations

Switch Instance Boot Status with Google Cloud API on New Requests from HTTP / Webhook API
HTTP / Webhook + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Submission from Typeform API
Typeform + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Submission (Instant) from Jotform API
Jotform + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Custom Webhook Events from Stripe API
Stripe + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Scheduled Tasks from Pipedream API
Pipedream + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on npm Download Counts from npm API
npm + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Activity Created Event from Strava API
Strava + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Account Created from Zoom Admin API
Zoom Admin + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New or Removed Documents in a Collection from Fauna API
Fauna + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New or changed appointments from SuperSaaS API
SuperSaaS + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Deploy Failure (Instant) from Netlify API
Netlify + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Weather for ZIP Code from HERE API
HERE + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Event Cancelled from Google Calendar API
Google Calendar + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Comments by Keyword from Hacker News API
Hacker News + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Events from Gorgias (API Key) API
Gorgias (API Key) + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Task Completed (Instant) from Asana API
Asana + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Action Created from iAuditor by SafetyCulture API
iAuditor by SafetyCulture + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Agency Listing Updated from Domain Group API
Domain Group + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Asset Uploaded from Shotstack API
Shotstack + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Assignment Done from Google Classroom API
Google Classroom + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Balance Updated from Mocean API API
Mocean API + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on BigQuery - New Row from Google Cloud API
Google Cloud + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Booking Cancelled from Cal.com API
Cal.com + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Booking Contact Updated from Slottable API
Slottable + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Box Changed Pipeline (Instant) from Streak API
Streak + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Budget Snapshot Event (Instant) from Procore API
Procore + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Call Ended (Instant) from Rinkel API
Rinkel + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Cancelled Booking with Customer from Appointedd API
Appointedd + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Card Archived (Instant) from Trello API
Trello + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Card Created (Instant) from Pipefy API
Pipefy + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Catalog Item Updated from Square API
Square + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Category Overspent from You Need a Budget API
You Need a Budget + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Changed Task Status from Yanado API
Yanado + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Changes to Specific Files from Google Drive API
Google Drive + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Chat Status Updated from HelpCrunch API
HelpCrunch + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Client Updated from Paymo API
Paymo + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Client Updated from RiskAdvisor API
RiskAdvisor + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Collection Item Updated from Webflow (v2) API
Webflow (v2) - do not use + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Company Updated from HubSpot API
HubSpot + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Completed Document (Instant) from signNow API
signNow + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Contact Activated from Vision6 API
Vision6 + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Contact Created from Apollo.io API
Apollo.io + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Contact Created from Mailjet API
Mailjet + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Contact Deleted (Instant) from SmashSend API
SmashSend + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Contact Joins Vault (Instant) from AttractWell API
AttractWell + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Contact Status Updated from Ambivo API
Ambivo + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Contact Updated from ProWorkflow API
ProWorkflow + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Custom Events (Instant) from Zoom API
Zoom + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Custom Interval from Schedule API
Schedule + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Customer Card Expired (Instant) from Chargebee API
Chargebee + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Customer Created (Instant) from Customer Fields API
Customer Fields + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Customer Created from Plain API
Plain + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Customer Updated (Instant) from Loyverse API
Loyverse + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Dataset Refresh Completed from Microsoft Power BI API
Microsoft Power BI + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Deleted Issue (Instant) from Taiga API
Taiga + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Document Completed from Crove API
Crove + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Document Creation Failed (Instant) from PandaDoc API
PandaDoc + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Document Export Failed from Cloudpress API
Cloudpress + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Employee Updated from Breathe API
Breathe + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Envelope Sent or Complete from Docusign API
Docusign + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Envelope Sent or Complete from Docusign Developer API
Docusign Developer + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Event Created from Team Up API
Team Up + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Event Start from Teamup API
Teamup + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Event Updated (Instant) from Add to Calendar PRO API
Add to Calendar PRO + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Exchange Rate Updated from CurrencyScoop API
CurrencyScoop + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Expense Created from Splitwise API
Splitwise + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Failed Monitor from Drata API
Drata + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on File Deleted from DigitalOcean Spaces API
DigitalOcean Spaces + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Form Created from 123FormBuilder API
123FormBuilder + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Incident Updated (Instant) from Statuspage API
Statuspage + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Inventory Object Updated from Booking Experts API
Booking Experts + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Inventory Updated from Lightspeed Retail POS API
Lightspeed Retail POS + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Inventory Updated from Sellercloud API
Sellercloud + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Invitee Canceled (Instant) from Calendly API
Calendly (Key) + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Issue Created from PractiTest API
PractiTest + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Issued Credential from Accredible API
Accredible + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Item Position Changed from Miro Developer App API
Miro Developer App + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Job Finished (Instant) from Cloud Convert API
Cloud Convert + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Job Run Completed (Instant) from dbt Cloud API
dbt Cloud + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Lead Details Updated from CINC API
CINC + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Link Clicked from Mailchimp API
Mailchimp + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Member Created from Patreon API
Patreon + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on Message Received from LoopMessage API
LoopMessage + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New 1-on-1 Created from 15Five API
15Five + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Abandoned Cart from Shopify (Developer App) API
Shopify + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Access Token Event from LaunchDarkly (OAuth) API
LaunchDarkly (OAuth) + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Access Token Event from LaunchDarkly API
LaunchDarkly + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Account Created from Exact API
Exact + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Account Created from Recurly API
Recurly + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Account Data Change from 46elks API
46elks + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Account Event (Instant) from Overledger API
Overledger + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Account Event from Salesflare API
Salesflare + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Account from Amilia API
Amilia + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Account from Totango API
Totango + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Action (Instant) from Stormboard API
Stormboard + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Action (Instant) from Ticket Tailor API
Ticket Tailor + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Action Created from 21RISK API
21RISK + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Action Created from Hive API
Hive + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Action Created from Pushcut API
Pushcut + Google Cloud
 
Try it
Switch Instance Boot Status with Google Cloud API on New Action Performed from PostHog API
PostHog + Google Cloud
 
Try it

Details

This is a pre-built, source-available 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.

Switch Instance Boot Status on Google Cloud
Description:Switch a virtual machine instance boot status to start or stop it. [See the documentation](https://cloud.google.com/compute/docs/instances/stop-start-instance)
Version:0.0.4
Key:google_cloud-switch-instance-boot-status

Code

import googleCloud from "../../google_cloud.app.mjs"; import { ZonesClient, ZoneOperationsClient, InstancesClient, } from "@google-cloud/compute"; import { ConfigurationError } from "@pipedream/platform"; export default { name: "Switch Instance Boot Status", version: "0.0.4", annotations: { destructiveHint: true, openWorldHint: true, readOnlyHint: false, }, key: "google_cloud-switch-instance-boot-status", type: "action", description: "Switch a virtual machine instance boot status to start or stop it. [See the documentation](https://cloud.google.com/compute/docs/instances/stop-start-instance)", props: { googleCloud, zone: { label: "Zone", description: "The unique zone name", type: "string", async options() { const zones = await this.listZones(); return zones.map((item) => (item.name)); }, }, instanceName: { label: "Instance Name", description: "The unique instance name", type: "string", async options({ zone }) { if (!zone) { return []; } const instances = await this.listVmInstancesByZone(zone); return instances.map((item) => (item.name)); }, }, newInstanceStatus: { label: "New Instance Status", description: "Select if the instance should be either switched to started or stopped status", type: "string", options: [ "start", "stop", ], }, waitCompletion: { label: "Wait Completion", description: "Wait until the end of the operation", type: "boolean", default: false, }, }, methods: { zonesClient() { return new ZonesClient(this.googleCloud.sdkParams()); }, zoneOperationsClient() { return new ZoneOperationsClient(this.googleCloud.sdkParams()); }, instancesClient() { return new InstancesClient(this.googleCloud.sdkParams()); }, async listZones() { const zonesClient = this.zonesClient(); const sdkParams = this.googleCloud.sdkParams(); const [ zones, ] = await zonesClient.list({ project: sdkParams.projectId, }); return zones; }, async waitOperation(operation) { const operationsClient = this.zoneOperationsClient(); const sdkParams = this.googleCloud.sdkParams(); while (operation.status !== "DONE") { [ operation, ] = await operationsClient.wait({ operation: operation.name, project: sdkParams.projectId, zone: operation.zone.split("/").pop(), }); } return operation; }, async listVmInstancesByZone(zone) { const instancesClient = this.instancesClient(); const sdkParams = this.googleCloud.sdkParams(); const [ instances, ] = await instancesClient.list({ project: sdkParams.projectId, zone, }); return instances; }, async switchInstanceBootStatus(zone, instance, newStatus) { if (![ "start", "stop", ].includes(newStatus)) { throw new ConfigurationError("The new VM boot status must be 'start' or 'stop'."); } const instancesClient = this.instancesClient(); const sdkParams = this.googleCloud.sdkParams(); const [ response, ] = await instancesClient[newStatus]({ project: sdkParams.projectId, zone, instance, }); return response.latestResponse; }, }, async run({ $ }) { const { zone, instanceName, waitCompletion, newInstanceStatus, } = this; let operation = await this.switchInstanceBootStatus( zone, instanceName, newInstanceStatus, ); if (waitCompletion) { operation = await this.waitOperation(operation); } $.export("$summary", `Instance ${instanceName} boot status was set to ${newInstanceStatus}.`); return operation; }, }; 

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.
ZonezonestringSelect a value from the drop down menu.
Instance NameinstanceNamestringSelect a value from the drop down menu.
New Instance StatusnewInstanceStatusstringSelect a value from the drop down menu:startstop
Wait CompletionwaitCompletionboolean

Wait until the end of the operation

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.

  1. Create a service account in GCP and set the permissions you need for Pipedream workflows.
  2. Generate a service account key
  3. Download the key details in JSON format
  4. Upload the key below.

About Google Cloud

The Google Cloud Platform, including BigQuery

More Ways to Use Google Cloud

Triggers

New Pub/Sub Messages from the Google Cloud API

Emit new Pub/Sub topic in your GCP account. Messages published to this topic are emitted from the Pipedream source.

 
Try it
BigQuery - New Row from the Google Cloud API

Emit new events when a new row is added to a table

 
Try it
BigQuery - Query Results from the Google Cloud API

Emit new events with the results of an arbitrary query

 
Try it

Actions

Bigquery Insert Rows with the Google Cloud API

Inserts rows into a BigQuery table. See the docs and for an example here

 
Try it
Create Bucket with the Google Cloud API

Creates a bucket on Google Cloud Storage See the docs

 
Try it
Create Scheduled Query with the Google Cloud API

Creates a scheduled query in Google Cloud. See the documentation

 
Try it
Get Bucket Metadata with the Google Cloud API

Gets Google Cloud Storage bucket metadata. See the docs

 
Try it
Get Object with the Google Cloud API

Downloads an object from a Google Cloud Storage bucket, See the docs

 
Try it
List Buckets with the Google Cloud API

List Google Cloud Storage buckets, See the docs

 
Try it
Logging - Write Log with the Google Cloud API

Writes log data to the Logging service, See the docs

 
Try it
Run Query with the Google Cloud API

Runs a query in BigQuery. See the documentation for more information.

 
Try it
Search Objects with the Google Cloud API

Search objects by a prefix, See the docs

 
Try it
Update Signature for Email in Organization with the Google Cloud API

Update the signature for a specific email address in an organization. A Google Cloud service account with delegated domain-wide authority is required for this action. See the documentation

 
Try it
Upload An Object with the Google Cloud API

Upload an object to a Google Cloud Storage bucket, See the docs

 
Try it

Explore Other Apps

1
-
24
of
2,800+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.