Sign in
Docs
API referenceCoordinator

API reference

Get a pool's policy

Have a token? Manage tokens in the console
GET
/v1/coordinator/pools/{pool_id}

One pool's policy, the current version or any earlier one with who set it and why. A version that never existed answers not found.

Needs scope coordinator: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

pool_id*string

The pool's id, from List pools.

Query Parameters

version?integer

0 is the current version.

Formatint32
account_id?string

The account's id: org in GET /v1/me.

Response Body

iohr.coordinator.v1.GetPoolPolicyResponse

application/json
  1. response

iohr.coordinator.v1.GetPoolPolicyResponse

policy?

iohr.coordinator.v1.PoolPolicy

import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try {  const { value } = await api.coordinator.getPoolPolicy("<pool_id>");  console.log(value);} 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
{  "policy": {    "max_load_per_core": 0.1,    "max_slots": 0,    "min_free_disk_bytes": "string",    "paused": true,    "pool_id": "string",    "reason": "string",    "runners": [      {        "max_build_slots": 0,        "max_slots": 0,        "runner_id": "string"      }    ],    "thermal_limits": {      "property1": 0.1,      "property2": 0.1    },    "trust_tier": "string",    "updated_at": "string",    "updated_by": "string",    "version": 0  }}