Skip to main content

List self-hosted runners for an enterprise

Lists all self-hosted runners configured for an enterprise. You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.

GET/enterprises/{enterprise}/actions/runners
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
enterprise string
required

The slug version of the enterprise name. You can also substitute this value with the enterprise id.

Query Parameters
per_page integer
optional

Results per page (max 100)

page integer
optional

Page number of the results to fetch.

Responses

application/json object

Response

Headers
Link string
Example:
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"
runners array[Self hosted runners object]
optional
items Self hosted runners object

A self hosted runner

busy boolean
required
id integer
required

The id of the runner.

Example: 5

labels array[Self hosted runner label object]
required
name string
required

The name of the runner.

Example: iMac

os string
required

The Operating System of the runner.

Example: macos

status string
required

The status of the runner.

Example: online

total_count number
optional