createDeployment
Create a new deployment for an instance.
Saves the provided params as the instance's configuration, then initiates the
specified action:
- PROVISION โ apply the configuration to create or update infrastructure.
- PLAN โ generate a dry-run preview without making changes.
- DECOMMISSION โ destroy all infrastructure managed by the instance.
The returned deployment starts in PENDING status and transitions to RUNNING
once execution begins. Poll the deployment query or use the status field
to monitor progress.
graphql
mutation {
createDeployment(
organizationId: "my-org"
id: "my-database"
input: { action: PROVISION, params: { size: "large" }, message: "Scale up" }
) {
result { id status action }
successful
messages { field message }
}
}
graphql
createDeployment(
organizationId: ID!
id: ID!
input: CreateDeploymentInput!
): DeploymentPayload
Form Schemaโ
This mutation supports dynamic form generation using JSON Schema.
Loading schema...
Argumentsโ
createDeployment.organizationIdย โย ID! non-null scalar {#organization-id}โ
Your organization's unique identifier.
createDeployment.idย โย ID! non-null scalar {#id}โ
The instance to deploy.
createDeployment.inputย โย CreateDeploymentInput! non-null input {#input}โ
Deploy an instance with configuration parameters. Params are validated against the bundle's params schema, cached on the instance, and snapshotted into the deployment.