Google Cloud Compute Engine Firewalls API

Manage firewall rules

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PATCH /compute/v1/projects/{project}/global/firewalls/{firewall} Patch a global firewall rule · Patch firewalls #
Ask an LLM
“How do I change just the allowed ports of a global firewall rule?”
“Can I turn off a firewall rule without deleting it?”
Tell an agent
Patch global firewall rule {firewall} in project {project} to allow only HTTPS.
Set disabled to {disabled} on global firewall {firewall}.
DELETE /compute/v1/projects/{project}/global/firewalls/{firewall} Delete a global firewall rule · Delete firewalls #
Ask an LLM
“How do I delete a global firewall rule?”
“Can I remove a firewall rule from my project by name?”
Tell an agent destructive · confirm first
Delete firewall rule {firewall} from project {project}.
Remove global firewall {firewall}.
PUT /compute/v1/projects/{project}/global/firewalls/{firewall} Replace a global firewall rule · Update firewalls #
Ask an LLM
“How do I overwrite a global firewall rule with a full new definition?”
“Does updating a firewall replace every field, even ones I leave out?”
Tell an agent
Replace global firewall rule {firewall} in project {project} with this full definition.
Overwrite the entire global firewall {firewall} with a new priority and allowed list.
GET /compute/v1/projects/{project}/global/firewalls/{firewall} Get a global firewall rule · Get firewalls #
Ask an LLM
“How do I see the source ranges and priority of one firewall rule?”
“What direction does a given global firewall rule apply to?”
Tell an agent
Show firewall rule {firewall} in project {project}.
Get the priority and allowed ports of global firewall {firewall}.
GET /compute/v1/projects/{project}/global/firewalls List global firewall rules · List firewalls #
Ask an LLM
“Which firewall rules exist in my project?”
“Can I filter global firewall rules by direction or priority?”
Tell an agent
List all global firewall rules in project {project}.
Show global firewalls in {project} matching {filter}.
POST /compute/v1/projects/{project}/global/firewalls Create a global firewall rule · Insert firewalls #
Ask an LLM
“How do I allow HTTP traffic from a range of IPs to my project?”
“Can I create a firewall rule that denies traffic from certain source ranges?”
Tell an agent
Create global firewall rule {name} in project {project} allowing {allowed}.
Add a global firewall {name} on network {network} that denies {denied}.
POST /compute/v1/projects/{project}/global/firewalls/{resource}/testIamPermissions Check IAM permissions on a firewall · Test iam permissions firewalls #
Ask an LLM
“Does my service account have permission to manage a firewall rule?”
“What permissions does a given user hold on a global firewall?”
Tell an agent
Test whether I have permissions {permissions} on global firewall {resource} in project {project}.
Check my IAM permissions for firewall {resource}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-cloud-compute-engine:google-cloud-compute-engine-firewalls-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-cloud-compute-engine-firewalls-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compute Engine Firewalls API
  version: v1
  description: Generated from Google's published Discovery document for Compute Engine API (compute v1, revision 20261106). 7 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://compute.googleapis.com
tags:


# --- truncated at 32 KB (61 KB total) ---
# Full source: https://artifacts.apis.io/google-cloud-compute-engine/openapi/google-cloud-compute-engine-firewalls-api-openapi.yml