Skip to content
Proud to collaborate with Microsoft for Startups

deploy.release.rollback ​

Ship the release from a previously COMPLETED DeploymentRollout back to its DeploymentTarget by dispatching the same strategy. Creates a new rollout row; logs ABORTED on the rollout being rolled away from.

Roll a target back to a previously completed rollout's release.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-deployments
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
deployment_target_uuiduuidYes——
to_rollout_uuiduuidYes—A past, COMPLETED DeploymentRollout for the same target. Its release is shipped again.
reasonstringNo—Human reason for the rollback. Stored on the new rollout's config and event_data.

Output Schema ​

FieldTypeRequiredDefaultDescription
deployment_target_uuiduuidNo——
to_rollout_uuiduuidNo——
reasonstringNo——
rollout_uuiduuidNo——
release_uuiduuidNo——
rollback_of_rollout_uuiduuidNo——
strategystringNo——
strategy_workflow_typestringNo——
child_workflow_uuidstringNo——
poll_attemptsintegerNo——
timed_out_atstringNo——
completed_atstringNo——
failed_atstringNo——
failed_at_statestringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—dispatchRollback request accepted; will dispatch strategy
waitingNoNo——Polling the strategy sub-workflow
completedNoYesYes—Rollback completed; previous release re-published
failedNoYesNo—Rollback failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingdispatchwaitingLock target, create rollback rollout, start strategy
waitingpollwaitingRe-poll while the strategy is still running
waitingcompletecompletedStrategy reached terminal-success
* (any state)failfailedRollback moves to failed

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "deploy.release.rollback",
  "initial_data": {
    "deployment_target_uuid": "value",
    "to_rollout_uuid": "value"
  }
}