Skip to main content

org_runner_group_hosted_runners

Creates, updates, deletes, gets or lists an org_runner_group_hosted_runners resource.

Overview

Nameorg_runner_group_hosted_runners
TypeResource
Idgithub.actions.org_runner_group_hosted_runners

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idintegerThe unique identifier of the hosted runner.
namestringThe name of the hosted runner. (example: my-github-hosted-runner)
runner_group_idintegerThe unique identifier of the group that the hosted runner belongs to.
image_detailsobjectProvides details of a hosted runner image (title: GitHub-hosted runner image details.)
image_genbooleanWhether custom image generation is enabled for the hosted runners.
last_active_onstring (date-time)The time at which the runner was last used, in ISO 8601 format. (example: 2022-10-09T23:39:01Z)
machine_size_detailsobjectProvides details of a particular machine spec. (title: Github-owned VM details.)
maximum_runnersintegerThe maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost.
platformstringThe operating system of the image. (example: linux-x64)
public_ip_enabledbooleanWhether public IP is enabled for the hosted runners.
public_ipsarrayThe public IP ranges when public IP is enabled for the hosted runners.
statusstringThe status of the runner. (Ready, Provisioning, Shutdown, Deleting, Stuck) (example: Ready)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_github_hosted_runners_in_group_for_orgselectorg, runner_group_idper_page, pageLists the GitHub-hosted runners in an organization group.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.
runner_group_idintegerUnique identifier of the self-hosted runner group.
pageintegerThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

SELECT examples

Lists the GitHub-hosted runners in an organization group.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

SELECT
id,
name,
runner_group_id,
image_details,
image_gen,
last_active_on,
machine_size_details,
maximum_runners,
platform,
public_ip_enabled,
public_ips,
status
FROM github.actions.org_runner_group_hosted_runners
WHERE org = '{{ org }}' -- required
AND runner_group_id = '{{ runner_group_id }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
;