List connections
Code Mode: praxis.devops.connections.list
HTTP: GET /devops/v1/connections
List the git host installations this organization has connected. A connection is what a project is bound to a repository through, so this is where a project with no repository starts. Only this organization’s connections are returned, newest first, and pageToken walks the pages; orderBy and filter are refused rather than silently ignored, because the collection has exactly one order and no filterable field.
签名
praxis.devops.connections.list(args?:{query?:{/** e.g. 20 */ pageSize?:number;/** e.g. "pt1.eyJvIjoyMH0" */ pageToken?:string}}):Promise<{/** The connections on this page, newest first. */ items:Array<{/** 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"}>;/** 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}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| 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 organization’s connections; an empty list means no installation has been completed yet. |
| 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. |
| 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. |