Google Cloud Storage Objects API

The Objects API from Google Cloud Storage — 11 operation(s) for objects.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 16

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

POST /storage/v1/b/{destinationBucket}/o/{destinationObject}/compose Concatenate objects into one · Compose objects #
Ask an LLM
“How do I combine several small files into one large object?”
“Can I delete the source objects when composing them?”
Tell an agent
Compose {source_objects} into {destination_object} in bucket {destination_bucket}.
Concatenate {source_objects} into {destination_object} in {destination_bucket} and delete the sources.
POST /storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject} Copy one object to another bucket · Copy objects #
Ask an LLM
“How do I copy a file to a different Cloud Storage bucket?”
“Can I set the destination object's storage class when copying?”
Tell an agent
Copy object {source} in {source_bucket} to {destination_object} in {destination_bucket}.
Copy {source} from {source_bucket} to {destination_object} in {destination_bucket} with storage class {class}.
DELETE /storage/v1/b/{bucket}/o/{object} Delete an object · Delete objects #
Ask an LLM
“How do I permanently delete an object from a bucket?”
“Can I delete a specific generation of an object?”
Tell an agent destructive · confirm first
Delete {object} from bucket {bucket}.
Permanently delete generation {generation} of {object} in {bucket}.
GET /storage/v1/b/{bucket}/o/{object} Get an object's metadata · Get objects #
Ask an LLM
“What metadata is stored on a Cloud Storage object?”
“Can I read an object's metadata without downloading it?”
Tell an agent
Get the metadata of {object} in bucket {bucket}.
Show object {object} in {bucket} with generation {generation}.
PATCH /storage/v1/b/{bucket}/o/{object} Patch an object's metadata · Patch objects #
Ask an LLM
“How do I change just the cache-control on an object without replacing it?”
“Can I set the custom time on an object?”
Tell an agent
Set the cache-control on object {object} in {bucket} to {cache}.
Patch the custom time on {object} in {bucket} to {time}.
PUT /storage/v1/b/{bucket}/o/{object} Update an object's metadata with PUT · Update objects #
Ask an LLM
“How do I update the metadata on an existing Cloud Storage object using a full update?”
“Can I make a metadata update conditional on the object's current metageneration?”
Tell an agent
Update the metadata of object {object} in bucket {bucket} with a PUT request.
Update the content type of {object} in bucket {bucket} to {contentType} using a full metadata update.
GET /storage/v1/b/{bucket}/o/{object}/iam Get an object's IAM policy · Get iam policy objects #
Ask an LLM
“Who has what permissions on a Cloud Storage object?”
“Can I read the IAM policy for a single object?”
Tell an agent
Get the IAM policy for object {object} in bucket {bucket}.
Show the access controls on {object} in {bucket}.
PUT /storage/v1/b/{bucket}/o/{object}/iam Update an object's IAM policy · Set iam policy objects #
Ask an LLM
“How do I change who can read or write a Cloud Storage object?”
“Can I replace an object's IAM policy with a new one?”
Tell an agent
Set the IAM policy on object {object} in bucket {bucket} to {bindings}.
Replace the access controls on {object} in {bucket} with {bindings}.
POST /storage/v1/b/{bucket}/o Upload an object · Insert objects #
Ask an LLM
“How do I upload a file to Cloud Storage?”
“Can I encrypt an uploaded object with a customer-managed key?”
Tell an agent
Upload {name} to bucket {bucket}.
Store a new object in {bucket} with content type {contentType}.
GET /storage/v1/b/{bucket}/o List objects in a bucket · List objects #
Ask an LLM
“What files are in my Cloud Storage bucket?”
“Can I list only the soft-deleted versions of objects?”
Tell an agent
List the objects in bucket {bucket}.
List objects in {bucket} whose names start with {prefix}.
POST /storage/v1/b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject} Copy an object to another object · Rewrite objects #
Ask an LLM
“How do I copy a file to a different name in the same bucket?”
“Can I rewrite an object with new metadata?”
Tell an agent
Copy {sourceObject} in {sourceBucket} to {destinationObject} in {destinationBucket}.
Rewrite {sourceObject} in {sourceBucket} as {destinationObject} in {destinationBucket} with metadata {metadata}.
POST /storage/v1/b/{bucket}/o/{sourceObject}/moveTo/o/{destinationObject} Move an object within a bucket · Move objects #
Ask an LLM
“How do I rename a file in Cloud Storage?”
“Can I move an object to a different name in the same bucket?”
Tell an agent
Move {sourceObject} in {bucket} to {destinationObject}.
Rename {sourceObject} to {destinationObject} in {bucket}.
GET /storage/v1/b/{bucket}/o/{object}/iam/testPermissions Check permissions on an object · Test iam permissions objects #
Ask an LLM
“Does my account have read permission on a Cloud Storage object?”
“Can I test several permissions on an object at once?”
Tell an agent
Test permissions {permissions} on object {object} in {bucket}.
Check whether I hold {permissions} on {object} in {bucket}.
POST /storage/v1/b/{bucket}/o/{object}/restore Restore a soft-deleted object · Restore objects #
Ask an LLM
“How do I bring back a file I soft-deleted?”
“Can I restore a specific generation of a deleted object?”
Tell an agent
Restore soft-deleted object {object} in {bucket} from generation {generation}.
Restore {object} in {bucket} using restore token {restoreToken}.
POST /storage/v1/b/{bucket}/o/bulkRestore Restore many soft-deleted objects · Bulk restore objects #
Ask an LLM
“Can I restore all soft-deleted files in a bucket at once?”
“Is there a way to bulk restore objects deleted within a time range?”
Tell an agent
Bulk restore soft-deleted objects in {bucket}.
Bulk restore objects in {bucket} deleted between {softDeletedAfterTime} and {softDeletedBeforeTime}.
GET /storage/v1/b/{bucket}/o/{object}/viewFullContext View extended context data for an object · View full context objects #
Ask an LLM
“How do I see the extended context data for a Cloud Storage object?”
“Can I retrieve an object's context using a context key?”
Tell an agent
View full context {contextKey} for object {object} in bucket {bucket}.
Get extended context data {contextKey} of object {object} in {bucket} at generation {generation}.

Documentation

Specifications

Schemas & Data

Other Resources

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/gcp-cloud-storage:gcp-cloud-storage-objects-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

gcp-cloud-storage-objects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloud Storage JSON Objects API
  version: v1
  description: Generated from Google's published Discovery document for Cloud Storage JSON API (storage v1, revision 20261107). 16 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://storage.googleapis.com
tags:


# --- truncated at 32 KB (96 KB total) ---
# Full source: https://artifacts.apis.io/gcp-cloud-storage/openapi/gcp-cloud-storage-objects-api-openapi.yml