Argocd Rollback Application
argocd_rollback_applicationRoll back an Argo CD application to a previous deployment history revision; fails early if auto-sync is enabled, so disable it and fix Git after.
Instructions
Roll back to a prior deployment history entry. destructive.
Argo CD refuses a rollback while auto-sync is on, so this pre-reads the app and returns an actionable error first. A rollback re-applies an old revision, so fix Git afterward.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Application name; accepts namespace/name for apps-in-any-namespace | |
| wait | No | Wait for the operation to finish | |
| prune | No | Prune resources during rollback | |
| dry_run | No | Preview only | |
| project | No | Project; with it a missing app is 404 and a wrong-project app is 403 | |
| history_id | Yes | status.history id to roll back to | |
| app_namespace | No | Override appNamespace; defaults to ARGOCD_APP_NAMESPACE | |
| timeout_seconds | No | Wait timeout in seconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |