Skip to content
SalehRam CLOUD / CODE / LEARNING

SalehRam / Cloud · Code · Learning

Compute Engine VM Operations

Minimal Python Cloud Function handlers demonstrating start and stop requests for a specified Compute Engine virtual machine.

GOOGLE CLOUD / PYTHON AUTOMATION

The problem behind the project

Small, understandable examples can make a cloud API easier to adopt. This repository demonstrates the core start and stop calls behind an HTTP-triggered VM operation, alongside the related technical walkthrough on this site.

What it includes

  • Separate start_vm and stop_vm request handlers.
  • Google Compute Engine v1 API client integration.
  • Returns the operation response from the Compute Engine API.

Built with

Python · Google Cloud Functions · Compute Engine API · google-api-python-client

Project context

A historical code example, not a complete scheduling or cost-management platform. Project, zone, instance, permissions, authentication, and a supported runtime must be configured and reviewed before deployment. An accepted API operation is not confirmation that the VM has finished changing state.

Explore the source on GitHub

Read the related technical article

Back to selected work