List environments
Code Mode: praxis.devops.projects.environments.list
HTTP: GET /devops/v1/projects/{project}/environments
List the project’s environments in promotion order: development first, production last. order is the promotion sequence, so the environment before the one you are promoting into is the one that must have verified the release first. Each entry carries its tier, whether it requires approval, and whether its queue is idle or busy; a busy queue names the promotion holding it and how many wait behind. This collection is not paged: a project has few environments and the whole ordered list is the answer.
签名
praxis.devops.projects.environments.list(args:{path:{/** e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string}}):Promise<{/** The project's environments, development first and production last, which is also the order a release travels them in. */ items:Array<{/** Environment identifier used when creating a promotion or a flag environment write. e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** The resource type of this answer, always environment. */ object:"environment";/** RFC 3339 UTC time the environment was created. e.g. "2026-10-20T04:05:00Z" */ createTime:string;/** RFC 3339 UTC time the environment or its approval requirement last changed. e.g. "2026-10-28T02:00:00Z" */ updateTime:string;/** Canonical Console link for the project this environment belongs to. e.g. "https://console.deepraxis.com/devops/projects/dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ viewerUrl:string;/** The project this environment belongs to, from the project list. e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string;/** Display name of the environment, such as develop or production; a project chooses its own names. e.g. "production" */ name:string;/** What kind of environment this is, which decides how its failures are treated and how the Console presents it. e.g. "production" */ tier:"production"|"staging"|"testing"|"development"|"other";/** Which stage of the path this environment belongs to (Sean 2026-11-24: development, integration, release). e.g. "release" */ stage:"integration"|"release";/** Position in the promotion sequence, starting at 1 and contiguous. e.g. 3 */ order:number;/** Whether a promotion into this environment waits for an approval before it deploys; true is what puts a promotion in awaiting_approval. e.g. true */ requireApproval:boolean;queue:{/** Whether the environment is running a promotion right now; busy means a create will be queued behind the active one. e.g. "busy" */ state:"idle"|"busy";/** The promotion holding the queue, present only while state is busy; read it to see what the environment is doing. e.g. "prm_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ active?:string;/** How many promotions of the environment's own queue are in state queued; they run in the order they were created. e.g. 1 */ waiting:number}}>}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| project | path | string | 是 | Identifies the project whose data you are reading, from the project list or create answer. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | Every environment of the project, in promotion order. |
| 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. |