DockerBuilderSession
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/docker_builders/{docker_builder_id}/sessions |
create |
Success |
POST |
/api/v1/organizations/{organization_id}/docker_builder_sessions/{id}/refresh |
create |
Success |
POST |
/api/v1/organizations/{organization_id}/docker_builder_sessions/authorize |
create |
Builder session |
GET |
/api/v1/organizations/{organization_id}/docker_builder_sessions/{id} |
load |
Builder session |
DELETE |
/api/v1/organizations/{organization_id}/docker_builder_sessions/{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:
docker_builder_session, err := client.DockerBuilderSession(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(docker_builder_session)
created, err := client.DockerBuilderSession(nil).Create(map[string]any{"docker_builder_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
removed, err := client.DockerBuilderSession(nil).Remove(map[string]any{"id": "example_id", "organization_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 docker_builder_session, err = client:DockerBuilderSession():load({ id = "example_id", organization_id = "example" })
local created, err = client:DockerBuilderSession():create({ docker_builder_id = "example", organization_id = "example" })
local removed, err = client:DockerBuilderSession():remove({ id = "example_id", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$docker_builder_session = $client->DockerBuilderSession()->load(["id" => "example_id", "organization_id" => "example"]);
$created = $client->DockerBuilderSession()->create(["docker_builder_id" => "example", "organization_id" => "example"]);
$client->DockerBuilderSession()->remove(["id" => "example_id", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
docker_builder_session = client.DockerBuilderSession().load({"id": "example_id", "organization_id": "example"})
created = client.DockerBuilderSession().create({ "docker_builder_id": "example", "organization_id": "example" })
client.DockerBuilderSession().remove({"id": "example_id", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
docker_builder_session = client.DockerBuilderSession.load({ "id" => "example_id", "organization_id" => "example" })
created = client.DockerBuilderSession.create({ "docker_builder_id" => "example", "organization_id" => "example" })
client.DockerBuilderSession.remove({ "id" => "example_id", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const docker_builder_session = await client.DockerBuilderSession().load({ id: "example_id", organization_id: "example" })
const created = await client.DockerBuilderSession().create({ docker_builder_id: "example", organization_id: "example" })
await client.DockerBuilderSession().remove({ id: "example_id", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
created_at |
string |
Yes | Created At |
docker_builder_id |
string |
Yes | Docker Builder Id |
expires_at |
string |
Yes | Expires At |
gateway_url |
one,string,null |
No | Organization-addressed public WSS gateway; null until configured |
generation |
integer |
Yes | Generation |
id |
string |
Yes | Id |
organization_id |
string |
Yes | Organization Id |
revoked_at |
one,string,null |
Yes | Revoked At |
user_id |
string |
Yes | User Id |
create
POST /api/v1/organizations/{organization_id}/docker_builders/{docker_builder_id}/sessions
Operation ID: api_v1_organization_docker_builder_sessions.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
docker_builder_id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
201: Builder session
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder_session |
object |
Yes | |
docker_builder_session.created_at |
string (date-time) |
Yes | |
docker_builder_session.docker_builder_id |
string |
Yes | |
docker_builder_session.expires_at |
string (date-time) |
Yes | |
docker_builder_session.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder_session.generation |
integer |
Yes | |
docker_builder_session.id |
string |
Yes | |
docker_builder_session.organization_id |
string |
Yes | |
docker_builder_session.revoked_at |
string (date-time) |
Yes | |
docker_builder_session.user_id |
string |
Yes | |
token |
string |
Yes | Opaque secret returned once; never persist on builder cache or print to logs |
401: Unauthorized
403: Forbidden
404: Not found
409: Builder is not ready or actor is no longer authorized
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/docker_builder_sessions/{id}/refresh
Operation ID: refresh_api_v1_organization_docker_builder_session.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
201: Builder session
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder_session |
object |
Yes | |
docker_builder_session.created_at |
string (date-time) |
Yes | |
docker_builder_session.docker_builder_id |
string |
Yes | |
docker_builder_session.expires_at |
string (date-time) |
Yes | |
docker_builder_session.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder_session.generation |
integer |
Yes | |
docker_builder_session.id |
string |
Yes | |
docker_builder_session.organization_id |
string |
Yes | |
docker_builder_session.revoked_at |
string (date-time) |
Yes | |
docker_builder_session.user_id |
string |
Yes | |
token |
string |
Yes | Opaque secret returned once; never persist on builder cache or print to logs |
401: Unauthorized
403: Forbidden
404: Not found
409: Session expired, revoked, unauthorized, or from another generation
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/docker_builder_sessions/authorize
Operation ID: api_v1_organization_docker_builder_sessions_authorize.
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: Builder session
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder_session |
object |
Yes | |
docker_builder_session.created_at |
string (date-time) |
Yes | |
docker_builder_session.docker_builder_id |
string |
Yes | |
docker_builder_session.expires_at |
string (date-time) |
Yes | |
docker_builder_session.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder_session.generation |
integer |
Yes | |
docker_builder_session.id |
string |
Yes | |
docker_builder_session.organization_id |
string |
Yes | |
docker_builder_session.revoked_at |
string (date-time) |
Yes | |
docker_builder_session.user_id |
string |
Yes |
401: Capability is no longer authorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/docker_builder_sessions/{id}
Operation ID: api_v1_organization_docker_builder_session.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Builder session
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder_session |
object |
Yes | |
docker_builder_session.created_at |
string (date-time) |
Yes | |
docker_builder_session.docker_builder_id |
string |
Yes | |
docker_builder_session.expires_at |
string (date-time) |
Yes | |
docker_builder_session.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder_session.generation |
integer |
Yes | |
docker_builder_session.id |
string |
Yes | |
docker_builder_session.organization_id |
string |
Yes | |
docker_builder_session.revoked_at |
string (date-time) |
Yes | |
docker_builder_session.user_id |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
remove
DELETE /api/v1/organizations/{organization_id}/docker_builder_sessions/{id}
Operation ID: delete_api_v1_organizations_organization_id_docker_builder_sessions_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.