List a project's stage workspaces
Code Mode: praxis.devops.projects.workspaces.list
HTTP: GET /devops/v1/projects/{project}/workspaces
List the project’s three stage workspaces — development, integration and release — in that order. Each row says how a machine of that stage is built and how long it lives; it is configuration, not a machine, so listing never opens one. A project whose rows do not exist yet gets all three materialized on this call with the defaults (size medium, prebuild on, idle timeout 30 minutes, retention 7 days), and a later call reads those same rows back rather than replacing them. Read one stage with the workspace retrieve; the machines actually running are units.
签名
praxis.devops.projects.workspaces.list(args:{path:{/** e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string}}):Promise<{/** The project's workspaces, development first, then integration, then release. */ items:Array<{/** The workspace identifier, one per (project, stage); a unit records the workspace it was created from. e.g. "wks_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** The resource type of this answer, always workspace. */ object:"workspace";/** RFC 3339 UTC time this stage's row was first written; the three rows are returned in stage order, not by this time. e.g. "2026-11-11T09:00:00Z" */ createTime:string;/** RFC 3339 UTC time this row last changed; an update changes only this and the masked fields. e.g. "2026-11-11T09:30:00Z" */ updateTime:string;/** Canonical Console link for this stage's workspace; use it in a message so a person can open the same row. e.g. "https://console.deepraxis.com/devops/dvp_01m6j8swzteapw2j5sh4/workspaces/development" */ viewerUrl:string;/** The project this workspace belongs to, from the project list. e.g. "dvp_01m6j8swzteapw2j5sh4" */ project:string;stage:"development"|"integration"|"release";/** Whether units of this stage are kept across sessions or are one-off. e.g. "persistent" */ unitClass:"persistent"|"ephemeral";machine:{size:"small"|"medium"|"large"|"xlarge"};prebuild:{/** Whether a unit of this stage starts from a ready prebuild instead of building the machine image itself; off means every unit builds its own, which costs time on e.g. true */ enabled:boolean;/** The prebuild a new unit of this stage would start from, or null when none is ready yet; null means units fall back to the base template. e.g. null */ current:string|null};/** Minutes of inactivity after which a persistent unit of this stage is paused, 5 to 240; the default is 30. e.g. 30 */ idleTimeoutMinutes:number;/** Days a stopped unit of this stage is kept before it is destroyed, 1 to 30; the default is 7. e.g. 7 */ retentionDays:number;/** The vaults this stage's units take their runtime environment from, by vault id (vlt_…). */ vaults:Array<string>}>}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| project | path | string | 是 | Identifies the project whose data you are reading, from the project list or create answer. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The project’s three stage workspaces, development first. |
| 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 | PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects 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. |