Skip to content
中文

List a promotion's rollouts

Code Mode: praxis.devops.promotions.rollouts.list

HTTP: GET /devops/v1/promotions/{promotion}/rollouts

List the per-target rollouts of one promotion: which target each is deploying, which layer it waits on, and where in its phases it has got to. Call it when a promotion is halted or failed to find the target that stopped, since the promotion’s own state summarises what the rollouts show one by one. A promotion with nothing to deploy answers an empty page rather than a refusal. Neither filter nor orderBy is accepted here, and the rollouts come in the order the plan laid them out.

Signature

praxis.devops.promotions.rollouts.list(args:{path:{/** e.g. "prm_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ promotion:string};query?:{/** e.g. 20 */ pageSize?:number;/** e.g. "pt1.eyJvIjoyMH0" */ pageToken?:string}}):Promise<{/** The rollouts on this page, ordered by the layer the plan put them in. */ items:Array<{/** Rollout identifier, used to read this rollout on its own or to address its job runs. e.g. "rol_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** The resource type of this answer, always rollout. */ object:"rollout";/** The promotion this rollout belongs to; a promotion owns one rollout per target it deploys. e.g. "prm_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ promotion:string;/** The target this rollout deploys, from the project's target list. e.g. "tgt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ target:string;/** Where this target's rollout stands; halted means it can be resumed rather than only restarted. e.g. "succeeded" */ state:"unspecified"|"pending"|"pending_approval"|"approval_rejected"|"pending_release"|"in_progress"|"succeeded"|"failed"|"halted"|"cancelling"|"cancelled"|"skipped";/** The phases this rollout runs through, in order; each holds the jobs that deploy one step of it. */ phases:Array<{/** Phase identifier, which is what a job-run read or a retry names; it comes from the deployment strategy rather than from a sequence number. e.g. "stable" */ id:string;/** Where this phase stands; a skipped phase is one the strategy decided not to run, which is different from one that failed. e.g. "succeeded" */ state:"unspecified"|"pending"|"in_progress"|"succeeded"|"failed"|"aborted"|"skipped";/** Why the phase was skipped, present only when state is skipped; it names the condition rather than restating the state. e.g. "the canary phase is off for this target." */ skipMessage?:string;/** The jobs this phase runs, in order; each is one typed step, such as a deploy or a verification. */ jobs:Array<{/** Job identifier inside its phase, which a retry or an ignore names together with the phase. e.g. "deploy" */ id:string;/** Which kind of step this job is, which decides what a failure of it means and what its run carries. e.g. "deploy" */ type:"predeploy"|"deploy"|"verify"|"postdeploy"|"analysis"|"create_child_rollout"|"advance_child_rollout";/** Where this job stands; ignored is a deliberate decision to move past a failure, not a success. e.g. "succeeded" */ state:"unspecified"|"pending"|"disabled"|"in_progress"|"succeeded"|"failed"|"aborted"|"skipped"|"ignored";/** Why the job was skipped, present only when state is skipped. e.g. "this target has no migrations." */ skipMessage?:string;jobRun?:{/** Attempt name, which is the address a terminate names together with its rollout. e.g. "deploy-1" */ name:string;/** The resource type of this answer, always job_run. */ object:"job_run";/** The phase this attempt belongs to, from the rollout's phase list. e.g. "stable" */ phaseId:string;/** The job this attempt belongs to, inside that phase. e.g. "deploy" */ jobId:string;/** Where the attempt stands; terminated is an attempt stopped by a person rather than one that failed on its own. e.g. "succeeded" */ state:"unspecified"|"in_progress"|"succeeded"|"failed"|"terminating"|"terminated";/** RFC 3339 UTC time the attempt was created; a retry creates a new attempt with its own create time. e.g. "2026-11-03T09:26:10Z" */ createTime?:string;/** RFC 3339 UTC time the attempt started running; absent while it is queued. e.g. "2026-11-03T09:26:12Z" */ startTime?:string;/** RFC 3339 UTC time the attempt stopped; absent while it is still running. e.g. "2026-11-03T09:30:40Z" */ endTime?:string;failure?:{/** The cause the executor reported, in the vocabulary of that job type; it is a name rather than one of a fixed list here. e.g. "execution_failed" */ cause:string;/** The executor's own sentence about the failure, present when it said more than the cause. e.g. "wrangler exited with code 1." */ message?:string};/** Where the attempt's artifact was put, present for the job types that produce one. e.g. "r2://praxis-builds/router/4f2a9c1d/worker.js" */ artifactUri?:string;/** Identifier of the build this attempt used, which is what a person follows into the build system's own records. e.g. "build_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ build?:string;/** Path of this attempt's event log inside its artifact store, present once it has produced output. e.g. "logs/rol_01JQ8Z3M9K4V7B2N6C5X0YTRHW/deploy-1.ndjson" */ eventLogPath?:string;/** Extra facts the executor attached to this attempt, such as a build id or a duration; the shape depends on the job type. e.g. {"durationMs":214000} */ metadata?:{[key:string]:unknown}}}>}>;/** Targets this rollout waits for before it may start; absent when it waits on nothing. */ dependsOn?:Array<string>;checkpoint:{/** The commit the target was running before this rollout; absent when nothing had been deployed to it yet. e.g. "4f2a9c1d8e7b6a5c4d3e2f1a0b9c8d7e6f5a4b3c" */ before?:string;/** The commit this rollout deployed; absent until it succeeded. e.g. "9f2b1c0d8e7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c" */ after?:string};/** The file holding this rollout's collected log, absent until the rollout produces output; per-job logs are named on each job run. e.g. "file_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ logFileId?:string;/** Why the rollout failed, present only when it failed; it is the executor's own sentence. e.g. "the worker upload was rejected: script too large." */ failureReason?:string;/** The deploy-level cause of the failure, present when it failed during a deploy job. e.g. "execution_failed" */ deployFailureCause?:"execution_failed"|"executor_unavailable"|"deadline_exceeded"|"release_failed"|"release_abandoned"|"verification_config_not_found"|"request_failed"|"feature_not_supported";/** RFC 3339 UTC time this rollout began deploying; absent while it is still pending. e.g. "2026-11-03T09:26:10Z" */ deployStartTime?:string;/** RFC 3339 UTC time it stopped, whether it succeeded or failed; absent while it is still running. e.g. "2026-11-03T09:30:40Z" */ deployEndTime?:string}>;/** Cursor for the next page; an empty string means this was the last page. e.g. "pt1.eyJvIjo1MH0" */ nextPageToken:string}>;

Parameters

NameInTypeRequiredDescription
promotionpathstringyesThe promotion whose rollouts you are reading, from a promotion list or create answer.
pageSizequerynumbernoHow many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.
pageTokenquerystringnoThe cursor from the previous page’s nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.

Responses

StatusContent typesDescription
200application/jsonOne page of the promotion’s rollouts, in plan order.
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/jsonPROMOTION_NOT_FOUND means no promotion with that id exists in this organization; list the project’s promotions and use an id from that answer.
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.