Sign in
Docs
API referenceInfrastructure

API reference

List a run's events

Have a token? Manage tokens in the console
GET
/v1/infra/runs/{run_id}/log

The same events as Watch a run, one page at a time, for a caller that cannot hold a stream open. Ask again with next_page_token: while the run is not done it is set even when no event came; it is empty once done is true.

Needs scope infra:read.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

run_id*string

The run's id, run_ and 32 hex characters, from Start a run or List a stack's runs.

Query Parameters

page_size?integer

At most this many; 0 means 200, above 500 means 500.

Formatint32
page_token?string

Empty is from the first event; else a next_page_token from the last page.

Response Body

iohr.infra.v1.ListRunEventsResponse

application/json
  1. response

iohr.infra.v1.ListRunEventsResponse

done*boolean
events*array<>
next_page_token*string
state*string
import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try {  for await (const runEvent of api.infra.allListRunEvents("<run_id>")) {    console.log(runEvent);  }} 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.

Example Response
{  "done": true,  "events": [    {      "at": "string",      "kind": "string",      "run_id": "string",      "seq": "string",      "state": "string",      "status": "string",      "subject": "string",      "text": "string"    }  ],  "next_page_token": "string",  "state": "string"}