Argocd Sync Application
argocd_sync_applicationSync an Argo CD application to Git, optionally waiting, pruning, forcing, or previewing changes, to reconcile cluster state with desired manifests.
Instructions
Sync an application. destructive because prune and force can delete or recreate resources.
Returns the started operation; with wait=True, the final one. revision override needs the
applications, override RBAC permission.
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 | |
| force | No | Force apply (recreate on conflict) | |
| prune | No | Delete resources no longer in Git | |
| dry_run | No | Preview only; change nothing | |
| project | No | Project; with it a missing app is 404 and a wrong-project app is 403 | |
| revision | No | Sync to this revision (needs override RBAC) | |
| resources | No | Scope to [group:]kind:name[/namespace] selectors | |
| retry_limit | No | Retry attempts on failure | |
| sync_options | No | Free-form sync options, e.g. ServerSideApply=true | |
| app_namespace | No | Override appNamespace; defaults to ARGOCD_APP_NAMESPACE | |
| timeout_seconds | No | Wait timeout in seconds | |
| apply_out_of_sync_only | No | Apply only out-of-sync resources |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |