Create a rollout
Creates a rollout in the pending state without shifting traffic. Start the rollout in a separate request after reviewing its strategy and metric gates.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Project identifier.
Endpoint identifier.
Body
- Option 1
- Option 2
- Option 3
Strategy, metric gates, timing, and cleanup policy for shifting traffic between two deployments under one endpoint.
Deployment that traffic shifts away from.
Deployment that traffic shifts toward.
Canary rollout strategy configuration. Mutually exclusive with blueGreen and rolling.
Blue-green rollout strategy configuration. Mutually exclusive with canary and rolling.
Rolling rollout strategy configuration. Mutually exclusive with canary and blueGreen.
Optional metric gates evaluated after each step's soak. Canary only; rejected on rolling and blue-green rollouts.
Metric gate evaluated during a rollout.
- Option 1
- Option 2
Optional final replica count for the source deployment. Defaults to 0, which drains and stops the source.
Optional target replica floor at completion. Must be at least 1 when set; defaults to the source deployment's replica count at create time, or to the source and target deployments' combined replica count when both already stand in the endpoint traffic split after a cancel. The completed target's autoscaling max lands at the landing ceiling, max(this value, the source max, the target's own max); the rollout may lift the target max at first wake, at the first step that needs it, or at completion unless an operator changes max mid-run. The lifted ceiling remains after completion, and PreviewRolloutDefaults reports a coming lift as ROLLOUT_WILL_RAISE_TARGET_MAX. A pre-existing target whose own autoscaling min is higher keeps that floor, reported as FINAL_BELOW_INHERITED_MIN. A target that starts stopped lands exactly at this value; if the source min was higher, PreviewRolloutDefaults reports FINAL_BELOW_SOURCE_MIN.
Response
OK
Public view of a rollout resource, including runtime progress and any pause or abort reason.
Output only. Unique rollout identifier.
Output only. Endpoint this rollout belongs to.
Output only. Deployment that traffic is shifting away from.
Output only. Deployment that traffic is shifting toward.
Output only. Rollout strategy selected at creation.
ROLLOUT_STRATEGY_TYPE_ROLLING, ROLLOUT_STRATEGY_TYPE_CANARY, ROLLOUT_STRATEGY_TYPE_BLUE_GREEN Output only. High-level rollout lifecycle state.
ROLLOUT_STATE_RUNNING, ROLLOUT_STATE_PAUSED, ROLLOUT_STATE_STABILIZING, ROLLOUT_STATE_COMPLETED, ROLLOUT_STATE_PENDING, ROLLOUT_STATE_SYSTEM_PAUSED, ROLLOUT_STATE_CANCELLING, ROLLOUT_STATE_CANCELED, ROLLOUT_STATE_PAUSING Output only. Timestamp when the rollout was created.
Output only. Derived runtime progress, step summary, and pause or abort failure details.
Output only. Zero-based index of the current step. Unset while PENDING; step 0 is reported explicitly after start.
Output only. Applied percentage of traffic on the target deployment.
Output only. Timestamp when the rollout started running.
Output only. Timestamp when the rollout reached a terminal state.
Output only. Opaque version tag for optimistic concurrency control.
Output only. Why and when the rollout was paused. Set while a pause is pending or effective (PAUSING, PAUSED, or SYSTEM_PAUSED) and cleared after resume or abort; while PAUSING, pausedAt records when the pause was requested.