# Google Cloud - Compute Engine - Instance Scheduling PoC

**URL:** <https://discourse.nodered.org/t/google-cloud-compute-engine-instance-scheduling-poc/57419>\
**Category:** Share Your Projects\
**Created:** [28 January 2022 19:29 UTC](https://discourse.nodered.org/t/google-cloud-compute-engine-instance-scheduling-poc/57419 "2022-01-28T19:29:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ari](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ari/32/55234_2.png) [@ari](https://discourse.nodered.org/u/ari)\
**Post date:** [28 January 2022 19:29 UTC](https://discourse.nodered.org/t/google-cloud-compute-engine-instance-scheduling-poc/57419/1 "2022-01-28T19:29:12Z")

</div>

Hi,

This is my proof of concept for managing the scheduling of GCP instances. This is a demo flow that simply turns an instance on if it's off, and turns it off if its on. If it's in a pending stage it waits and checks again.

 ![Screen Shot 2022-01-28 at 3.19.13 pm](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/f/6f2f1c4cfe436a1a301192fc1a00b9e6d9ccaa08.png)

I've worked on projects at large enterprises (banks, retail chains) where we've built custom scheduling solutions from the ground up (dev, task queues, distributed processing). So really impressed that I can quickly connect a few things together and have a working concept in a fraction of the time it took us.

As a learning exercise I decided to also create my own node that handles various operations of GCE Instances. It's configurable from the UI otherwise it can read in from `msg.payload` as shown in the below screenshot.

- Get
- List
- Stop
- Start
- Reset
- Delete

 ![Screen Shot 2022-01-28 at 3.24.46 pm](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/c/3ce8dcc65805c522c1bb95b9ba92706554bc23e2.png)

It's still fairly basic, but hopefully I can contribute it to the GCP community on GitHub for Node Red as they seem to lack any GCE nodes.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 January 2022 19:37 UTC](https://discourse.nodered.org/t/google-cloud-compute-engine-instance-scheduling-poc/57419/2 "2022-01-28T19:37:09Z")

</div>

Hi @ari

Welcome to the forum.  
I'd just like to say it's a great first post but could you please just paste your images directly into the response instead of putting them on imgur?

Thanks for sharing.

---

<div class="post-metadata">

**Author:** ![ari](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ari/32/55234_2.png) [@ari](https://discourse.nodered.org/u/ari)\
**Post date:** [28 January 2022 19:39 UTC](https://discourse.nodered.org/t/google-cloud-compute-engine-instance-scheduling-poc/57419/3 "2022-01-28T19:39:32Z")

</div>

Fixed! Didn't see the upload icon.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 January 2022 19:41 UTC](https://discourse.nodered.org/t/google-cloud-compute-engine-instance-scheduling-poc/57419/4 "2022-01-28T19:41:10Z")

</div>

You can literally copy and paste from your clipboard a snapshot image or a file. No need to upload.
