copyInstance
Copy configuration from one instance to another.
Both instances must be built from the same component. Source params (minus any
fields the bundle marks non-copyable) are written to the destination, deep-merged
with any overrides. copySecrets and copyRemoteReferences opt in to additional
state transfer. Deployment is a separate action — call createDeployment on the
destination when you're ready to apply.
mutation {
copyInstance(
organizationId: "my-org"
sourceId: "ecomm-prod-db"
destinationId: "ecomm-staging-db"
input: { overrides: { size: "small" }, copySecrets: true }
) {
result { id params }
successful
}
}
copyInstance(
organizationId: ID!
sourceId: ID!
destinationId: ID!
input: CopyInstanceInput!
): InstancePayload
Form Schema
This mutation supports dynamic form generation using JSON Schema.
Loading schema...
Arguments
copyInstance.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
copyInstance.sourceId ● ID! non-null scalar {#source-id}
The instance to copy configuration from.
copyInstance.destinationId ● ID! non-null scalar {#destination-id}
The instance to copy configuration into. Must be built from the same component as the source.
copyInstance.input ● CopyInstanceInput! non-null input {#input}
Copy configuration from one instance to another. The source and destination must be instances of the same component. Source params (minus any fields marked non-copyable in the bundle) are written to the destination. Deployment is a separate action — call createDeployment on the destination when you're ready to apply.