Cloud API
Runners
GitHub’s self-hosted runners on a native runtime — a Mac’s — as many copies as asked, each taking a job.
URL base https://cloud.yet.com.br/v1
As descrições dos endpoints estão em inglês.
List runners
GET
/v1/runtimes/{id}/runnersWith each copy’s state.
Requisição
curl https://cloud.yet.com.br/v1/runtimes/{id}/runners \
-H "Authorization: Bearer $YET_API_KEY"Create a runner
POST
/v1/runtimes/{id}/runnersFor a repository or an organization on GitHub.
Quem: Cloud admin
Corpo
namestringobrigatório- Its name.
urlstringobrigatório- 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.
Requisição
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.
Quem: Cloud admin
Requisição
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.
Quem: Cloud admin
Requisição
curl -X DELETE https://cloud.yet.com.br/v1/runtimes/{id}/runners/{runner} \
-H "Authorization: Bearer $YET_API_KEY"Resposta · 204 Sem conteúdo