pbs_apt_repository_set
Enable or disable a specific APT repository entry on a Proxmox Backup Server node by file path and index. Defaults to dry-run for safe planning; set confirm=true to apply the change.
Instructions
MUTATION: enable/disable one APT repository entry on a PBS node, by file path + index.
RISK_MEDIUM: changes where packages come from — affects the NEXT upgrade's package provenance. CAPTURE: reads current repository state before planning (also readable directly via pbs_apt_repositories_get); if unreadable -> complete=False. Proxmox's API deliberately does not expose upgrade execution; the upgrade itself happens at your console. This tool governs repo config only. Dry-run by default (returns a PLAN); confirm=True executes (POST, Smoke-confirm) and returns {"status": "ok", "result": None}. Needs PROXIMO_PBS_* config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | PBS node name; defaults to 'localhost' (standard single-node PBS name). | localhost |
| path | Yes | Absolute path of the sources file containing the repository entry (as returned by pbs_apt_repositories_get). | |
| index | Yes | 0-based index of the repository entry within that file (as returned by pbs_apt_repositories_get). | |
| digest | No | Expected SHA-256 content digest (64 hex chars) of the repositories file, for optimistic-concurrency conflict detection. | |
| confirm | No | False (default) returns a dry-run PLAN only; True executes the change. | |
| enabled | No | Set the entry's enabled state; omit to leave the enabled state unchanged. | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |