API reference
List deployments
What each service runs per environment against the head of its repository's default branch: counts of services that are current, behind (merged work waits for a deploy) or unknown (no head recorded), then each service's commit, when it was deployed and its state, environment then service in name order. Filter by environment or status; paged with page_size (0 means 100, at most 500) and next_page_token.
Needs scope agents:read.
bearerAuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
org_id*stringThe account's id: org in GET /v1/me.
environment?stringstatus?stringpage_size?integerint32page_token?stringiohr.agents.v1.ListDeploymentsResponse
application/json- response
iohr.agents.v1.ListDeploymentsResponse
behind*integerint32current*integerint32deployments*array<>next_page_token*stringservices*integerint32unknown*integerint32import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { for await (const agentsDeployment of api.agents.allListDeployments("<org_id>")) { console.log(agentsDeployment); }} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "behind": 0, "current": 0, "deployments": [ { "commit": "string", "deployed_at": "string", "environment": "string", "head_commit": "string", "head_recorded_at": "string", "recorded_by": "string", "repository": "string", "service": "string", "source": "string", "state": "string" } ], "next_page_token": "string", "services": 0, "unknown": 0}