List targets
Code Mode: praxis.devops.projects.targets.list
HTTP: GET /devops/v1/projects/{project}/targets
List what the project deploys — one target per deployable path in the repository, with its kind, its destination and the targets it depends on. Targets are discovered from the code, not entered by hand, so this list is the service’s reading of the repository rather than a configuration you maintain here. A project whose catalog has never been read has it read on the first call, at the default branch’s head, so the first answer is already the catalog instead of an empty page. Archived targets, which the repository no longer deploys, are left out.
签名
praxis.devops.projects.targets.list(args:{path:{/** e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string};query?:{/** e.g. 20 */ pageSize?:number;/** e.g. "pt1.eyJvIjoyMH0" */ pageToken?:string}}):Promise<{/** The targets on this page, ordered by their path inside the repository. */ items:Array<{/** Target identifier used by a release's target list and by a checkpoint; it is what the plan layers are built from. e.g. "tgt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** The resource type of this answer, always target. */ object:"target";/** RFC 3339 UTC time this target was first discovered in the repository. e.g. "2026-10-20T04:10:00Z" */ createTime:string;/** RFC 3339 UTC time the target's own fields last changed, such as its dependencies or destination. e.g. "2026-11-01T07:20:00Z" */ updateTime:string;/** Canonical Console link for the project this target belongs to. e.g. "https://console.deepraxis.com/devops/projects/dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ viewerUrl:string;/** The project this target belongs to, from the project list. e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string;/** Path inside the repository that holds this deployable, relative to the repository root; it is the target's identity across discoveries. e.g. "services/agent" */ path:string;/** What sort of artifact this target produces, which decides how it is deployed and what a source digest is computed over. e.g. "worker" */ kind:"worker"|"pages"|"npm"|"image"|"container"|"other";destination:{/** Which kind of destination this is; read it first, because each value carries a different set of the fields below. e.g. "cloudflare" */ type:"praxis-application"|"cloudflare"|"npm"|"container-registry"|"custom";/** The Praxis application this target publishes to, present for a praxis-application destination; absent for every other type. e.g. "app_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ application?:string;/** The Cloudflare account the deployment goes into, present for a cloudflare destination. e.g. "023e105f4ecef8ad9ca31a8372d0c353" */ accountId?:string;/** Name of the project variable holding the credential for this destination; the value itself is never returned here. e.g. "CLOUDFLARE_API_TOKEN" */ tokenVariable?:string;/** The registry a package or image is published to, present for npm and container-registry destinations; absent means the public default for that ecosystem. e.g. "registry.npmjs.org" */ registry?:string;/** Environment to dist-tag mapping for an npm destination, so a promotion into an environment publishes under that environment's tag. e.g. {"develop":"dev","production":"latest"} */ distTags?:{[key:string]:string};/** The image name a container-registry destination pushes to, without the tag, which the release supplies. e.g. "ghcr.io/deepractice/router" */ image?:string;deploy?:{/** Name of the automation workflow to run for this target; the workflow receives the release, the environment and the target. e.g. "deploy-router" */ workflow:string}};/** Targets that must succeed before this one deploys, from the deploy graph the repository implies; empty when it depends on nothing. */ dependsOn:Array<string>;/** The commit the discovery read this target from, so a target's definition can be traced to a revision rather than to now. e.g. "4f2a9c1d8e7b6a5c4d3e2f1a0b9c8d7e6f5a4b3c" */ discoveredAt:string;/** Whether the repository no longer deploys this target; an archived target is history and is left out of target lists. e.g. false */ archived:boolean}>;/** 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}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| project | path | string | 是 | Identifies the project whose data you are reading, from the project list or create answer. |
| pageSize | query | number | 否 | 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. |
| pageToken | query | string | 否 | The cursor from the previous page’s nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | One page of the project’s deployable targets, ordered by path. |
| 400 | application/json | INVALID_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. |
| 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. |