A deployment's build and deploy logs
GET
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.
bearerheader
AuthorizationBearer <token>An API key (opk_…) or a CLI token (opc_…).
deploymentId*stringThe deployment's id.
tail?integerOnly the last lines of each phase.
Range
1 <= value <= 10000A deployment's build and deploy logs
application/json- response
deploymentId*stringFormat
uuidbuild*|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, …
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" }}