Deployment
A record of an infrastructure provisioning operation.
Each deployment tracks a single action (PROVISION, DECOMMISSION, or PLAN) against
an instance. Deployments are immutable once created โ you cannot modify a deployment,
only create new ones.
Use the status field to monitor progress and elapsed_time to track duration.
The deployed_by field identifies the user or service account that initiated the operation.
type Deployment {
alphaAttestations(
filter: AlphaAttestationsFilter
cursor: Cursor
): AlphaAttestationsPage!
id: ID!
status: DeploymentStatus!
action: DeploymentAction!
version: String!
bundle: Bundle!
params: Map
message: String
createdAt: DateTime!
updatedAt: DateTime!
lastTransitionedAt: DateTime
elapsedTime: Int!
deployedBy: String
instance: Instance
effectiveAttributes: Map!
logs: [DeploymentLog!]!
}
Fieldsโ
Deployment.alphaAttestationsย โย AlphaAttestationsPage! non-null object {#alpha-attestations}โ
Alpha: this API can change or be removed at any time, without notice.
The attestations about this deployment and its steps, newest first.
query {
deployment(organizationId: "my-org", id: "7f3c9a2e-5b1d-4c8e-9a0f-2d6e8b4c1a37") {
alphaAttestations(filter: { kind: { in: [COMPLIANCE] }, step: { eq: "src" } }) {
items { digest kind step compliance { passed failed } }
cursor { next }
}
}
}
Deployment.alphaAttestations.filterย โย AlphaAttestationsFilter input {#deployment-alpha-attestations-filter}โ
Optional filters to narrow the results.
Deployment.alphaAttestations.cursorย โย Cursor input {#deployment-alpha-attestations-cursor}โ
Cursor from a previous page to fetch the next set of results.
Deployment.idย โย ID! non-null scalar {#id}โ
Unique identifier for this deployment.
Deployment.statusย โย DeploymentStatus! non-null enum {#status}โ
Current lifecycle state of this deployment.
Deployment.actionย โย DeploymentAction! non-null enum {#action}โ
The infrastructure operation this deployment performs.
Deployment.versionย โย String! non-null scalar {#version}โ
The bundle version used for this deployment (e.g., 1.2.0).
Deployment.bundleย โย Bundle! non-null object {#bundle}โ
The bundle version this deployment ran. Can differ from the instance's current bundle when the instance's version changed after this deployment.
Deployment.paramsย โย Map scalar {#params}โ
Snapshot of the instance configuration at the time this deployment was enqueued. Independent of the instance's current params โ later edits do not mutate this record.
Deployment.messageย โย String scalar {#message}โ
An optional message describing the purpose of this deployment, similar to a commit message.
Deployment.createdAtย โย DateTime! non-null scalar {#created-at}โ
When this deployment was created (UTC).
Deployment.updatedAtย โย DateTime! non-null scalar {#updated-at}โ
When this deployment record was last updated (UTC).
Deployment.lastTransitionedAtย โย DateTime scalar {#last-transitioned-at}โ
When the deployment last changed status (UTC). Null if the deployment is still PENDING.
Deployment.elapsedTimeย โย Int! non-null scalar {#elapsed-time}โ
Wall-clock duration of the deployment in seconds.
For RUNNING deployments, this is a live timer counting from creation.
For terminal states, this is the total time from creation to the final status transition.
Returns 0 for deployments that have not yet executed (PENDING, PROPOSED, APPROVED).
Deployment.deployedByย โย String scalar {#deployed-by}โ
The user or service account that initiated this deployment.
Deployment.instanceย โย Instance object {#instance}โ
The instance that this deployment operates on.
Deployment.effectiveAttributesย โย Map! non-null scalar {#effective-attributes}โ
The full attribute map the authorization system evaluates policies against for
this deployment โ the parent instance's effective attributes (project >
environment > component cascade) with the deployment's own md-id overlaid.
System attributes always present on a deployment:
md-idโ the deployment's UUIDmd-projectโ the project's identifiermd-environmentโ the environment's local identifiermd-componentโ the component's local identifiermd-instanceโ the instance's identifiermd-repoโ the bundle's repo namemd-bundleโ"{bundle}@{version}"of the resolved release
Deployment.logsย โย [DeploymentLog!]! non-null object {#logs}โ
All log batches emitted for this deployment so far, ordered oldest-first.
Each entry is a single batch (logset) as emitted by the provisioner โ its
message may contain multiple \n-separated lines written in the same
flush. For live streaming, open a deploymentEvents subscription after
loading this field; the subscription fires on every subsequent append.
Returned Byโ
deployment query
Member Ofโ
DeploymentComparison objectย โย DeploymentEvent objectย โย DeploymentPayload objectย โย DeploymentsPage objectย โย Instance object
Implemented Byโ
AlphaAnnotationEntity union