DeploymentLog
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/{org_slug}/pages/deployments/logs |
list |
Deployments Logs page contract. lines is the stdout and stderr of every allocation serving app_service_id, merged and numbered across the whole stream before truncation; a scope value that names nothing is ignored rather than rejected |
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:
deployment_logs, err := client.DeploymentLog(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(deployment_logs)
Lua
Construct client as shown in the Lua setup, then call the operations:
local deployment_logs, err = client:DeploymentLog():list({ organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$deployment_logs = $client->DeploymentLog()->list(["organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
deployment_logs = client.DeploymentLog().list({"organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
deployment_logs = client.DeploymentLog.list({ "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const deployment_logs = await client.DeploymentLog().list({ organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
allocation_id |
string |
Yes | Allocation Id |
app_environment_id |
one,string,null |
Yes | App Environment Id |
app_release_id |
one,string,null |
Yes | App Release Id |
app_service_id |
one,string,null |
Yes | App Service Id |
details |
any |
Yes | Details |
environment_name |
string |
Yes | Environment Name |
release_version |
one,string,null |
Yes | Release Version |
service_name |
string |
Yes | Service Name |
status |
string |
Yes | Status |
task |
one,string,null |
Yes | Task |
unreachable_reason |
one,string,null |
Yes | Unreachable Reason |
list
GET /api/v1/organizations/{org_slug}/pages/deployments/logs
Operation ID: api_v1_pages_deployments_logs.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
app |
query |
string |
No | |
service |
query |
string |
No | |
environment |
query |
string |
No | |
log_service |
query |
string |
No | Public id of the service to read. Ignored when it has no allocations; the first service that does answers instead. |
log_location |
query |
string |
No | Restricts the merge to allocations in one location. |
limit |
query |
integer |
No | Merged lines to keep, counted from the end. |
Responses
200: Deployments Logs page contract. lines is the stdout and stderr of every allocation serving app_service_id, merged and numbered across the whole stream before truncation; a scope value that names nothing is ignored rather than rejected
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allocations |
array of object |
Yes | |
allocations[].allocation_id |
string |
Yes | |
allocations[].app_environment_id |
string |
Yes | |
allocations[].app_release_id |
string |
Yes | |
allocations[].app_service_id |
string |
Yes | |
allocations[].details |
object or null |
Yes | |
allocations[].environment_name |
string |
Yes | |
allocations[].release_version |
string |
Yes | |
allocations[].service_name |
string |
Yes | |
allocations[].status |
string |
Yes | |
allocations[].task |
string |
Yes | |
allocations[].unreachable_reason |
string |
Yes | |
app_service_id |
string |
Yes | |
deploy_targets |
array of object |
Yes | |
deploy_targets[].auto_deploy |
boolean |
Yes | |
deploy_targets[].environment_id |
string |
Yes | |
deploy_targets[].environment_name |
string |
Yes | |
deploy_targets[].placement_id |
string |
Yes | |
deploy_targets[].redeploy |
boolean |
Yes | |
deploy_targets[].region_count |
integer |
Yes | |
deploy_targets[].replicas_per_region |
integer |
Yes | |
deploy_targets[].rollout_strategy |
enum: health_gated, burst |
Yes | |
deploy_targets[].service_id |
string |
Yes | |
deploy_targets[].service_name |
string |
Yes | |
deploy_targets[].source_ref |
string |
Yes | |
filters |
object |
Yes | The option lists the deployments page's app, service and stage pickers narrow by. services and environments are empty until an app is selected. |
filters.apps |
array of object |
Yes | |
filters.apps[].created_at |
string (date-time) |
Yes | |
filters.apps[].created_at_label |
string |
Yes | |
filters.apps[].description |
string |
Yes | |
filters.apps[].framework |
string |
Yes | |
filters.apps[].id |
string |
Yes | |
filters.apps[].name |
string |
Yes | |
filters.apps[].organization_id |
string |
Yes | |
filters.apps[].repository_id |
string |
Yes | |
filters.apps[].repository_kind |
string |
Yes | |
filters.apps[].root_path |
string |
Yes | |
filters.apps[].root_path_display |
string |
Yes | |
filters.apps[].slug |
string |
Yes | |
filters.apps[].status |
enum: draft, active, archived |
Yes | |
filters.apps[].updated_at |
string (date-time) |
Yes | |
filters.apps[].updated_at_label |
string |
Yes | |
filters.environments |
array of object |
Yes | |
filters.environments[].id |
string |
Yes | |
filters.environments[].name |
string |
Yes | |
filters.environments[].slug |
string |
Yes | |
filters.services |
array of object |
Yes | |
filters.services[].id |
string |
Yes | |
filters.services[].name |
string |
Yes | |
lines |
array of object |
Yes | |
lines[].allocation_id |
string |
Yes | |
lines[].allocation_label |
string |
Yes | |
lines[].id |
string |
Yes | |
lines[].index |
integer |
Yes | |
lines[].service_name |
string |
Yes | |
lines[].stream |
enum: stdout, stderr |
Yes | |
lines[].task |
string |
Yes | |
lines[].text |
string |
Yes | |
log_services |
array of object |
Yes | |
log_services[].allocation_count |
integer |
Yes | |
log_services[].id |
string |
Yes | |
log_services[].name |
string |
Yes | |
summary |
string |
Yes |