Skip to Content
kosemdocs
ReferenceAPIEnvironments

Resume runner in project

Resumes a paused runner, so that kosem places new environments on it again.

POST
/v1/projects/{project}/runnerPools/{pool}/runners/{runner}/resume

Resumes a paused runner, so that kosem places new environments on it again.

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Path Parameters

project*string

The project's ID.

Match^prj_[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 POST 'https://api.kosem.ai/v1/projects/string/runnerPools/string/runners/string/resume'
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
  }
}