Skip to Content
kosemdocs
ReferenceAPIEnvironments

Create runner in project

Adds a runner to a pool and returns a one-time registration token valid for one hour. The runner counts against the organization's environments.runners quota from creation until deleted (or until its registration token expires unused). Run kosem-runner register with the token; kosem stores only its hash.

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

Adds a runner to a pool and returns a one-time registration token valid for one hour.

The runner counts against the organization's environments.runners quota from creation until deleted (or until its registration token expires unused). Run kosem-runner register with the token; kosem stores only its hash.

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}$

Request Body

application/json
  1. body
displayName*string

Name shown in user interfaces, such as the host's.

Length1 <= length <= 63

Response Body

Created

application/json
  1. response
registrationToken*string

One-time token valid for one hour, passed to kosem-runner register --token. kosem stores only its hash, so it isn't shown again.

runner*
Example Request
curl -X POST 'https://api.kosem.ai/v1/projects/string/runnerPools/string/runners' \
  -H 'Content-Type: application/json' \
  -d '{
  "displayName": "string"
}'
Example Response
{
  "registrationToken": "string",
  "runner": {
    "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
    }
  }
}