API

AppRun

Operations

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

Method Route SDK operation Returns
POST /api/v1/hosting/app_runs/{id}/cancel create Success
POST /api/v1/hosting/app_runs create Success
GET /api/v1/hosting/app_runs/{id} load Success
GET /api/v1/hosting/app_runs load 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:

app_run, err := client.AppRun(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(app_run)
created, err := client.AppRun(nil).Create(map[string]any{"image": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local app_run, err = client:AppRun():load({ id = "example_id" })
local created, err = client:AppRun():create({ image = "example" })

PHP

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

$app_run = $client->AppRun()->load(["id" => "example_id"]);
$created = $client->AppRun()->create(["image" => "example"]);

Python

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

app_run = client.AppRun().load({"id": "example_id"})
created = client.AppRun().create({ "image": "example" })

Ruby

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

app_run = client.AppRun.load({ "id" => "example_id" })
created = client.AppRun.create({ "image" => "example" })

TypeScript

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

const app_run = await client.AppRun().load({ id: "example_id" })
const created = await client.AppRun().create({ image: "example" })

Fields

Field Type Required Description
id string No Id
image string No Optional fully qualified digest-pinned image from the deployed service's registry and repository.

create

POST /api/v1/hosting/app_runs/{id}/cancel

Operation ID: cancel_api_v1_app_run.

Authentication: bearer token (bearerAuth).

Parameters

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

POST /api/v1/hosting/app_runs

Operation ID: post_api_v1_hosting_app_runs.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
image string No Optional fully qualified digest-pinned image from the deployed service's registry and repository. Uses the active release's execution context without deploying. Mutable tags are rejected.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
402: The organization's billing limit refuses this usage; see error.upgrade_path

application/json

Property Type Required Description
error object Yes
error.code enum: billing_limit_exceeded Yes
error.dimension_value string,null Yes
error.limit number or string Yes Decimal quantities are serialized as strings
error.message string Yes
error.meter_key string Yes A billing meter key
error.reason enum: payment_required, hard_cap, allowance_exhausted, budget_exhausted, suspended, seat_limit Yes
error.requested number or string Yes
error.upgrade_path string Yes Frontend path of the organization's billing page
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/hosting/app_runs/{id}

Operation ID: api_v1_app_run.

Authentication: bearer token (bearerAuth).

Parameters

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

GET /api/v1/hosting/app_runs

Operation ID: api_v1_app_runs.

Authentication: bearer token (bearerAuth).

Responses

200: Success

application/json

The response is object.

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