Trigger a new deployment for an application. By default, deploys the latest commit on the default branch. You can optionally specify a different branch, a Docker image, or restart from the last successful deployment. The deployment runs asynchronously - use the get deployment endpoint to track its progress.
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Application identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Git branch to deploy. When omitted, the application default branch is used. Only applies to Git-based applications.
"main"
Docker image reference to deploy (e.g., nginx:latest). Only applies to applications with dockerImage source.
"nginx:latest"
When true, redeploys using the existing build artifact from the last successful deployment, skipping the build step. Useful when you have updated runtime-level configuration and do not need to rebuild the application.
Default Response
Unique identifier for the deployment
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Identifier of the application this deployment belongs to
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Current status of the deployment in its lifecycle
waiting, inProgress, success, failed, cancelled, skipped "success"
How the deployment was initiated. manual - triggered by a user or API call. automatic - triggered automatically by a git push or webhook.
manual, automatic "manual"
Specific action that initiated the deployment, such as MANUAL_DEPLOY, ROLLBACK_DEPLOYMENT, AUTO_DEPLOY_ON_PUSH, or RESTART
"MANUAL_DEPLOY"
Ordered list of pipeline steps this deployment will execute. checkout - clone the repository. build - build the application image. rollout - deploy the image to the cluster. syncConnections - synchronize database and service connections.
checkout, build, rollout, syncConnections ["rollout"]Full URL of the Docker image built or used for this deployment, including the registry path and tag
"us-central1-docker.pkg.dev/project/repo/image:abc123"
Git hosting provider for the source repository. github - GitHub. bitbucket - Bitbucket. gitlab - GitLab. Null for Docker image deployments.
github, bitbucket, gitlab "github"
Full URL of the Git repository used for this deployment. Null for Docker image deployments.
"https://github.com/user/repo"
Git branch that was deployed. Null for Docker image deployments.
"main"
Full SHA hash of the Git commit that was deployed
"a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2"
Commit message of the deployed Git commit, truncated to 1000 characters
"feat: add new feature"
Username of the Git commit author on the hosting provider
"octocat"
Avatar URL of the Git commit author on the hosting provider
"https://avatars.githubusercontent.com/u/583231"
Timestamp when the deployment started executing, in ISO 8601 format. Null if still waiting.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:00:00.000Z"
Timestamp when the deployment finished (succeeded, failed, or was cancelled), in ISO 8601 format. Null if still in progress.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:05:00.000Z"
Timestamp when the deployment was created, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:00:00.000Z"
Timestamp when the deployment was last modified, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:00:00.000Z"