protect_stack
Turn on scheduled backup protection for a stack (the twin of ankra cluster stacks protect): Ankra writes the stack's backup policy through GitOps and the ankra-backup stack on the cluster takes the captures. Omitted fields keep the stack's stored policy, so a schedule change need not restate the selection. Setting databases=false means the restore points carry NO database contents, which needs confirm_exclude_databases=true. Requires backups.manage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schedule | No | hourly, daily, weekly, or a cron expression. Omit to take the platform default (daily). | |
| vault_id | No | Backup vault id or name to write to, from list_backup_vaults. Omit when the organisation has exactly one ready vault. | |
| databases | No | Whether the stack's databases are captured. Setting it to false means the restore points carry no database contents at all. Naming it at all makes the selection explicit, so pair it with persistent_volume_claims unless you mean to capture the databases alone. | |
| retention | No | How many restore points each tier keeps. Omit to take the platform default. | |
| backup_now | No | Also take a restore point immediately, rather than waiting for the first scheduled run. | |
| cluster_id | No | UUID of the cluster. Alternative to cluster_name. | |
| stack_name | Yes | The stack to protect. | |
| cluster_name | No | Exact name of the cluster. Optional when a cluster is already selected in the conversation. | |
| persistent_volume_claims | No | Names of the persistent volume claims to capture, from list_stack_data_assets. A selection is applied WHOLE, not merged with the stack's stored one: naming none of them captures no volumes at all. Send no selection (no databases, no persistent_volume_claims) to keep the stack's stored policy. | |
| confirm_exclude_databases | No | Required with databases=false: acknowledges that this stack's restore points will carry no database contents. |