Skip to content
中文

Retrieve a progressive rollout

Code Mode: praxis.devops.progressiveRollouts.retrieve

HTTP: GET /devops/v1/progressive-rollouts/{id}

Read one progressive rollout: which step it is on, how much of the audience that is, when the next step is due, and every step it has already taken with who moved it and why. Poll it to follow a rollout, and read history to find out why it paused or rolled back — a guard that fired leaves the step and the reason there. state scheduled means the first step has not started, running means it is advancing on its hold times, and rolled_back is terminal. nextStepTime is the time the current hold ends.

Signature

praxis.devops.progressiveRollouts.retrieve(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}>}>;

Parameters

NameInTypeRequiredDescription
idpathstringyesThe progressive rollout identifier returned by the progressive rollout create answer.

Responses

StatusContent typesDescription
200application/jsonThe addressed progressive rollout, with its step history and next step time.
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.
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.