Creates and manages builds on Google Cloud Platform.
- REST Resource: v2.projects.locations
- REST Resource: v2.projects.locations.connections
- REST Resource: v2.projects.locations.connections.repositories
- REST Resource: v2.projects.locations.operations
- REST Resource: v1
- REST Resource: v1.githubDotComWebhook
- REST Resource: v1.locations
- REST Resource: v1.operations
- REST Resource: v1.projects.builds
- REST Resource: v1.projects.githubEnterpriseConfigs
- REST Resource: v1.projects.locations
- REST Resource: v1.projects.locations.bitbucketServerConfigs
- REST Resource: v1.projects.locations.bitbucketServerConfigs.connectedRepositories
- REST Resource: v1.projects.locations.bitbucketServerConfigs.repos
- REST Resource: v1.projects.locations.builds
- REST Resource: v1.projects.locations.gitLabConfigs
- REST Resource: v1.projects.locations.gitLabConfigs.connectedRepositories
- REST Resource: v1.projects.locations.gitLabConfigs.repos
- REST Resource: v1.projects.locations.githubEnterpriseConfigs
- REST Resource: v1.projects.locations.operations
- REST Resource: v1.projects.locations.triggers
- REST Resource: v1.projects.locations.workerPools
- REST Resource: v1.projects.triggers
Service: cloudbuild.googleapis.com
To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.
Discovery document
A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:
Service endpoint
A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:
- https://cloudbuild.googleapis.com
REST Resource: v2.projects.locations
| Methods | |
|---|---|
| get | GET /v2/{name=projects/*/locations/*}Gets information about a location. | 
| list | GET /v2/{name=projects/*}/locationsLists information about the supported locations for this service. | 
REST Resource: v2.projects.locations.connections
| Methods | |
|---|---|
| create | POST /v2/{parent=projects/*/locations/*}/connectionsCreates a Connection. | 
| delete | DELETE /v2/{name=projects/*/locations/*/connections/*}Deletes a single connection. | 
| fetchLinkableRepositories | GET /v2/{connection=projects/*/locations/*/connections/*}:fetchLinkableRepositoriesFetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection. | 
| get | GET /v2/{name=projects/*/locations/*/connections/*}Gets details of a single connection. | 
| getIamPolicy | GET /v2/{resource=projects/*/locations/*/connections/*}:getIamPolicyGets the access control policy for a resource. | 
| list | GET /v2/{parent=projects/*/locations/*}/connectionsLists Connections in a given project and location. | 
| patch | PATCH /v2/{connection.name=projects/*/locations/*/connections/*}Updates a single connection. | 
| processWebhook | POST /v2/{parent=projects/*/locations/*}/connections:processWebhookProcessWebhook is called by the external SCM for notifying of events. | 
| setIamPolicy | POST /v2/{resource=projects/*/locations/*/connections/*}:setIamPolicySets the access control policy on the specified resource. | 
| testIamPermissions | POST /v2/{resource=projects/*/locations/*/connections/*}:testIamPermissionsReturns permissions that a caller has on the specified resource. | 
REST Resource: v2.projects.locations.connections.repositories
| Methods | |
|---|---|
| accessReadToken | POST /v2/{repository=projects/*/locations/*/connections/*/repositories/*}:accessReadTokenFetches read token of a given repository. | 
| accessReadWriteToken | POST /v2/{repository=projects/*/locations/*/connections/*/repositories/*}:accessReadWriteTokenFetches read/write token of a given repository. | 
| batchCreate | POST /v2/{parent=projects/*/locations/*/connections/*}/repositories:batchCreateCreates multiple repositories inside a connection. | 
| create | POST /v2/{parent=projects/*/locations/*/connections/*}/repositoriesCreates a Repository. | 
| delete | DELETE /v2/{name=projects/*/locations/*/connections/*/repositories/*}Deletes a single repository. | 
| fetchGitRefs | GET /v2/{repository=projects/*/locations/*/connections/*/repositories/*}:fetchGitRefsFetch the list of branches or tags for a given repository. | 
| get | GET /v2/{name=projects/*/locations/*/connections/*/repositories/*}Gets details of a single repository. | 
| list | GET /v2/{parent=projects/*/locations/*/connections/*}/repositoriesLists Repositories in a given connection. | 
REST Resource: v2.projects.locations.operations
| Methods | |
|---|---|
| cancel | POST /v2/{name=projects/*/locations/*/operations/*}:cancelStarts asynchronous cancellation on a long-running operation. | 
| get | GET /v2/{name=projects/*/locations/*/operations/*}Gets the latest state of a long-running operation. | 
REST Resource: v1
| Methods | |
|---|---|
| webhook | POST /v1/webhookReceiveWebhook is called when the API receives a GitHub webhook. | 
REST Resource: v1.githubDotComWebhook
| Methods | |
|---|---|
| receive | POST /v1/githubDotComWebhook:receiveReceiveGitHubDotComWebhook is called when the API receives a github.com webhook. | 
REST Resource: v1.locations
| Methods | |
|---|---|
| regionalWebhook | POST /v1/{location=locations/*}/regionalWebhookReceiveRegionalWebhook is called when the API receives a regional GitHub webhook. | 
REST Resource: v1.operations
| Methods | |
|---|---|
| cancel | POST /v1/{name=operations/**}:cancelStarts asynchronous cancellation on a long-running operation. | 
| get | GET /v1/{name=operations/**}Gets the latest state of a long-running operation. | 
REST Resource: v1.projects.builds
| Methods | |
|---|---|
| approve | POST /v1/{name=projects/*/builds/*}:approveApproves or rejects a pending build. | 
| cancel | POST /v1/projects/{projectId}/builds/{id}:cancelCancels a build in progress. | 
| create | POST /v1/projects/{projectId}/buildsStarts a build with the specified configuration. | 
| get | GET /v1/projects/{projectId}/builds/{id}Returns information about a previously requested build. | 
| list | GET /v1/projects/{projectId}/buildsLists previously requested builds. | 
| retry | POST /v1/projects/{projectId}/builds/{id}:retryCreates a new build based on the specified build. | 
REST Resource: v1.projects.githubEnterpriseConfigs
| Methods | |
|---|---|
| create | POST /v1/{parent=projects/*}/githubEnterpriseConfigsCreate an association between a GCP project and a GitHub Enterprise server. | 
| delete | DELETE /v1/{name=projects/*/githubEnterpriseConfigs/*}Delete an association between a GCP project and a GitHub Enterprise server. | 
| get | GET /v1/{name=projects/*/githubEnterpriseConfigs/*}Retrieve a GitHubEnterpriseConfig. | 
| list | GET /v1/{parent=projects/*}/githubEnterpriseConfigsList all GitHubEnterpriseConfigs for a given project. | 
| patch | PATCH /v1/{githubEnterpriseConfig.name=projects/*/githubEnterpriseConfigs/*}Update an association between a GCP project and a GitHub Enterprise server. | 
REST Resource: v1.projects.locations
| Methods | |
|---|---|
| getDefaultServiceAccount | GET /v1/{name=projects/*/locations/*/defaultServiceAccount}Returns the DefaultServiceAccountused by the project. | 
REST Resource: v1.projects.locations.bitbucketServerConfigs
| Methods | |
|---|---|
| create | POST /v1/{parent=projects/*/locations/*}/bitbucketServerConfigsCreates a new BitbucketServerConfig. | 
| delete | DELETE /v1/{name=projects/*/locations/*/bitbucketServerConfigs/*}Delete a BitbucketServerConfig. | 
| get | GET /v1/{name=projects/*/locations/*/bitbucketServerConfigs/*}Retrieve a BitbucketServerConfig. | 
| list | GET /v1/{parent=projects/*/locations/*}/bitbucketServerConfigsList all BitbucketServerConfigsfor a given project. | 
| patch | PATCH /v1/{bitbucketServerConfig.name=projects/*/locations/*/bitbucketServerConfigs/*}Updates an existing BitbucketServerConfig. | 
| removeBitbucketServerConnectedRepository | POST /v1/{config=projects/*/locations/*/bitbucketServerConfigs/*}:removeBitbucketServerConnectedRepositoryRemove a Bitbucket Server repository from a given BitbucketServerConfig's connected repositories. | 
REST Resource: v1.projects.locations.bitbucketServerConfigs.connectedRepositories
| Methods | |
|---|---|
| batchCreate | POST /v1/{parent=projects/*/locations/*/bitbucketServerConfigs/*}/connectedRepositories:batchCreateBatch connecting Bitbucket Server repositories to Cloud Build. | 
REST Resource: v1.projects.locations.bitbucketServerConfigs.repos
| Methods | |
|---|---|
| list | GET /v1/{parent=projects/*/locations/*/bitbucketServerConfigs/*}/reposList all repositories for a given BitbucketServerConfig. | 
REST Resource: v1.projects.locations.builds
| Methods | |
|---|---|
| approve | POST /v1/{name=projects/*/locations/*/builds/*}:approveApproves or rejects a pending build. | 
| cancel | POST /v1/{name=projects/*/locations/*/builds/*}:cancelCancels a build in progress. | 
| create | POST /v1/{parent=projects/*/locations/*}/buildsStarts a build with the specified configuration. | 
| get | GET /v1/{name=projects/*/locations/*/builds/*}Returns information about a previously requested build. | 
| list | GET /v1/{parent=projects/*/locations/*}/buildsLists previously requested builds. | 
| retry | POST /v1/{name=projects/*/locations/*/builds/*}:retryCreates a new build based on the specified build. | 
REST Resource: v1.projects.locations.gitLabConfigs
| Methods | |
|---|---|
| create | POST /v1/{parent=projects/*/locations/*}/gitLabConfigsCreates a new GitLabConfig. | 
| delete | DELETE /v1/{name=projects/*/locations/*/gitLabConfigs/*}Delete a GitLabConfig. | 
| get | GET /v1/{name=projects/*/locations/*/gitLabConfigs/*}Retrieves a GitLabConfig. | 
| list | GET /v1/{parent=projects/*/locations/*}/gitLabConfigsList all GitLabConfigsfor a given project. | 
| patch | PATCH /v1/{gitlabConfig.name=projects/*/locations/*/gitLabConfigs/*}Updates an existing GitLabConfig. | 
| removeGitLabConnectedRepository | POST /v1/{config=projects/*/locations/*/gitLabConfigs/*}:removeGitLabConnectedRepositoryRemove a GitLab repository from a given GitLabConfig's connected repositories. | 
REST Resource: v1.projects.locations.gitLabConfigs.connectedRepositories
| Methods | |
|---|---|
| batchCreate | POST /v1/{parent=projects/*/locations/*/gitLabConfigs/*}/connectedRepositories:batchCreateBatch connecting GitLab repositories to Cloud Build. | 
REST Resource: v1.projects.locations.gitLabConfigs.repos
| Methods | |
|---|---|
| list | GET /v1/{parent=projects/*/locations/*/gitLabConfigs/*}/reposList all repositories for a given GitLabConfig. | 
REST Resource: v1.projects.locations.githubEnterpriseConfigs
| Methods | |
|---|---|
| create | POST /v1/{parent=projects/*/locations/*}/githubEnterpriseConfigsCreate an association between a GCP project and a GitHub Enterprise server. | 
| delete | DELETE /v1/{name=projects/*/locations/*/githubEnterpriseConfigs/*}Delete an association between a GCP project and a GitHub Enterprise server. | 
| get | GET /v1/{name=projects/*/locations/*/githubEnterpriseConfigs/*}Retrieve a GitHubEnterpriseConfig. | 
| list | GET /v1/{parent=projects/*/locations/*}/githubEnterpriseConfigsList all GitHubEnterpriseConfigs for a given project. | 
| patch | PATCH /v1/{githubEnterpriseConfig.name=projects/*/locations/*/githubEnterpriseConfigs/*}Update an association between a GCP project and a GitHub Enterprise server. | 
REST Resource: v1.projects.locations.operations
| Methods | |
|---|---|
| cancel | POST /v1/{name=projects/*/locations/*/operations/*}:cancelStarts asynchronous cancellation on a long-running operation. | 
| get | GET /v1/{name=projects/*/locations/*/operations/*}Gets the latest state of a long-running operation. | 
REST Resource: v1.projects.locations.triggers
| Methods | |
|---|---|
| create | POST /v1/{parent=projects/*/locations/*}/triggersCreates a new BuildTrigger. | 
| delete | DELETE /v1/{name=projects/*/locations/*/triggers/*}Deletes a BuildTriggerby its project ID and trigger ID. | 
| get | GET /v1/{name=projects/*/locations/*/triggers/*}Returns information about a BuildTrigger. | 
| list | GET /v1/{parent=projects/*/locations/*}/triggersLists existing BuildTriggers. | 
| patch | PATCH /v1/{trigger.resourceName=projects/*/locations/*/triggers/*}Updates a BuildTriggerby its project ID and trigger ID. | 
| run | POST /v1/{name=projects/*/locations/*/triggers/*}:runRuns a BuildTriggerat a particular source revision. | 
| webhook | POST /v1/{name=projects/*/locations/*/triggers/*}:webhookReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. | 
REST Resource: v1.projects.locations.workerPools
| Methods | |
|---|---|
| create | POST /v1/{parent=projects/*/locations/*}/workerPoolsCreates a WorkerPool. | 
| delete | DELETE /v1/{name=projects/*/locations/*/workerPools/*}Deletes a WorkerPool. | 
| get | GET /v1/{name=projects/*/locations/*/workerPools/*}Returns details of a WorkerPool. | 
| list | GET /v1/{parent=projects/*/locations/*}/workerPoolsLists WorkerPools. | 
| patch | PATCH /v1/{workerPool.name=projects/*/locations/*/workerPools/*}Updates a WorkerPool. | 
REST Resource: v1.projects.triggers
| Methods | |
|---|---|
| create | POST /v1/projects/{projectId}/triggersCreates a new BuildTrigger. | 
| delete | DELETE /v1/projects/{projectId}/triggers/{triggerId}Deletes a BuildTriggerby its project ID and trigger ID. | 
| get | GET /v1/projects/{projectId}/triggers/{triggerId}Returns information about a BuildTrigger. | 
| list | GET /v1/projects/{projectId}/triggersLists existing BuildTriggers. | 
| patch | PATCH /v1/projects/{projectId}/triggers/{triggerId}Updates a BuildTriggerby its project ID and trigger ID. | 
| run | POST /v1/projects/{projectId}/triggers/{triggerId}:runRuns a BuildTriggerat a particular source revision. | 
| webhook | POST /v1/projects/{projectId}/triggers/{trigger}:webhookReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. |