Skip to main content

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.

graphql
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.

graphql
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 UUID
  • md-project โ€” the project's identifier
  • md-environment โ€” the environment's local identifier
  • md-component โ€” the component's local identifier
  • md-instance โ€” the instance's identifier
  • md-repo โ€” the bundle's repo name
  • md-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