Skip to Content
kosemdocs
ReferenceAPIEnvironments

Get runner

Gets a runner and its last reported host metadata.

GET
/v1/organizations/{organization}/runnerPools/{pool}/runners/{runner}

Gets a runner and its last reported host metadata.

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Path Parameters

organization*string

The organization's ID.

Match^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
pool*string

The runner pool's ID.

Match^rnp_[0-7][0-9a-hjkmnp-tv-z]{25}$
runner*string

The runner's ID.

Match^rnr_[0-7][0-9a-hjkmnp-tv-z]{25}$

Response Body

OK

application/json
  1. response
createTime*string
Formatdate-time
displayName*string

Name shown in user interfaces.

host?

Last reported host metadata; absent until the runner registers.

name*string

Resource name, {pool}/runners/{runner_id}.

paused*boolean

Whether the runner is paused from accepting new environments. Existing environments stay on the runner because their disks live on its host.

registerTime?string
Formatdate-time
registrationExpireTime?string

When the registration token expires while pending.

Formatdate-time
state*string

Runner status: PENDING (awaiting host registration), EXPIRED (token expired unused), ONLINE (actively syncing) or OFFLINE (no sync for 30 seconds). Counts toward organization runner quota from creation until deletion, except when EXPIRED.

Value in"PENDING""EXPIRED""ONLINE""OFFLINE"
syncTime?string

When it last synced.

Formatdate-time
updateTime*string
Formatdate-time
usage?

The environments on it, and how much of its host they use, as kosem counts it when placing environments. Absent until it registers.

Example Request
curl -X GET 'https://api.kosem.ai/v1/organizations/string/runnerPools/string/runners/string'
Example Response
{
  "createTime": "2019-08-24T14:15:22Z",
  "displayName": "string",
  "host": {
    "arch": "string",
    "diskGib": 0,
    "hostname": "string",
    "kata": "string",
    "memoryMib": 0,
    "os": "string",
    "runtime": "kata",
    "runtimeVersion": "string",
    "upgradeAvailable": true,
    "vcpus": 0,
    "version": "string"
  },
  "name": "string",
  "paused": true,
  "registerTime": "2019-08-24T14:15:22Z",
  "registrationExpireTime": "2019-08-24T14:15:22Z",
  "state": "PENDING",
  "syncTime": "2019-08-24T14:15:22Z",
  "updateTime": "2019-08-24T14:15:22Z",
  "usage": {
    "diskGib": 0,
    "environments": 0,
    "memoryMib": 0,
    "runningEnvironments": 0,
    "vcpus": 0
  }
}