Resume a progressive rollout
Code Mode: praxis.devops.progressiveRollouts.resume
HTTP: POST /devops/v1/progressive-rollouts/{id}:resume
Continue a paused progressive rollout from the step it stopped at, restarting the hold time for the current step rather than skipping it. Use it after a pause has been looked into and the rollout is judged safe to continue. A rollout that is running already, or that finished, is refused; read it first to see whether it is paused. The resumption is attributed to the credential that sends it and recorded in the rollout’s step history.
签名
praxis.devops.progressiveRollouts.resume(args:{path:{/** e.g. "prr_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string}}):Promise<{/** Progressive rollout identifier used by the pause, resume and rollback calls. e.g. "prr_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** The resource type of this answer, always progressive_rollout. */ object:"progressive_rollout";/** RFC 3339 UTC time the rollout was created; it starts running at its first step immediately. e.g. "2026-11-03T09:00:00Z" */ createTime:string;/** RFC 3339 UTC time the rollout last moved, which is when a step advanced or an operator acted on it. e.g. "2026-11-03T15:00:00Z" */ updateTime:string;/** Canonical Console link for the project the flag belongs to. e.g. "https://console.deepraxis.com/devops/projects/dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ viewerUrl:string;/** The flag being ramped, from a flag list or create answer. e.g. "flg_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ flag:string;/** The environment being ramped; the flag must already be on there, because a rollout ramps a fallthrough and an off environment serves nobody. e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ environment:string;/** The variation being ramped up; the rest of the callers keep getting the variation the environment served before the rollout started. e.g. "on" */ variation:string;/** Which context attribute decides a caller's bucket; it is fixed for the whole rollout, so a caller stays on the same side as the share widens. e.g. "targetingKey" */ bucketBy:string;/** The percentage steps this rollout walks, in order; each holds for its own time before the next one starts. */ steps:Array<{/** The share of callers served the variation at this step, as a whole percentage; the steps must not decrease. e.g. 25 */ percent:number;/** How many minutes this step is held before the next one starts; a hold of zero moves on immediately, which leaves no time to watch it. e.g. 60 */ holdMinutes:number}>;guard:{/** The signals watched between steps; only test_runs can actually be evaluated today, and alerts or error_rate are refused at create time rather than accepted and */ signals:Array<"test_runs"|"alerts"|"error_rate">;/** What a bad reading does to the rollout; pausing leaves the decision to a person, while rollback acts on its own. e.g. "pause" */ onBad:"pause"|"rollback";/** How far above its baseline the error rate may go before the reading counts as bad; give it when an error rate is watched. e.g. 0.01 */ errorRateDelta?:number};/** Where the rollout stands; paused is a state an operator put it in or a bad signal did, and both can be resumed or rolled back. e.g. "running" */ state:"scheduled"|"running"|"paused"|"completed"|"rolled_back";/** Index of the step in effect, counting from zero; read steps with it to see the percentage currently served. e.g. 1 */ currentStep:number;/** RFC 3339 UTC time the next step starts, absent while the rollout is paused or finished. e.g. "2026-11-03T16:00:00Z" */ nextStepTime?:string;/** Every move this rollout made, oldest first, each with who made it and why; an empty list means it has not moved since it started. */ history:Array<{/** RFC 3339 UTC time the move happened, which orders the history. e.g. "2026-11-03T15:00:00Z" */ time:string;/** The step index in effect after the move, counting from zero. e.g. 2 */ step:number;/** The share of callers served the variation after the move, as a whole percentage. e.g. 50 */ percent:number;by:{/** What sort of actor this is, which decides how the id should be read. e.g. "user" */ kind:"user"|"agent"|"system";/** Identifier of the actor within its kind, such as a user id for a person. e.g. "usr_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** Display name for the actor at the time, so a record reads the way it did when it was written; absent when none was known. e.g. "Sean" */ label?:string};/** Why the move happened, present for a move an operator made or a guard forced; absent for the scheduled advance. e.g. "guard paused the rollout: a test run failed." */ reason?:string}>}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| id | path | string | 是 | The progressive rollout identifier returned by the progressive rollout create answer. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The progressive rollout after the resumption, running its current step. |
| 401 | application/json | The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying. |
| 403 | application/json | The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project’s organization. No cross-organization read is possible. |
| 404 | application/json | NOT_FOUND means no progressive rollout with that id exists in this organization; read the flag’s own progressive rollout reference, or create one, rather than reusing an id from another project. |
| 409 | application/json | ROLLOUT_NOT_HALTED means the rollout is not paused, so there is nothing to continue — it is either still running or already finished. Read it to see its state instead of sending the call again. |
| 500 | application/json | INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again. |