Skip to content
Skip to Content

A deployment's build and deploy logs

GET
/deployments/{deploymentId}/logs

The build's output and the rollout's log, kept with the deployment, so they read even while its servers are offline. Each phase keeps its first 2 MiB; a longer build also keeps its last 200 lines.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Path parameters

deploymentId*string

The deployment's id.

Query parameters

tail?integer

Only the last lines of each phase.

Range1 <= value <= 10000

Response body

A deployment's build and deploy logs

application/json
  1. response
deploymentId*string
Formatuuid
build*|

The build's output; null for an image deployment, or before the build starts.

deploy*|

One line per event of the rollout on each server: image pulled, container started, healthy, …

Example request
curl "https://openpanel.sh/api/v1/deployments/$DEPLOYMENT_ID/logs" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",  "build": {    "text": "string",    "lines": 0,    "bytes": 0,    "dropped": 0,    "updatedAt": "2019-08-24T14:15:22Z"  },  "deploy": {    "text": "string",    "lines": 0,    "bytes": 0,    "dropped": 0,    "updatedAt": "2019-08-24T14:15:22Z"  }}