Retrieve a rollout
Code Mode: praxis.devops.rollouts.retrieve
HTTP: GET /devops/v1/rollouts/{id}
Read one rollout in full: its phases and the jobs inside them, each job’s most recent attempt, the checkpoint it was deploying from, and why it failed when it did. This is the level that names the failing step — a promotion tells you that a target failed, a rollout tells you which job run did and what it reported. Use logFileId or a job run’s eventLogPath to reach the logs that step produced. A rollout from another organization answers ROLLOUT_NOT_FOUND, the same answer as one that never existed.
签名
praxis.devops.rollouts.retrieve(args:{path:{/** e.g. "rol_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string}}):Promise<{/** 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}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| id | path | string | 是 | The rollout identifier from a promotion’s rollout list or a promotion read with expand=rollouts. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The addressed rollout, with its phases, jobs and checkpoint. |
| 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 | ROLLOUT_NOT_FOUND means no rollout with that id exists in this organization, or the rollout belongs to another organization’s promotion; read the promotion’s rollout list and use an id from that answer. |
| 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. |