Skip to main content

org_hosted_runner_custom_image_versions

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

Overview

Nameorg_hosted_runner_custom_image_versions
TypeResource
Idgithub.actions.org_hosted_runner_custom_image_versions

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
created_onstringThe creation date time of the image version. (example: 2024-11-09T23:39:01Z)
size_gbintegerImage version size in GB.
statestringThe state of image version. (example: Ready)
state_detailsstringThe image version status details. (example: None)
versionstringThe version of image. (example: 1.0.0)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_custom_image_version_for_orgselectorg, image_definition_id, versionGet an image version of a custom image for GitHub Actions Hosted Runners.

OAuth tokens and personal access tokens (classic) need the manage_runners:org scope to use this endpoint.
list_custom_image_versions_for_orgselectimage_definition_id, orgList image versions of a custom image for an organization.

OAuth tokens and personal access tokens (classic) need the manage_runners:org scope to use this endpoint.
delete_custom_image_version_from_orgdeleteorg, image_definition_id, versionDelete an image version of 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.
versionstringVersion of a custom image

SELECT examples

Get an image version of a custom image for GitHub Actions Hosted Runners.

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

SELECT
created_on,
size_gb,
state,
state_details,
version
FROM github.actions.org_hosted_runner_custom_image_versions
WHERE org = '{{ org }}' -- required
AND image_definition_id = '{{ image_definition_id }}' -- required
AND version = '{{ version }}' -- required
;

DELETE examples

Delete an image version of 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_image_versions
WHERE org = '{{ org }}' --required
AND image_definition_id = '{{ image_definition_id }}' --required
AND version = '{{ version }}' --required
;