Skip to main content

org_hosted_runner_custom_images

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

Overview

Nameorg_hosted_runner_custom_images
TypeResource
Idgithub.actions.org_hosted_runner_custom_images

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idintegerThe ID of the image. Use this ID for the image parameter when creating a new larger runner.
namestringDisplay name for this image. (example: CustomImage)
latest_versionstringThe latest image version associated with the image. (example: 1.3.0)
platformstringThe operating system of the image. (example: linux-x64)
sourcestringThe image provider. (example: custom)
statestringThe number of image versions associated with the image. (example: Ready)
total_versions_sizeintegerTotal size of all the image versions in GB.
versions_countintegerThe number of image versions associated with the image.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_custom_image_for_orgselectorg, image_definition_idGet a custom image definition for GitHub Actions Hosted Runners.

OAuth tokens and personal access tokens (classic) need the manage_runners:org scope to use this endpoint.
list_custom_images_for_orgselectorgList custom images for an organization.

OAuth tokens and personal access tokens (classic) need the manage_runners:org scope to use this endpoint.
delete_custom_image_from_orgdeleteorg, image_definition_idDelete a custom image from the organization.

OAuth tokens and personal access tokens (classic) need the manage_runners: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
image_definition_idintegerImage definition ID of custom image
orgstringThe organization name. The name is not case sensitive.

SELECT examples

Get a custom image definition for GitHub Actions Hosted Runners.

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

SELECT
id,
name,
latest_version,
platform,
source,
state,
total_versions_size,
versions_count
FROM github.actions.org_hosted_runner_custom_images
WHERE org = '{{ org }}' -- required
AND image_definition_id = '{{ image_definition_id }}' -- required
;

DELETE examples

Delete a custom image from the organization.

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

DELETE FROM github.actions.org_hosted_runner_custom_images
WHERE org = '{{ org }}' --required
AND image_definition_id = '{{ image_definition_id }}' --required
;