Google Cloud Compute Engine Disks API

Manage persistent disks

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 20

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

DELETE /compute/v1/projects/{project}/zones/{zone}/disks/{disk} Delete a persistent disk · Delete disks #
Ask an LLM
“How do I permanently delete a persistent disk?”
“Does deleting a disk also delete its snapshots?”
Tell an agent destructive · confirm first
Delete disk {disk} in {project}/{zone}.
Permanently remove persistent disk {disk} from zone {zone}, project {project}.
PATCH /compute/v1/projects/{project}/zones/{zone}/disks/{disk} Update a persistent disk · Update disks #
Ask an LLM
“Can I change a disk's size or IOPS after it's created?”
“Is it possible to change a disk's encryption key or labels?”
Tell an agent
Set disk {disk} in {project}/{zone} to {size_gb} GB.
Change the labels on disk {disk} in zone {zone}, project {project}, to {labels}.
GET /compute/v1/projects/{project}/zones/{zone}/disks/{disk} Get a persistent disk · Get disks #
Ask an LLM
“What is the size and status of a persistent disk in my zone?”
“Can I look up one disk by name in a zone?”
Tell an agent
Get disk {disk} in {project}/{zone}.
Show the details of persistent disk {disk} in zone {zone}, project {project}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication Start asynchronous replication of a disk · Start async replication disks #
Ask an LLM
“How do I start replicating a disk to a secondary disk asynchronously?”
“Can I replicate a primary disk to another disk in a different zone?”
Tell an agent
Start async replication of disk {disk} in {project}/{zone} to secondary disk {secondary}.
Replicate primary disk {disk} in zone {zone}, project {project}, to disk {secondary}.
GET /compute/v1/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy Get a disk's IAM access policy · Get iam policy disks #
Ask an LLM
“Who has access to a particular persistent disk?”
“Can I read the IAM policy on a disk in a zone?”
Tell an agent
Get the IAM policy for disk {resource} in {project}/{zone}.
Show access control on persistent disk {resource} in zone {zone}, project {project}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot Create a snapshot of a disk · Create snapshot disks #
Ask an LLM
“How do I take a snapshot of a persistent disk?”
“Can I create a snapshot of a disk that is currently attached to an instance?”
Tell an agent
Create a snapshot of disk {disk} in {project}/{zone}.
Snapshot persistent disk {disk} in zone {zone}, project {project}, with guest flush {flush}.
GET /compute/v1/projects/{project}/zones/{zone}/disks List disks in a zone · List disks #
Ask an LLM
“Which persistent disks exist in my zone?”
“Can I filter the list of disks in a zone?”
Tell an agent
List disks in {project}/{zone}.
Show all persistent disks in zone {zone}, project {project}.
POST /compute/v1/projects/{project}/zones/{zone}/disks Create a persistent disk · Insert disks #
Ask an LLM
“How do I create a persistent disk from an image or snapshot?”
“Can I create a disk larger than the default 500 GB?”
Tell an agent
Create a disk named {name} in {project}/{zone}.
Create a {sizeGb} GB disk from image {sourceImage}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{disk}/resize Resize a persistent disk · Resize disks #
Ask an LLM
“Can I resize a persistent disk to a larger size?”
“Is it possible to shrink a disk once it's been resized up?”
Tell an agent
Resize disk {disk} in {project}/{zone} to {sizeGb} GB.
Make disk {disk} bigger in {project}/{zone}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setLabels Set labels on a disk · Set labels disks #
Ask an LLM
“How do I tag a persistent disk with labels?”
“Can I change the labels on one disk at a time?”
Tell an agent
Set labels {labels} on disk {resource} in {project}/{zone}.
Label disk {resource} in {project}/{zone} with {labels}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/bulkInsert Bulk create disks from a consistency group · Bulk insert disks #
Ask an LLM
“Can I create many disks at once from a consistency group policy?”
“Is there a bulk way to clone a set of disks?”
Tell an agent
Bulk insert disks from consistency group policy {policy} in {project}/{zone}.
Create a batch of disks in {project}/{zone} using snapshot group parameters {params}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions Check IAM permissions on a disk · Test iam permissions disks #
Ask an LLM
“What permissions does a user have on a persistent disk?”
“Can I check whether a service account can read a disk?”
Tell an agent
Test permissions {permissions} on disk {resource} in {project}/{zone}.
Check if I can read disk {resource} in {project}/{zone}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/bulkSetLabels Set labels on many disks at once · Bulk set labels disks #
Ask an LLM
“Can I label a whole set of disks in one request?”
“How do I apply the same labels to several disks?”
Tell an agent
Bulk set labels {requests} on disks in {project}/{zone}.
Apply labels {requests} to every disk in {project}/{zone}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy Replace a disk's access policy · Set iam policy disks #
Ask an LLM
“How do I replace the IAM policy on a persistent disk?”
“Can I overwrite the access controls on a disk in one call?”
Tell an agent
Set IAM policy {policy} on disk {resource} in {project}/{zone}.
Replace the access policy on disk {resource} in {project}/{zone} with {policy}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication Stop replication for a consistency group · Stop group async replication disks #
Ask an LLM
“How do I stop asynchronous replication for a group of disks?”
“Can I halt replication on a consistency group from either the primary or secondary?”
Tell an agent destructive · confirm first
Stop async replication for consistency group {policy} in {project}/{zone}.
Halt replication on the disk group {policy} in {project}/{zone}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies Remove resource policies from a disk · Remove resource policies disks #
Ask an LLM
“How do I detach a snapshot schedule from a disk?”
“Can I remove several resource policies from one disk?”
Tell an agent
Remove resource policies {policies} from disk {disk} in {project}/{zone}.
Detach snapshot policy {policies} from disk {disk} in {project}/{zone}.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey Rotate a disk's encryption key · Update kms key disks #
Ask an LLM
“How do I rotate the customer-managed encryption key on a disk?”
“Can I move a disk to the latest version of its KMS key?”
Tell an agent
Rotate the KMS key on disk {disk} in {project}/{zone} to {key}.
Re-encrypt disk {disk} in {project}/{zone} with the newest version of its KMS key.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies Add a snapshot schedule to a disk · Add resource policies disks #
Ask an LLM
“How do I schedule automatic snapshots for a disk?”
“Can I attach an existing resource policy to a disk?”
Tell an agent
Add resource policies {policies} to disk {disk} in {project}/{zone}.
Schedule snapshots on disk {disk} in {project}/{zone} using policy {policies}.
GET /compute/v1/projects/{project}/aggregated/disks List disks across zones · Aggregated list disks #
Ask an LLM
“Which persistent disks exist across all zones in my project?”
“Can I list every disk in a project, including ones in other scopes?”
Tell an agent
List all disks in {project}.
Show every disk in {project}, including those in other scopes.
POST /compute/v1/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication Stop replication on one disk · Stop async replication disks #
Ask an LLM
“How do I stop asynchronous replication on a single disk?”
“Can I halt replication on a disk from either the primary or secondary side?”
Tell an agent destructive · confirm first
Stop async replication on disk {disk} in {project}/{zone}.
Halt replication for disk {disk} in {project}/{zone}.

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-disks-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-disks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compute Engine Disks API
  version: v1
  description: Generated from Google's published Discovery document for Compute Engine API (compute v1, revision 20261106). 20 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 (161 KB total) ---
# Full source: https://artifacts.apis.io/google-cloud-compute-engine/openapi/google-cloud-compute-engine-disks-api-openapi.yml