Retrieve a connection
Code Mode: praxis.devops.connections.retrieve
HTTP: GET /devops/v1/connections/{id}
Read one connection: the provider, GitHub’s installation id, the account the app was installed on, whether it may read every repository or only selected ones, and whether it is still usable. A connection GitHub suspended or deleted answers with that state rather than disappearing, so a caller can tell “install it again” from “this id never existed”.
签名
praxis.devops.connections.retrieve(args:{path:{/** e.g. "con_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string}}):Promise<{/** Connection identifier used when binding a project to a repository; it is not GitHub's installation id, which is installationId. e.g. "con_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** The resource type of this answer, always connection. */ object:"connection";/** RFC 3339 UTC time the installation was first recorded for this organization. e.g. "2026-11-03T09:10:00Z" */ createTime:string;/** RFC 3339 UTC time the connection last changed — a repeated complete, or a state GitHub reported. e.g. "2026-11-03T09:14:00Z" */ updateTime:string;/** Canonical Console link for this organization's connections. e.g. "https://console.deepraxis.com/devops/connections/con_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ viewerUrl:string;/** The git host this connection was made with; github is the only provider today. e.g. "github" */ provider:"github";/** GitHub's own installation id, the number the installation redirect carries; every repository read is made against it. e.g. 12345678 */ installationId:number;account:{/** The account's GitHub login, which is what a person recognizes when checking that the installation landed in the right place. e.g. "deepraxis" */ login:string;/** Whether the installation was made on an organization or on a personal account; it decides who can manage the installation on GitHub. e.g. "Organization" */ type:"Organization"|"User"};/** How much of the account the installation may read; a repository outside this scope is not listed and cannot be bound. e.g. "selected" */ repositorySelection:"all"|"selected";/** Whether the connection can be used: a suspended installation is refused by GitHub reads until it is restored there, and a deleted one is kept only as history. e.g. "active" */ state:"active"|"suspended"|"deleted"}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| id | path | string | 是 | The connection identifier returned by the connection list or by connections:complete, not GitHub’s installation id. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The connection, including its state. |
| 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 | CONNECTION_NOT_FOUND means no connection with that id exists in this organization, or it belongs to another organization; list the connections and use an id from that answer. A deleted connection is still readable until it is removed, so this answer means the id itself is unknown. |
| 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. |