Pause runner in project
Pauses a runner, so that kosem places no new environments on it. Environments already on the runner stay there, because their disks are on its host. A paused runner still counts toward the organization's runner quota.
Pauses a runner, so that kosem places no new environments on it.
Environments already on the runner stay there, because their disks are on its host. A paused runner still counts toward the organization's runner quota.
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}$runner*stringThe runner's ID.
^rnr_[0-7][0-9a-hjkmnp-tv-z]{25}$OK
application/json- response
createTime*stringdate-timedisplayName*stringName shown in user interfaces.
host?Last reported host metadata; absent until the runner registers.
name*stringResource name, {pool}/runners/{runner_id}.
paused*booleanWhether the runner is paused from accepting new environments. Existing environments stay on the runner because their disks live on its host.
registerTime?stringdate-timeregistrationExpireTime?stringWhen the registration token expires while pending.
date-timestate*stringRunner 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.
"PENDING""EXPIRED""ONLINE""OFFLINE"syncTime?stringWhen it last synced.
date-timeupdateTime*stringdate-timeusage?The environments on it, and how much of its host they use, as kosem counts it when placing environments. Absent until it registers.
curl -X POST 'https://api.kosem.ai/v1/projects/string/runnerPools/string/runners/string/pause'{
"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
}
}