UpdateRunner
runners.update(RunnerUpdateParams**kwargs) -> object
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 os
from gitpod import Gitpod
client = Gitpod(
bearer_token=os.environ.get("GITPOD_API_KEY"), # This is the default and can be omitted
)
runner = client.runners.update(
name="Updated Runner Name",
runner_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
spec={
"configuration": {
"auto_update": True,
"release_channel": "RUNNER_RELEASE_CHANNEL_LATEST",
}
},
)
print(runner){}Returns Examples
{}