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.
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.
bearerAuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$pool*stringThe runner pool's ID.
^rnp_[0-7][0-9a-hjkmnp-tv-z]{25}$application/json- body
displayName*stringName shown in user interfaces, such as the host's.
1 <= length <= 63Created
application/json- response
registrationToken*stringOne-time token valid for one hour, passed to kosem-runner register --token. kosem stores only its hash, so it isn't shown again.
runner*curl -X POST 'https://api.kosem.ai/v1/projects/string/runnerPools/string/runners' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "string"
}'{
"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
}
}
}