Skip to Content
kosemdocs
ReferenceAPIEnvironments

Delete runner in project

Deletes a runner, freeing its quota slot. kosem stops accepting connections from it, and the host cleans up its local state if it reconnects. Environment disks on this runner are deleted with it; remaining environments start fresh on another runner in the pool.

DELETE
/v1/projects/{project}/runnerPools/{pool}/runners/{runner}

Deletes a runner, freeing its quota slot. kosem stops accepting connections from it, and the host cleans up its local state if it reconnects.

Environment disks on this runner are deleted with it; remaining environments start fresh on another runner in the pool.

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

No Content

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 DELETE 'https://api.kosem.ai/v1/projects/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
  }
}