UpdateRunner
client.runners.update(RunnerUpdateParams { name, runnerId, spec } body, RequestOptionsoptions?): RunnerUpdateResponse
POST/gitpod.v1.RunnerService/UpdateRunner
Updates a runner’s configuration.
Use this method to:
- Modify runner settings
- Update release channels
- Change runner status
- Configure auto-update settings
Examples
-
Update configuration:
Changes runner settings.
runnerId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" name: "Updated Runner Name" spec: configuration: releaseChannel: RUNNER_RELEASE_CHANNEL_LATEST autoUpdate: true
UpdateRunner
import Gitpod from '@gitpod/sdk';
const client = new Gitpod({
bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});
const runner = await client.runners.update({
name: 'Updated Runner Name',
runnerId: 'd2c94c27-3b76-4a42-b88c-95a85e392c68',
spec: { configuration: { autoUpdate: true, releaseChannel: 'RUNNER_RELEASE_CHANNEL_LATEST' } },
});
console.log(runner);{}Returns Examples
{}