Connections
A team's git provider connections. Reachable with a team API key.
postDelete a git connection
Removes a team's provider authorisation. It is refused with `FAILED_PRECONDITION` while any function still deploys through it: move or delete those functions first (`GitConnection.functions` gives the count). An unknown connection is `NOT_FOUND`. Needs the admin role in the owning team. A team API key never holds that role, so in practice this needs a signed-in team admin. The deletion is recorded in the platform audit log. **Required scopes:** `functions:functions:edit`
postList a team's git connections
Lists a team's provider authorisations, oldest first: GitHub App installations and GitLab access. Each comes with the account it covers, when its credential expires, and how many functions deploy through it. `ownerTeam` (a team URN or slug) needs the viewer role in that team. Pages default to 50 connections and are capped at 500 (`limit`); pass `nextCursor` back as `cursor` until it comes back empty. Callable with a console session or a team API key (`Authorization: Bearer xk_…`). **Required scopes:** `functions:functions:read`
Read a version's build log POST
Returns a version's build output from `offsetBytes` onward, with the offset to send next (`nextOffsetBytes`) and the version's current state. Output is stored while the build runs, about twice a second. Call again with the returned offset until `complete` is true. A static version builds nothing, so it is complete at once with an empty log. An offset past the end returns no output. Needs the viewer role in the owning team. Callable with a console session or a team API key (`Authorization: Bearer xk_…`). **Required scopes:** `functions:functions:read`
Delete a git connection POST
Removes a team's provider authorisation. It is refused with `FAILED_PRECONDITION` while any function still deploys through it: move or delete those functions first (`GitConnection.functions` gives the count). An unknown connection is `NOT_FOUND`. Needs the admin role in the owning team. A team API key never holds that role, so in practice this needs a signed-in team admin. The deletion is recorded in the platform audit log. **Required scopes:** `functions:functions:edit`