v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1329141233.4 KB
projects

Submits a build in a given project.

post/v2/{+parent}/builds:submit

Path parameters

parentstring required

Required. The project and location to build in. Location must be a region, e.g., 'us-central1' or 'global' if the global builder is to be used. Format: projects/{project}/locations/{location}

Request body

serviceAccountstring

Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.

releaseTrack'LAUNCH_STAGE_UNSPECIFIED' | 'UNIMPLEMENTED' | 'PRELAUNCH' | 'EARLY_ACCESS' | 'ALPHA' | 'BETA' | 'GA' | 'DEPRECATED'

Optional. The release track of the client that initiated the build request.

workerPoolstring

Optional. Name of the Cloud Build Custom Worker 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.

machineTypestring

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.

imageUristring

Required. Artifact Registry URI to store the built image.

dockerBuildGoogleCloudRunV2DockerBuild

Build the source using Docker. This means the source has a Dockerfile.

clientstring

Optional. The client that initiated the build request.

tagsstring[]

Optional. Additional tags to annotate the build.

Response

Successful response