POST /v2/projects/{projectsId}/locations/{locationsId}/builds:submit
Changed onSubmits a build in a given project.
Request
- Base URLhttps://run.googleapis.com
- Auth
- OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/cloud-platformAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/cloud-platform
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/runAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/run
Path parameters
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
OAuth 2.0 token for the current user.
Returns response with indentations and line breaks.
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
Request body
Request message for submitting a Build.
Build the source using Buildpacks.
Optional. The client that initiated the build request.
Build the source using Docker. This means the source has a Dockerfile.
Required. Artifact Registry URI to store the built image.
Optional. The machine type from default pool to use for the build. If left blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8 is supported. If worker_pool is set, this field will be ignored.
Optional. The release track of the client that initiated the build request.
Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.
Location of the source in an archive file in Google Cloud Storage.
Optional. Additional tags to annotate the build.
Optional. Name of the Cloud Build private pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool.
Response
Successful response
Response message for submitting a Build.
URI of the base builder image in Artifact Registry being used in the build. Used to opt into automatic base image updates.
Warning message for the base image.
This resource represents a long-running operation that is the result of a network API call.
Changes
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/runwas removed from the endpoint's security schemeOauth2
1 more change in this revision
- info