API

BackendRunnerPool

Operations

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

Method Route SDK operation Returns
POST /api/v1/bazel/backends/{backend_id}/runner_pools create Success
GET /api/v1/bazel/backends/{backend_id}/runner_pools load Success
DELETE /api/v1/bazel/backends/{backend_id}/runner_pools/{id} remove Success

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:

backend_runner_pool, err := client.BackendRunnerPool(nil).Load(map[string]any{"backend_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(backend_runner_pool)
created, err := client.BackendRunnerPool(nil).Create(map[string]any{"backend_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
removed, err := client.BackendRunnerPool(nil).Remove(map[string]any{"backend_id": "example", "id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

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

local backend_runner_pool, err = client:BackendRunnerPool():load({ backend_id = "example" })
local created, err = client:BackendRunnerPool():create({ backend_id = "example" })
local removed, err = client:BackendRunnerPool():remove({ backend_id = "example", id = "example" })

PHP

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

$backend_runner_pool = $client->BackendRunnerPool()->load(["backend_id" => "example"]);
$created = $client->BackendRunnerPool()->create(["backend_id" => "example"]);
$client->BackendRunnerPool()->remove(["backend_id" => "example", "id" => "example"]);

Python

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

backend_runner_pool = client.BackendRunnerPool().load({"backend_id": "example"})
created = client.BackendRunnerPool().create({ "backend_id": "example" })
client.BackendRunnerPool().remove({"backend_id": "example", "id": "example"})

Ruby

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

backend_runner_pool = client.BackendRunnerPool.load({ "backend_id" => "example" })
created = client.BackendRunnerPool.create({ "backend_id" => "example" })
client.BackendRunnerPool.remove({ "backend_id" => "example", "id" => "example" })

TypeScript

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

const backend_runner_pool = await client.BackendRunnerPool().load({ backend_id: "example" })
const created = await client.BackendRunnerPool().create({ backend_id: "example" })
await client.BackendRunnerPool().remove({ backend_id: "example", id: "example" })

Fields

Field Type Required Description
id string No Id

create

POST /api/v1/bazel/backends/{backend_id}/runner_pools

Operation ID: post_api_v1_bazel_backends_backend_id_runner_pools.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
backend_id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/bazel/backends/{backend_id}/runner_pools

Operation ID: api_v1_backend_runner_pools.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
backend_id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/bazel/backends/{backend_id}/runner_pools/{id}

Operation ID: api_v1_backend_runner_pool.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway