Documentation menu

Get template deployment

GEThttps://api.instacloud.com/template-deployments/{deploymentId}

Token scope: account · org · project — read-only tokens allowed.

Poll a template deployment: status, current step, per-service URLs, and the failure log tail.

Parameters

NameInTypeRequiredDescription
deploymentIdpathstringyes

Responses

200

One server-side template deployment run and its progress.

FieldTypeRequiredDescription
idstringno
status"running" | "succeeded" | "failed" | "partial"nopartial = some services came up healthy, others failed — created resources are kept either way
step"create_services" | "write_variables" | "deploy" | "health_check"nothe pipeline step the run is currently on (or stopped at)
templateCodestringno
templateVersionstringno
projectIdstringno
branchIdstringno
regionstringnoInstaCloud region slug every service of this deployment was created in. Deployments recorded before regions were recorded read as the platform default.
servicesobject[]no
services.namestringnothe service's actual name on the branch, which is the manifest's name only for the first copy — a second deployment of the same template into the same branch names its services <name>-2 and leaves the first copy alone
services.serviceIdstringno
services.urlstringno
services.state"pending" | "created" | "deployed" | "healthy" | "failed"no
services.skippedbooleannoan upgrade stepped over this service because the user had deleted it — the run never touched it, serviceId points at the deleted row, and state stays pending however the deployment ends. Not "still in progress"
errorstringno
logsTailstringnocontainer log tail captured when a service never became healthy
rollbackToobjectnothe version one step back, present only when this deployment was produced by an upgrade: what POST .../rollback would return the instance to. Absent on a first deploy, once the predecessor is gone, and on a deployment a ROLLBACK produced — that row's step back is the newer version it just left, which is offered as the update, not as a way back. Present is not a promise it will succeed — a version whose manifest is no longer recorded, or was republished with different content, still refuses at click time
rollbackTo.versionstringyes
createdAtstringno

404

Default Response

FieldTypeRequiredDescription
errorstringyes

View as Markdown