Update a GitHub-hosted runner for an organization
Updates a GitHub-hosted runner for an organization.
OAuth app tokens and personal access tokens (classic) need the manage_runners:org scope to use this endpoint.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
Unique identifier of the GitHub-hosted runner.
Request Body required
Section titled “ Request Body required ”object
Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, ‘.’, ‘-’, and ‘_’.
The existing runner group to add this runner to.
The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.
Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use GET actions/hosted-runners/limits
The machine size of the runner. To list available sizes, use GET actions/hosted-runners/machine-sizes
The source type of the runner image to use. Must match the source of the image specified by image_id. Can be one of github, partner, or custom.
The unique identifier of the runner image. To list available images, use GET /actions/hosted-runners/images/github-owned, GET /actions/hosted-runners/images/partner, or GET /actions/hosted-runners/images/custom.
The version of the runner image to deploy. This is relevant only for runners using custom images.
Whether to enable image generation for this runner pool. When enabled, the runner pool is used to build and publish custom runner images.
Examples
{ "name": "My larger runner", "runner_group_id": 1, "maximum_runners": 50, "enable_static_ip": false}Responses
Section titled “ Responses ”Response
A Github-hosted hosted runner.
object
The unique identifier of the hosted runner.
The name of the hosted runner.
The unique identifier of the group that the hosted runner belongs to.
Provides details of a hosted runner image
object
The ID of the image. Use this ID for the image parameter when creating a new larger runner.
Image size in GB.
Display name for this image.
The image provider.
The image version of the hosted runner pool.
Provides details of a particular machine spec.
object
The ID used for the size parameter when creating a new runner.
The number of cores.
The available RAM for the machine spec.
The available SSD storage for the machine spec.
The status of the runner.
The operating system of the image.
The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost.
Whether public IP is enabled for the hosted runners.
The public IP ranges when public IP is enabled for the hosted runners.
Provides details of Public IP for a GitHub-hosted larger runners
object
Whether public IP is enabled.
The prefix for the public IP.
The length of the IP prefix.
The time at which the runner was last used, in ISO 8601 format.
Whether custom image generation is enabled for the hosted runners.
Examples
{ "id": 5, "name": "My hosted ubuntu runner", "runner_group_id": 2, "platform": "linux-x64", "image": { "id": "ubuntu-20.04", "size": 86 }, "machine_size_details": { "id": "4-core", "cpu_cores": 4, "memory_gb": 16, "storage_gb": 150 }, "status": "Ready", "maximum_runners": 10, "public_ip_enabled": true, "public_ips": [ { "enabled": true, "prefix": "20.80.208.150", "length": 31 } ], "last_active_on": "2022-10-09T23:39:01Z"}