Cloud API

Runners

GitHub’s self-hosted runners on a native runtime — a Mac’s — as many copies as asked, each taking a job.

Base URL https://cloud.yet.com.br/v1

List runners

GET/v1/runtimes/{id}/runners

With each copy’s state.

Request
curl https://cloud.yet.com.br/v1/runtimes/{id}/runners \
  -H "Authorization: Bearer $YET_API_KEY"

Create a runner

POST/v1/runtimes/{id}/runners

For a repository or an organization on GitHub.

Who: Cloud admin

Body

namestringrequired
Its name.
urlstringrequired
The repository’s or organization’s address on GitHub.
labelsstring[]
Its labels, for jobs to pick it by.
replicasnumber
How many copies.
github_tokenstring
A token of its own; the company’s GitHub connection otherwise.
Request
curl -X POST https://cloud.yet.com.br/v1/runtimes/{id}/runners \
  -H "Authorization: Bearer $YET_API_KEY"

Change a runner

PUT/v1/runtimes/{id}/runners/{runner}

The whole of it, as on creation; disabled stops it.

Who: Cloud admin

Request
curl -X PUT https://cloud.yet.com.br/v1/runtimes/{id}/runners/{runner} \
  -H "Authorization: Bearer $YET_API_KEY"

Delete a runner

DELETE/v1/runtimes/{id}/runners/{runner}

Its copies stop.

Who: Cloud admin

Request
curl -X DELETE https://cloud.yet.com.br/v1/runtimes/{id}/runners/{runner} \
  -H "Authorization: Bearer $YET_API_KEY"
Response · 204 No Content