跳转到内容
EN

List releases

Code Mode: praxis.devops.projects.releases.list

HTTP: GET /devops/v1/projects/{project}/releases

List the project’s releases, newest first. Use it to find the release a promotion should carry, or to see what has been released recently and whether any of it was abandoned. The list carries the render state and the abandoned flag, so a caller can skip a release that is still rendering or that was withdrawn without reading each one. Neither filter nor orderBy is accepted on this collection yet; a request that sends one is refused rather than silently ignored.

签名

praxis.devops.projects.releases.list(args:{path:{/** e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string};query?:{/** e.g. 20 */ pageSize?:number;/** e.g. "pt1.eyJvIjoyMH0" */ pageToken?:string}}):Promise<{/** The releases on this page, ordered by creation time descending. */ items:Array<{/** 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}>}>;/** Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished. e.g. "pt1.eyJvIjo1MH0" */ nextPageToken:string}>;

参数

名称位置类型必填说明
projectpathstring是Identifies the project whose data you are reading, from the project list or create answer.
pageSizequerynumber否How 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.
pageTokenquerystring否The cursor from the previous page’s nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.

响应

状态码内容类型说明
200application/jsonOne page of the project’s releases, newest first.
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/jsonPROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects 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.