API

GithubRunnerImage

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/github_runner_images/{id}/prepare create Success
POST /api/v1/organizations/{organization_id}/github_runner_images create Success
GET /api/v1/organizations/{organization_id}/github_runner_images list Toolchains and preparation status
GET /api/v1/organizations/{organization_id}/github_runner_images/{id} load Runner image and preparation status

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

github_runner_images, err := client.GithubRunnerImage(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(github_runner_images)
github_runner_image, err := client.GithubRunnerImage(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(github_runner_image)
created, err := client.GithubRunnerImage(nil).Create(map[string]any{"organization_id": "example", "image_reference": "example", "name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local github_runner_images, err = client:GithubRunnerImage():list({ organization_id = "example" })
local github_runner_image, err = client:GithubRunnerImage():load({ id = "example_id", organization_id = "example" })
local created, err = client:GithubRunnerImage():create({ organization_id = "example", image_reference = "example", name = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$github_runner_images = $client->GithubRunnerImage()->list(["organization_id" => "example"]);
$github_runner_image = $client->GithubRunnerImage()->load(["id" => "example_id", "organization_id" => "example"]);
$created = $client->GithubRunnerImage()->create(["organization_id" => "example", "image_reference" => "example", "name" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

github_runner_images = client.GithubRunnerImage().list({"organization_id": "example"})
github_runner_image = client.GithubRunnerImage().load({"id": "example_id", "organization_id": "example"})
created = client.GithubRunnerImage().create({ "organization_id": "example", "image_reference": "example", "name": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

github_runner_images = client.GithubRunnerImage.list({ "organization_id" => "example" })
github_runner_image = client.GithubRunnerImage.load({ "id" => "example_id", "organization_id" => "example" })
created = client.GithubRunnerImage.create({ "organization_id" => "example", "image_reference" => "example", "name" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const github_runner_images = await client.GithubRunnerImage().list({ organization_id: "example" })
const github_runner_image = await client.GithubRunnerImage().load({ id: "example_id", organization_id: "example" })
const created = await client.GithubRunnerImage().create({ organization_id: "example", image_reference: "example", name: "example" })

Fields

Field Type Required Description
created_at string Yes Created At
id string Yes Id
image_reference string Yes Immutable linux/amd64 Ubuntu 24.04 image, registry/repository@sha256:digest, with Node 22+
last_error one,string,null Yes Last Error
modal_image_id one,string,null Yes Modal Image Id
name string Yes Name
registry_secret_name one,string,null Yes Name of an organization CI secret containing REGISTRY_USERNAME and REGISTRY_PASSWORD JSON fields
status string Yes Status
updated_at string Yes Updated At

create

POST /api/v1/organizations/{organization_id}/github_runner_images/{id}/prepare

Operation ID: post_api_v1_organizations_organization_id_github_runner_images_id_prepare.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

202: Runner image and preparation status

application/json

Property Type Required Description
github_runner_image object Yes
github_runner_image.created_at string Yes
github_runner_image.id string Yes
github_runner_image.image_reference string Yes Immutable linux/amd64 Ubuntu 24.04 image, registry/repository@sha256:digest, with Node 22+
github_runner_image.last_error string Yes
github_runner_image.modal_image_id string Yes
github_runner_image.name string Yes
github_runner_image.registry_secret_name string Yes Name of an organization CI secret containing REGISTRY_USERNAME and REGISTRY_PASSWORD JSON fields
github_runner_image.status enum: pending, building, ready, failed Yes
github_runner_image.updated_at string Yes
401: Unauthorized
403: Organization administrator required
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/organizations/{organization_id}/github_runner_images

Operation ID: post_api_v1_organizations_organization_id_github_runner_images.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

Property Type Required Description
image_reference string Yes
name string Yes
registry_secret_name string No

Responses

200: Success

application/json

The response is object.

202: Runner image and preparation status

application/json

Property Type Required Description
github_runner_image object Yes
github_runner_image.created_at string Yes
github_runner_image.id string Yes
github_runner_image.image_reference string Yes Immutable linux/amd64 Ubuntu 24.04 image, registry/repository@sha256:digest, with Node 22+
github_runner_image.last_error string Yes
github_runner_image.modal_image_id string Yes
github_runner_image.name string Yes
github_runner_image.registry_secret_name string Yes Name of an organization CI secret containing REGISTRY_USERNAME and REGISTRY_PASSWORD JSON fields
github_runner_image.status enum: pending, building, ready, failed Yes
github_runner_image.updated_at string Yes
401: Unauthorized
403: Organization administrator required
404: Not found
422: Invalid image or registry secret reference
502: Bad gateway

list

GET /api/v1/organizations/{organization_id}/github_runner_images

Operation ID: get_api_v1_organizations_organization_id_github_runner_images.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Responses

200: Toolchains and preparation status

application/json

Property Type Required Description
github_runner_images array of object Yes
github_runner_images[].created_at string Yes
github_runner_images[].id string Yes
github_runner_images[].image_reference string Yes Immutable linux/amd64 Ubuntu 24.04 image, registry/repository@sha256:digest, with Node 22+
github_runner_images[].last_error string Yes
github_runner_images[].modal_image_id string Yes
github_runner_images[].name string Yes
github_runner_images[].registry_secret_name string Yes Name of an organization CI secret containing REGISTRY_USERNAME and REGISTRY_PASSWORD JSON fields
github_runner_images[].status enum: pending, building, ready, failed Yes
github_runner_images[].updated_at string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/organizations/{organization_id}/github_runner_images/{id}

Operation ID: get_api_v1_organizations_organization_id_github_runner_images_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Responses

200: Runner image and preparation status

application/json

Property Type Required Description
github_runner_image object Yes
github_runner_image.created_at string Yes
github_runner_image.id string Yes
github_runner_image.image_reference string Yes Immutable linux/amd64 Ubuntu 24.04 image, registry/repository@sha256:digest, with Node 22+
github_runner_image.last_error string Yes
github_runner_image.modal_image_id string Yes
github_runner_image.name string Yes
github_runner_image.registry_secret_name string Yes Name of an organization CI secret containing REGISTRY_USERNAME and REGISTRY_PASSWORD JSON fields
github_runner_image.status enum: pending, building, ready, failed Yes
github_runner_image.updated_at string Yes
401: Unauthorized
403: Forbidden
404: Image not found in this organization
422: Unprocessable entity
502: Bad gateway