跳转到内容
EN

Pause a progressive rollout

Code Mode: praxis.devops.progressiveRollouts.pause

HTTP: POST /devops/v1/progressive-rollouts/{id}:pause

Hold a running progressive rollout at its current percentage: no further step is taken until it is resumed, and the percentage already served keeps being served. Use it when a guard signal looks wrong but not wrong enough to roll back, so a person can look before the rollout advances. reason is recorded on the rollout as the attribution of the hold. Pausing a rollout that already completed or was rolled back is refused; read it first to see whether there is anything to hold.

签名

praxis.devops.progressiveRollouts.pause(args:{path:{/** e.g. "prr_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string};body:{/** Why the rollout is being paused or rolled back, recorded verbatim in the rollout's history as the attribution of the act. e.g. "a latency regression showed up at 50%." */ reason: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}>}>;

参数

名称位置类型必填说明
idpathstring是The progressive rollout identifier returned by the progressive rollout create answer.

请求体

必填内容类型说明
是application/json

响应

状态码内容类型说明
200application/jsonThe progressive rollout after the hold, in paused state.
400application/jsonINVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
401application/jsonThe API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
403application/jsonThe 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.
404application/jsonNOT_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.
409application/jsonROLLOUT_ALREADY_FINISHED means the rollout completed or was rolled back, so there is no step left to hold. Read it to see how it ended; the flag’s environment configuration is where a finished rollout is changed from now on.
500application/jsonINTERNAL 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.