Google Cloud Build Cloud Build Projects API

The Cloud Build Projects API from Google Cloud Build — 17 operation(s) for cloud build projects.

GitHub OpenAPI

Operations 22

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

GET /v2/projects/{projectsId}/locations List Cloud Build locations · List locations #
Ask an LLM
“Which regions can I run Cloud Build in?”
“Can I list only the locations a project has access to?”
Tell an agent
List Cloud Build locations for project {projectsId}.
Show every region Cloud Build supports.
GET /v2/projects/{projectsId}/locations/{locationsId} Get a Cloud Build location · Get locations #
Ask an LLM
“What details are available for one Cloud Build location?”
“Can I look up a region by its ID?”
Tell an agent
Get Cloud Build location {locationsId} in project {projectsId}.
Show the details of region {locationsId}.
GET /v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId} Get a long-running operation · Get operations #
Ask an LLM
“How do I check the status of a long-running Cloud Build operation?”
“Did my queued operation finish yet?”
Tell an agent
Get the status of operation {operationsId} in project {projectsId}, region {locationsId}.
Poll operation {operationsId} in region {locationsId}.
POST /v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel Cancel a long-running operation · Cancel operations #
Ask an LLM
“How do I cancel a long-running Cloud Build operation?”
“Can I stop an operation that is still running?”
Tell an agent destructive · confirm first
Cancel operation {operationsId} in project {projectsId}, region {locationsId}.
Stop the queued operation {operationsId} in region {locationsId}.
POST /v2/projects/{projectsId}/locations/{locationsId}/connections Create a source connection · Create connections #
Ask an LLM
“How do I connect Cloud Build to a GitHub or GitLab repository?”
“Can I create a connection to a Bitbucket Cloud or Data Center repo?”
Tell an agent
Create a connection in project {projectsId}, region {locationsId}.
Set up a new source connection in region {locationsId}.
GET /v2/projects/{projectsId}/locations/{locationsId}/connections List connections in a region · List connections #
Ask an LLM
“Which source connections are set up in a region?”
“Can I see all the connections Cloud Build has to my source repos in one place?”
Tell an agent
List connections in project {projectsId}, region {locationsId}.
Show every source connection in region {locationsId}.
GET /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:fetchLinkableRepositories List repositories a connection can link · Fetch linkable repositories connections #
Ask an LLM
“Which repositories can I add to an existing connection?”
“Can I see what a connection has access to before linking it?”
Tell an agent
List repositories linkable to connection {connectionsId} in project {projectsId}, region {locationsId}.
Show the repos I could add to connection {connectionsId} in region {locationsId}.
GET /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:getIamPolicy Get a connection's IAM policy · Get iam policy connections #
Ask an LLM
“What IAM permissions are set on a source connection?”
“Can I read the access policy for one connection?”
Tell an agent
Get the IAM policy for connection {connectionsId} in project {projectsId}, region {locationsId}.
Show who has access to connection {connectionsId} in region {locationsId}.
POST /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:setIamPolicy Set a connection's IAM policy · Set iam policy connections #
Ask an LLM
“How do I change who can access a source connection?”
“Can I replace the IAM policy on a connection?”
Tell an agent
Set the IAM policy on connection {connectionsId} in project {projectsId}, region {locationsId}.
Replace the access policy for connection {connectionsId} in region {locationsId}.
POST /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:testIamPermissions Test IAM permissions on a connection · Test iam permissions connections #
Ask an LLM
“Does my service account have permission to use a source connection?”
“Can I check a connection's permissions without creating a policy?”
Tell an agent
Test permissions {permissions} on connection {connectionsId} in project {projectsId}, region {locationsId}.
Check whether I can use connection {connectionsId} in region {locationsId}.
DELETE /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId} Delete a source connection · Delete connections #
Ask an LLM
“How do I remove a connection to a source repository?”
“Can I delete a connection only if its etag still matches?”
Tell an agent destructive · confirm first
Delete connection {connectionsId} in project {projectsId}, region {locationsId}.
Remove source connection {connectionsId} in region {locationsId} if etag is {etag}.
GET /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId} Get a source connection · Get connections #
Ask an LLM
“What configuration does a source connection have?”
“Can I look up one connection by its ID?”
Tell an agent
Get connection {connectionsId} in project {projectsId}, region {locationsId}.
Show the settings of source connection {connectionsId} in region {locationsId}.
PATCH /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId} Update a source connection · Patch connections #
Ask an LLM
“How do I rename a source connection or change its settings?”
“Can I create a connection that doesn't exist yet with an update mask?”
Tell an agent
Update connection {connectionsId} in project {projectsId}, region {locationsId}.
Rename source connection {connectionsId} in region {locationsId}.
POST /v2/projects/{projectsId}/locations/{locationsId}/connections:processWebhook Deliver an SCM webhook event to Cloud Build · Process webhook connections #
Ask an LLM
“How does an external source control system notify Cloud Build that something happened in a repository?”
“Can I pass an extra key so Cloud Build finds the right repository for an incoming webhook event?”
Tell an agent
Process an incoming webhook event for project {projectsId} in region {locationsId}.
Send a webhook event with content type {contentType} and body {data} to region {locationsId} of project {projectsId}.
POST /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/repositories Create a repository in a connection · Create repositories #
Ask an LLM
“How do I add a new repository to a source connection?”
“Can I create a repository in a connection by its remote clone URL?”
Tell an agent
Create repository {repositoryId} in connection {connectionsId} of project {projectsId}, region {locationsId}.
Add a repo to connection {connectionsId} in region {locationsId} from {remoteUri}.
GET /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/repositories List repositories in a connection · List repositories #
Ask an LLM
“Which repositories are linked to a source connection?”
“Can I filter the repositories in a connection?”
Tell an agent
List repositories in connection {connectionsId} of project {projectsId}, region {locationsId}.
Show every repo linked to connection {connectionsId} in region {locationsId}.
DELETE /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/repositories/{repositoriesId} Delete a repository in a connection · Delete repositories #
Ask an LLM
“How do I unlink a repository from a source connection?”
“Can I delete a repository only if its etag matches?”
Tell an agent destructive · confirm first
Delete repository {repositoriesId} from connection {connectionsId} in project {projectsId}, region {locationsId}.
Unlink repo {repositoriesId} from connection {connectionsId} in region {locationsId} if etag is {etag}.
GET /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/repositories/{repositoriesId} Get a repository in a connection · Get repositories #
Ask an LLM
“What details are stored for one repository in a connection?”
“Can I look up a linked repository by its ID?”
Tell an agent
Get repository {repositoriesId} in connection {connectionsId} of project {projectsId}, region {locationsId}.
Show the settings of repo {repositoriesId} in connection {connectionsId} in region {locationsId}.
POST /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/repositories/{repositoriesId}:accessReadToken Get a repository's read token · Access read token repositories #
Ask an LLM
“How do I get a read-only token for a repository in a connection?”
“Can I fetch a read token for a repo without creating a policy?”
Tell an agent
Get a read token for repository {repositoriesId} in connection {connectionsId} of project {projectsId}, region {locationsId}.
Fetch a read-only token for repo {repositoriesId} in connection {connectionsId} in region {locationsId}.
POST /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/repositories/{repositoriesId}:accessReadWriteToken Get a read/write token for a repository · Access read write token repositories #
Ask an LLM
“How do I generate a read/write token for a connection's repository?”
“Can I fetch the push token for a Cloud Source Repositories repository?”
Tell an agent
Fetch the read/write token for repository {repository} in connection {connection}, project {project}, location {location}.
Generate a push token for repo {repository} on connection {connection} at {project}/{location}.
GET /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/repositories/{repositoriesId}:fetchGitRefs List branches and tags of a repository · Fetch git refs repositories #
Ask an LLM
“What branches and tags exist in a Cloud Source Repositories repository?”
“Can I fetch only tags or only branches for a repository?”
Tell an agent
List branches and tags of repository {repositoriesId} in connection {connectionsId}, location {locationsId}, project {projectsId}.
Fetch {refType} refs for {repositoriesId} in {projectsId}/{locationsId}/{connectionsId}.
POST /v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/repositories:batchCreate Create several repositories in a connection · Batch create repositories #
Ask an LLM
“How do I import many repositories into a Cloud Source Repositories connection at once?”
“Can I create several repositories in one request?”
Tell an agent
Create repositories {requests} in connection {connectionsId}, location {locationsId}, project {projectsId}.
Import multiple repositories into {connectionsId} in {projectsId}/{locationsId}.

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-build:google-cloud-build-projects-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-build-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloud Build Projects API
  version: v2
  description: Generated from Google's published Discovery document for Cloud Build API (cloudbuild v2, revision 20261106). 22 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://cloudbuild.googleapis.com
tags:


# --- truncated at 32 KB (85 KB total) ---
# Full source: https://artifacts.apis.io/google-cloud-build/openapi/google-cloud-build-projects-api-openapi.yml