Retrieve a release
Code Mode: praxis.devops.releases.retrieve
HTTP: GET /devops/v1/releases/{id}
Read one release in full: the commit it carries, the targets and source digests it was rendered from, which environments have verified it, and where it currently runs. Call it before promoting to confirm the release is not abandoned and that its render succeeded, and after deploying to learn which environments already hold it so the same release is not promoted twice. A release from another organization answers RELEASE_NOT_FOUND, which is also the answer for one that never existed.
签名
praxis.devops.releases.retrieve(args:{path:{/** e.g. "rls_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string}}):Promise<{/** Release identifier used by a promotion and by an environment checkpoint. e.g. "rls_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** The resource type of this answer, always release. */ object:"release";/** RFC 3339 UTC time the release was created; the release list is ordered by it, newest first. e.g. "2026-11-03T09:10:00Z" */ createTime:string;/** RFC 3339 UTC time the release last changed — its render finishing, a verification, or an abandonment. e.g. "2026-11-03T09:14:00Z" */ updateTime:string;/** Canonical Console link for the project this release belongs to. e.g. "https://console.deepraxis.com/devops/projects/dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ viewerUrl:string;/** The project this release belongs to, from the project list. e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string;/** Human-readable release name, dated and suffixed by kind, such as 2026-11-03.1 for a commit release or 2026-11-03.1-p1 for a patch. e.g. "2026-11-03.1" */ name:string;/** Content fingerprint of what this release carries; two releases with the same fingerprint deploy the same thing, which is what makes an equality comparison meani e.g. "9f2b1c0d8e7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c" */ fingerprint:string;/** What this release is for, in the author's own words; absent when the request gave none. e.g. "Router 2.21 memory fix." */ description?:string;/** Whether this release carries a commit as it stands or a set of picks applied onto a base release. e.g. "commit" */ kind:"commit"|"patch";/** Full 40-character commit this release deploys; a patch release's commit is the base it builds on, with its picks applied by the executor. e.g. "4f2a9c1d8e7b6a5c4d3e2f1a0b9c8d7e6f5a4b3c" */ commit:string;/** The release a patch builds on, present only for kind patch; absent for a commit release. e.g. "rls_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ base?:string;/** The commits a patch applies onto its base, in the order they land; present only for kind patch. */ picks?:Array<string>;/** The branch the executor cuts for a patch release, such as patch/4f2a9c1d8e7b-1. e.g. "patch/4f2a9c1d8e7b-1" */ patchBranch?:string;/** The commits this release carries that the environment it is promoted into may not have yet, so a reviewer can see what is about to ship. */ contains:Array<{/** Full 40-character sha of the contained commit. e.g. "c8a9a1cf2f1e0d9c8b7a6f5e4d3c2b1a0f9e8d7c" */ sha:string;/** The pull request this commit landed through, when the service knows one; absent for a commit pushed directly. e.g. "pr_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ pullRequest?:string;/** The commit's own title line, so a list of them reads as a summary of the release. e.g. "fix(router): drop the tokenizer from the entry script" */ title:string}>;/** The targets this release rendered, each with the digest of the source it was rendered from; it is the release's own snapshot, not a live reading of the reposito */ targets:Array<{/** The target this release carries, from the project's target list. e.g. "tgt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ target:string;/** Digest of the source this target was rendered from; two releases with equal digests deploy identical bytes, which is how an unchanged target is detected. e.g. "sha256:3f2a1c0d8e7b6a5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b1c" */ sourceDigest:string}>;render:{/** The overall render state of this release, which is what a promotion checks before it schedules anything. e.g. "succeeded" */ state:"unspecified"|"in_progress"|"succeeded"|"failed";/** RFC 3339 UTC time the render started; absent when no start was recorded. e.g. "2026-11-03T09:10:05Z" */ renderStartTime?:string;/** RFC 3339 UTC time the render finished, whether it succeeded or failed; absent while it is still running. e.g. "2026-11-03T09:13:40Z" */ renderEndTime?:string;/** The render result of each target the release carries, so a failure names the target rather than the release as a whole. */ perTarget:Array<{/** The target this render result belongs to, from the project's target list. e.g. "tgt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ target:string;/** How this target's render went; a failed target is what makes a release unusable even when the others succeeded. e.g. "succeeded" */ state:"unspecified"|"in_progress"|"succeeded"|"failed";/** Machine-readable reason this target's render failed, present only when state is failed; it is what a caller branches on. e.g. "execution_failed" */ failureCause?:"execution_failed"|"executor_unavailable"|"request_failed"|"verification_config_not_found"|"custom_action_not_found"|"strategy_not_supported"|"feature_not_supported";/** The renderer's own message about the failure, present only when state is failed; it carries detail the cause enum cannot. e.g. "the bundle exceeded the script size limit." */ failureMessage?:string;/** Identifier of the build that performed this render, for following it in the build system's own records. e.g. "build_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ renderingBuild?:string}>};condition?:{/** True when every target rendered and nothing the release needs is missing, which is the state a promotion requires. e.g. true */ releaseReady:boolean;/** Targets the release expects but does not carry, present only when releaseReady is false; a promotion cannot proceed until they are present. */ missingTargets?:Array<string>};/** Whether this release was withdrawn; a promotion of an abandoned release is refused, and abandoning is never undone. e.g. false */ abandoned:boolean;createdBy:{/** 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};/** The environments whose deployments of this release finished successfully, appended as they happen; absent before any environment has verified it. */ verifiedIn?:Array<{/** The environment that verified this release, from the project's environment list. e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ environment:string;/** RFC 3339 UTC time that environment's deployment finished successfully. e.g. "2026-11-03T09:40:00Z" */ verifiedAt:string;/** The longest uninterrupted run this release has had in that environment, in seconds; it is what a soak requirement is judged against. e.g. 7200 */ longestCompletedSoak?:number;/** The targets this verification covers, present only when a targeted promotion produced it. */ targets?:Array<string>}>;/** The environments currently running this release and which targets each holds; absent while no environment runs it. */ currentIn?:Array<{/** The environment currently running this release. e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ environment:string;/** The targets of that environment that currently hold this release; a target the environment does not deploy is absent. */ targets:Array<string>;/** RFC 3339 UTC time the environment began running this release. e.g. "2026-11-03T09:30:00Z" */ since:string}>;/** Environments this release was pre-approved for, which is how a hotfix skips a gate; absent when nothing was pre-approved. */ approvedFor?:Array<{/** The environment this release was pre-approved for. e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ environment:string;/** RFC 3339 UTC time the approval was recorded. e.g. "2026-11-03T11:00:00Z" */ approvedAt:string;/** The recorded approval this pre-approval came from, so the act can be traced to what authorized it. e.g. "apv_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ approval?:string}>}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| id | path | string | 是 | The release identifier returned by a release list or create answer; a release is addressed by this id, never by its display name. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The addressed release, with its targets, render result and verification history. |
| 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 | RELEASE_NOT_FOUND means no release with that id exists in this organization, or the id belongs to another organization’s release; list the project’s releases 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. |