API

DockerBuilderSetting

Operations

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

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/docker_builder_settings load Builder state
PATCH /api/v1/organizations/{organization_id}/docker_builder_settings patch Builder state
PUT /api/v1/organizations/{organization_id}/docker_builder_settings update 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:

docker_builder_setting, err := client.DockerBuilderSetting(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(docker_builder_setting)
updated, err := client.DockerBuilderSetting(nil).Update(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.DockerBuilderSetting(nil).Patch(map[string]any{"organization_id": "example", "idle_timeout_seconds": 1}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)

Lua

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

local docker_builder_setting, err = client:DockerBuilderSetting():load({ organization_id = "example" })
local updated, err = client:DockerBuilderSetting():update({ organization_id = "example" })
local patched, err = client:DockerBuilderSetting():patch({ organization_id = "example", idle_timeout_seconds = 1 })

PHP

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

$docker_builder_setting = $client->DockerBuilderSetting()->load(["organization_id" => "example"]);
$updated = $client->DockerBuilderSetting()->update(["organization_id" => "example"]);
$patched = $client->DockerBuilderSetting()->patch(["organization_id" => "example", "idle_timeout_seconds" => 1]);

Python

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

docker_builder_setting = client.DockerBuilderSetting().load({"organization_id": "example"})
updated = client.DockerBuilderSetting().update({"organization_id": "example"})
patched = client.DockerBuilderSetting().patch({"organization_id": "example", "idle_timeout_seconds": 1})

Ruby

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

docker_builder_setting = client.DockerBuilderSetting.load({ "organization_id" => "example" })
updated = client.DockerBuilderSetting.update({ "organization_id" => "example" })
patched = client.DockerBuilderSetting.patch({ "organization_id" => "example", "idle_timeout_seconds" => 1 })

TypeScript

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

const docker_builder_setting = await client.DockerBuilderSetting().load({ organization_id: "example" })
const updated = await client.DockerBuilderSetting().update({ organization_id: "example" })
const patched = await client.DockerBuilderSetting().patch({ organization_id: "example", idle_timeout_seconds: 1 })

Fields

Field Type Required Description
idle_timeout_seconds integer Yes Idle Timeout Seconds
max_concurrency integer Yes Max Concurrency
organization_id string Yes Organization Id
region string Yes Region
runtime_timeout_seconds integer Yes Runtime Timeout Seconds

load

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

Operation ID: api_v1_organization_docker_builder_settings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Responses

200: Builder state

application/json

Property Type Required Description
docker_builder_settings object Yes
docker_builder_settings.idle_timeout_seconds integer Yes
docker_builder_settings.max_concurrency integer Yes
docker_builder_settings.organization_id string Yes
docker_builder_settings.region enum: us-east, us-west, eu-west, ap-southeast Yes
docker_builder_settings.runtime_timeout_seconds integer Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/organizations/{organization_id}/docker_builder_settings

Operation ID: patch_api_v1_organizations_organization_id_docker_builder_settings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

Property Type Required Description
idle_timeout_seconds integer No
max_concurrency integer No
region enum: us-east, us-west, eu-west, ap-southeast No
runtime_timeout_seconds integer No

Responses

200: Builder state

application/json

Property Type Required Description
docker_builder_settings object Yes
docker_builder_settings.idle_timeout_seconds integer Yes
docker_builder_settings.max_concurrency integer Yes
docker_builder_settings.organization_id string Yes
docker_builder_settings.region enum: us-east, us-west, eu-west, ap-southeast Yes
docker_builder_settings.runtime_timeout_seconds integer Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/organizations/{organization_id}/docker_builder_settings

Operation ID: put_api_v1_organizations_organization_id_docker_builder_settings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_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